SCCM Patch Removal Script


A little command line script that will remove a specific KB from your device, this can be used on servers or desktops. You will just need to amend the KB number in bold.

%windir%\system32\wusa.exe /uninstall /kb:3163589 /quiet /norestart /log:c:\kb

You can use this in conjunction with the SCCM task sequence to remove recently deployed patches from servers.


Find Empty Groups In Active Directory Using PowerShell


You will be able to find groups from your domain by using the below PowerShell Script, It will scan AD and export its findings to a CSV file.

Please note you will need to change the export directory to one that suits you.

Import-Module activedirectory
Get-ADGroup -Filter * -Properties Members | where {-not $_.members} | select Name | Export-Csv D:\emprtygroups.csv –NoTypeInformation

To find empty groups from any specific OU present in other domain:-

Import-Module activedirectory
Get-ADGroup -Filter * -Properties Members -searchbase “OU fqdn” –server  | where {-not $_.members} | select Name | Export-Csv D:\emprtygroups.csv –NoTypeInformation


Script for VLC Silent Install via SCCM


In this post we will see how to deploy VLC media player using SCCM. VLC media player is a free and open source cross-platform multimedia player and framework. VLC media player plays most multimedia files as well as DVDs, Audio CDs, VCDs, and various streaming protocols. This player is compatible with almost all the operating systems. It also allows customization using some cool skins. Once you have written the script you can use SCCM to deploy VLC media player silently.

I am not going to go through all the steps on how to package an application this post will give you the information you need to package your own application.

First, open up notepad and paste the following line:

“%~dp0vlc-2.2.8-win32.exe” /L=1033 /S

Change the .exe file name if required and save the notepad as Install.bat.

When you are configuring the application for SCCM you will need to make sure you select the “Install.bat” as the installation program and paste “%ProgramFiles(x86)%\VideoLAN\VLC\uninstall.exe /S” for the Uninstall program.

For the detection rule use the registry key for the VLC version you are installing, it is located here: “HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\VideoLAN\VLC\Version

And you are now ready for deployment.

Active DirectoryScripts

Export a list of members from an Active Directory Security Group into a .txt File


I needed to export a list of all the members in an active directory group today. Here are two methods which work well. The first example uses the net group command. In both examples ‘Group Name’ is the name of the group that you want to export the member list for, and memberlist.txt is the name of the output file.

net group “Group Name” /domain > C:\temp\memberlist.txt

The second example uses dsquery and dsget, which will return the full distinguished names of the user objects that are members of the group. This could be useful if you also need to know which organizational unit the members accounts reside in.

dsquery group -name “Group Name” | dsget group -members > memberlist.txt


Silent Install Adobe Reader 11 – msi and exe – disable update


In this tutorial will explain how to silent install Adobe Reader version 11We will be using the MSI and an MST that is built by the Adobe Customization Kit. The script will disable auto update automatically. The command will uninstall older version of Adobe Reader and install a new version. We will use MST Transform file of adobe to make configurations. I trying to script Adobe Reader version 11.0.10 for an SCCM deployment.

Silent Install Adobe Reader.

  • Adobe Reader 11 silent install:
    • Download msi.
    • Create MST file.
    • Create cmd file
    • Execute command.

Adobe Reader 11 msi silent install.

Download msi for silent install Adobe Reader.

First download the package for adobe reader 11.0.0 :

Second download adobe reader 11.0.10 patches :

Save both on folder named “AdobeReader_11010” and unzip AdbeRdr11000_en_US.exe inside folder.

Create a MST transform.

  1. Download Adobe Customization Wizard XI from here.
  2. Install the application and launch it when done.
  3. Click on File -> Copy Package.
  4. Enter the information as below:
  • Source package – Your source of msi that we unzipped “AcroRead.msi”
  • Name of the new package “AcroRead”
  • Location for new package copied – under AdobeReader_11010\

Make any desired configuration in the menus to the left that fits your environment. We recommended :

  • In the left pane on the Personalization Options, check EULA Option: Suppress display of End User License Agreement (EULA).

