SCCM 2012 PowerShell Automation

PowerShell Uninstall Automation

I have authored the PowerShell Uninstall script.  It gives the ability for IT Operations / ConfigMgr Admins to uninstall multiple versions of a particular software with one process.

Does your organization struggle when trying to cleanup software when standardizing on a application version? I.E. Oracle Java, Adobe Flash, RightFax, IBM products, etc…  Not all the versions you have are in ConfigMgr / SCCM or not in the application model?  If the answer is yes, the PowerShell Uninstall script is for you.

The PowerShell Uninstall script takes inputs from a CSV file.  Using the delimiter of “^”, don’t worry I have included a Excel file to build your CSV.

Since by nature when uninstalling legacy software there maybe pre-or post- process you must run. The PowerShell Uninstall script has functions to call a PowerShell script before or after the uninstall logic.

The PowerShell Uninstall script also includes a Boolean to  create the script as an ConfigMgr / SCCM Application.  In which you can attach to other programs for requirements.

To detect the PowerShell Uninstall script, have ConfigMgr / SCCM check existence of “%SystemDrive%\Program Files\Pomeroy\AppName”.  It will be an empty directory.  For the uninstall just use the command “rmdir /Q /S %SystemDrive%\Program Files\Pomeroy\AppName”

Continue reading…

SCCM 2012 Folder Creation Script

I have created a script that will automate SCCM 2012 folder creation.  Either in bulk or single by single. It is a simple script with no parameters.  You just run the script and follow the instructions.  If you want to bulk folder create the text file must be in the format where the folder names is per line.

Example.

folder name 1
folder name 2
folder name 3
folder name 4
…..

Here is a walk through.

Get Help:

Get-Help.

Single Folder Creation:

Single folder creation.

Bulk Folder Creation:

Bulk folder creation.

Click the download link to give it a try.

CM2012 Node Folder Creation v2.0