SCCM Configmgr powershell to enable the option software update deployment re-evaluation behaviour upon restart

SCCM Configmgr powershell to enable the option software update deployment re-evaluation behaviour upon restart

With Configuration manager 1606 ,new feature was added to software updates section which is called ‘Run software updates compliance scan immediately after a client installs software updates and restarts’ . This feature really helps to run a software update compliance scan immediately after a client installs software updates and restarts.This feature enables the client to check for additional software updates that become applicable after the client restarts, and then to install them (and become compliant) during the same maintenance window.

To set this up for a deployment, on the User Experiencepage of the Deploy Software Updates Wizard, select If any update in this deployment requires a system restart, run updates deployment evaluation cycle after restart. This enables the client to check for additional software updates that become applicable after the client restarts, and then to install them (and become compliant) during the same maintenance window.

For newly created deployments ,you set this option during the user wizard but what about if you have migrated your environment from SCCM Configmgr 2012 R2 to SCCM Configmgr 1606 or Current Branch 1610 ?

For existing deployments after you migrated from CM12 to 1606 or above ,you need to right click on the software update deployment ,go to user experience tab, at the bottom you will see “software update deployment re-evaluation behaviour upon restart” as shown below.

image

If you have fewer deployments, you can set this option manually but what if you have large number of deployments and setting up manually is not good option and for that, we will use powershell script.

To enable this option using powershell for all the software update deployments , we need to identify this property in wmi .I use WMI explorer connect to SCCM site ,ROOT\SMS,Root\SMS\site_Sitecode , filter withSMS_UpdateGroupAssignment ,select any update group assignment ,on the right side of wmi explorer ,you will find list of properties that are associated with each deployment.

image

In order to select this option for large number of deployments, we will use powershell script to setRequirePostRebootFullScan to TRUE. RequirePostRebootFullScan can accept only Boolean either False or True.

This property is not yet included in the configmgr powershell cmdlet but as per Configmgr User voice , this will be available in 1701 Technical preview which means we can expect this in the next current branch update .

image

Until this is available in the Configmgr powershell cmdlet ,we will set RequirePostRebootFullScan  to true using powershell for all the deployments that are not enabled this option.

This powershell script basically go through the list of all software update deployments and check ifRequirePostRebootFullScan  is set to false ,change it to TRUE and pipe the deployment information to log file.

Download the powershell script from Technet Gallaryhere

By Sheikvara

+919840688822, +919003270444

Advertisements

4 thoughts on “SCCM Configmgr powershell to enable the option software update deployment re-evaluation behaviour upon restart

  1. I actually wanted to make a brief word to say thanks to you for all the superb guidelines you are writing on this website. My considerable internet investigation has now been paid with good quality facts to exchange with my family members. I ‘d express that most of us site visitors are extremely fortunate to be in a useful website with very many brilliant people with interesting pointers. I feel really fortunate to have discovered the site and look forward to many more entertaining moments reading here. Thanks once more for a lot of things.

    Like

  2. Woah! I’m really enjoying the template/theme of this site. It’s simple, yet effective. A lot of times it’s hard to get that “perfect balance” between user friendliness and appearance. I must say you have done a fantastic job with this. In addition, the blog loads extremely fast for me on Safari. Exceptional Blog!|

    Like

  3. Having read this I believed it was extremely informative. I appreciate you taking the time and effort to put this article together. I once again find myself personally spending a significant amount of time both reading and commenting. But so what, it was still worth it|

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s