On the Online Services and Features page, check the following boxes:

  • Disable product updates
  • In Adobe Reader, disable Help > Purchase Adobe Acrobat
  • Disable Product Improvement Program
  • Remove Viewing of PDF with Ads for Adobe PDF
  • Disable all Adobe online services based workflows and entry points

Click File -> Save Package.

Create the .cmd.

  • Inside folder “AdobeReader_11010”  create a text file called install.cmd
  • Copy the following command lines:
@echo silent install Adobe Reader 11.0.10

start /wait msiexec /i "%~dp0AcroRead.msi" EULA_ACCEPT=YES TRANSFORMS="AcroRead.mst" /Update "%~dp0AdbeRdrUpd11010.msp" /qn

You’ll now have the complete package that can be silent installed.

Packaging AppsScriptsTips

How to install and configure FileZilla Silently Via Batch File


The following process has been tested and confirmed working with FileZilla 3.28.x and ConfigMgr / SCCM 2012 R2.

It does the following tasks:

  • Uninstalls any existing versions of FileZilla
  • Installs FileZilla for the operating systems architecture (32-bit or 64-bit)

PLEASE NOTE – If you wish to use a different version of FileZilla you will need to either, rename your installation files to match those referenced in the script or amend the script to reference the files you are trying to use.

  1. Download both the 32-bit and 64-bit versions of the EXE installation files from
  2. Create a text file called install.cmd and copy in the following information.
@echo off
echo --------------------------------------------------------
echo .
echo .
echo .           Installing FileZilla - Please Wait.
echo .         (This window will close once installed)
echo .

REM Uninstall any previous version of FileZilla
if exist "%programfiles%\FileZilla FTP Client\uninstall.exe" "%programfiles%\FileZilla FTP Client\uninstall.exe" /S
if exist "%programfiles(x86)%\FileZilla FTP Client\uninstall.exe" "%programfiles(x86)%\FileZilla FTP Client\uninstall.exe" /S

REM Silent install FileZilla for 64-bit
if defined ProgramFiles(x86) "%~dp0FileZilla_3.26.2_win64-setup.exe" /S
if defined ProgramFiles(x86) exit

REM Silent install FileZilla for 32-bit
"%~dp0FileZilla_3.26.2_win32-setup.exe" /S
  1. Copy the two exe install files and install.cmd to your software package share
  2. You can now create your SCCM package or deploy the software by using install.cmd

If you wish for this to be truely silent you can delete the following lines of code from the script:

@echo off
echo --------------------------------------------------------
echo .
echo .
echo .           Installing FileZilla - Please Wait.
echo .         (This window will close once installed)
echo .




Deploy Firefox with SCCM


In this guide, You will learn how to script a Firefox Install for use with SCCM and other deployment utilities. I will show you to install Firefox on the computers in your network with pre-configured settings and extensions, suppressing all unnecessary prompts and first-run pages.

Step 1 – Download your preferred version of Firefox – for my company i used 54.0.1.

I recommend you use the Extended Support Release (ESR) package, as it is intended for large groups and organizations that need to mass deploy Firefox in a desktop environment. This version is also more stable and secure than the regular version of Firefox, which is intended for personal use.

Step 2 – Create a new folder to place the installer, scripts, and extensions. For this guide, I will be saving all the necessary files to the following location:



How to uninstall Internet Explorer 11


The guide below will explain how to Uninstall Internet Explorer 11 in Windows 7 using add/remove programs and using the Command Line Options (CMD).

Uninstall Internet Explorer 11 under add/remove programs

1.Click the Start button, type Programs and Features in the search box, and then select View installed updates.

2.Under Unistall an update, scroll down to the Microsoft Windows section.

3.Right-click Internet Explorer 11, click Uninstall, and then, when prompted, click Yes.

4.Click one of the following:

Restart now (to finish the process of uninstalling Internet Explorer 11 and restore the previous version of Internet Explorer)

Restart later

Using the Command Line Options (CMD)

FORFILES /P %WINDIR%\servicing\Packages /M Microsoft-Windows-InternetExplorer-*11.*.mum /c “cmd /c echo Uninstalling package @fname && start /w pkgmgr /up:@fname /norestart /quiet”

Using the Windows Update Standalone Installer (Wusa.exe)

wusa.exe /uninstall /kb:2841134 /quiet