Category Archives: Computermanagement

Uninstall software from multiple computers


To uninstall software from multiple computers you must determine the name of the software you want to uninstall.

Get the list of installed applications from a computer:

If you want to see the programs on a remote computer user the -computername option.

Find the program you want to uninstall, for example “Sophos Patch Agent” from 3 computers:

This will uninstall the software (one at a time) from the computers.

Install software on multiple computers simultaneous


Install software on multiple computers simultaneous.

Also, first make sure the server from which you install the software accepts the CredSSP connection.

You need to use CredSSP for authentication because Powershell has a build-in protection against multi-hop use.

Run the next code to install the software.


Remove old logfiles from Exchange servers


You can use Powershell to remove old logfiles from exchange servers. Those logfiles are located on the Client Access Servers (CAS servers) in the inetpub folders.

To remove the files older then 60 days use this script.

Fill in your own CAS servers on the variable $servers line. You can use as many as you want to.


Check a service on alle servers


You can use this script when you want to check multiple servers for the status of a service.

This script gets all the servers from the AD and test is they are available. Next it checks if there is a service with the name backupexecagent* and then displays the status.

The script below is not the most efficient script but it does the trick.

If someone knows how to make this run faster… please let me know.

Powershell function to check a Windows Computers activation status


Powershell function to check a Windows Computers activation status.

Use the function as: Get-ADComputer -Filter * | Get-ActivationStatus



Check service startup type and status with Powershell


A powershell code to check a specific service on a computer and tells you what the startup-type is (Auto, disabled, manual) and what the current state is of the service.