O'Reilly logo

System Center 2012 Configuration Manager Unleashed by Greg Ramsey., Jason Sandys, Marcus Oh, Byron Holt, Kerrie Meyler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required