Custom Script Detection Methods

The final detection method to discuss is a custom script. The possibilities are endless when using a custom script. Most of your applications need standard detection methods (Windows Installer product code, file, or registry), but eventually you will encounter an application requiring a more complex way to determine installation state.

You write a custom script that ConfigMgr can use to determine if the software is installed. Be sure to return text from the script to confirm that the software is installed. If no text is returned, ConfigMgr understands that to be “not installed.” The next two sections provide sample scripts for leveraging a custom script detection method.

Custom Detection Method Script with PowerShell ...

Get System Center 2012 Configuration Manager Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.