Exchange: Email error 451 4.4.0 DNS query failed

After an upgrade of DC to 2012R2 and removing the old 2003 DC I found that Exchange had problems sending mail to a small amount of different domains. When I looked in the message queue I found that all these domains had the same error: 451 4.4.0 DNS Query Failed Since I just had installed two…

Check system up-time

Microsoft instructions to check system up-time: Go to “Start” -> “Run“. 2.  Write “CMD” and press on “Enter” key. 3.  Write the command “net statistics server” and press on “Enter” key. 4.  The line that start with “Statistics since …” provides the time that the server was up from.   The command “net stats srv”…

Import specific GPO through powershell from the Backup all script

This script is based on the backup all gpo script done here The script will loop through all the GPO and you will be presented with a pop-up asking if you wish to import the specific GPO.

Backup all GPO in domain through Powershell

Add multiple Windows patches to WIM using DISM and Powershell

Install and uninstall Java through Powershell – SCCM

I needed to deploy Java in one of our enterprise environments with a lot of old Java still laying around, I needed to upgrade all to the new version and remove all old versions as they are a security threat. Java don’t have the option to remove all previous installations, I guess its because its…

SCCM and Adobe Reader XI with Powershell

How to distribute Adobe Reader XI in System Center 1. Download the .msi package from adobe  here 2. Download the Adobe Customization Wizard XI here 3. Do you customization to fit your IT needs in Customization Wizard and generate a .mst file 4. Create a powershell file with the following code

Uninstall a program from powershell

If you need to uninstall a program from a prowershell script this will do the trick:

If you get the return value of 1603 your not running your script as admin