SCCM Zone

SCCM Application Detection Method using in Console Application Version

Say no to application version hardcoded in the detection script.

TThis method is valid for any application. In this case I will use the configuration manager client upgrade application. You might ask yourself, why not use the automatic client upgrade? Well, because the client upgrade can only run during a maintenance window. I won’t go into details, but unless this behavior changes, I cannot use this feature with my current configuration.

Without further ado, here is how to do it…

Create the Application

I wanted to make this as simple as possible so I don’t have to tinker with it every time there’s a new update.

The version will be used by the discovery method, make sure you use the correct one.

This path will remain the same, so there is no need to touch this ever again.

%ConfigMgrServer%\%ConfigMgrPath%\Client

In order to be able to specify the local installation source we need to use a script. Useful in low bandwidth environments.

Configuration manager client installation script.

Remember to change the application name accordingly.

Configuration manager discovery method
Powershell.exe -File Install-CMClient.ps1 -ExecutionPolicy ‘Bypass’ -WindowStyle ‘Hidden’
CCMSETUP.EXE /Uninstall

Deploy the application

The only thing to do now is to deploy the newly created application. If a new version of the client becomes available you just need to change the application version and update the content.

Notes
The production version of the configuration manager client is always used, so make sure you promote the pilot to production if you want to use the latest version.

Use Github for 🐛 reporting, or 🌈 and🦄 requests