Powershell and VB script to update a registry key if it exists on the local system

Here are a couple scripts I wrote to update a registry key on a system if it the key exists. I created a PowerShell script to do this then realized that some of the systems being updated were pretty old so decided to go with VB Script   Power Shell Script

VB Script


Powershell Script to detect one or more KB articles are installed

This PowerShell script checks OS version or KB articles are installed on system. Used in SCCM as a detection method for IE 11 Prereqs.


Powershell Install multiple Windows Updates .MSU

This script will loop through multiple msu windows updates files and install them.  


PowerShell Set user permissions on a shared folder

Set user permissions on a shared folder using PowerShell Applies To: Windows 8.1, Windows PowerShell 4.0, Windows Server 2012 R2  


C# Start service on remote machine

Here is a simple method to start a service on a remote system using C#. Call the method using

Method will attempt to change the status and return the current Status



Upgrading from Client version 4.00 to 5.00 I got an error “CcmSetup failed with error code 0x8007064c”

after looking at the logs I noticed there were two instances of 4.00 being detected.

Both instances are showing up in the registry under HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\ but when I checked the source path it no longer existed. […]

CcmSetup failed with error code 0X80070641

Today when I was trying to install the SCCM Client on a system and was getting an error code of 0x80070641. It was failing trying to install  vcredist_x86.exe with an error code of 1601 – here is the log entry for the error.

In my case the Windows Installer service was not running.  so I […]

PowerShell WMI query to get IP address

Here is a simple function in PowerShell to ping a system via WMI query and return the IP address.


%d bloggers like this: