Jump to content

We use cookies to let you log in, for ads and for analytics. OK


SCCM Updates (only if condition/flag is true)

  • Please log in to reply
2 replies to this topic

#1 scottmj



  • Established Members
  • Pip
  • 1 posts

Posted 27 July 2012 - 06:20 AM

Hi all,

I'm currently looking for a way to (more) automate the patching and restarting of my servers.

Currently I am happily making Collections, and deploying updates to them. I am making the updates available but not setting deadlines. This is because I have to confirm a full C: Drive/System State backup has been done before I can install the updates. Currently these backups are a manual process I will be also looking to automate. If I can get SCCM to detect the backup has been done, I want to to then go ahead and install the updates. I can come along a little later and check the server/s to make sure things are running as they should be.

So, yeh, I am looking for a way to get SCCM to confirm that the backup has been done (i.e. I could create a text file/flag of some sort) and only then would it install the pre-configured updates.

I have a few different people whoh could script some vb/powershell stuff for me so if that is what it would take I am happy to hear it.... I just need pointing in the right direction.


#2 cotagag



  • Established Members
  • Pip
  • 6 posts

Posted 27 July 2012 - 07:47 AM

Hello Matt,

Jst an idea. Why wouldn't you use the SCCM default functionality for your scope?
For eaxample add a new condition to the collection which contains all your targets. Add a query which will allow targets to that collection only if they meet an additional condition (your flag). You could gather the information about your flag with software or hardware inventory.
You could force a software/hardware inventory execution on your collection containing all your target servers before starting the deployment of updates.

Hope this gives you some ideas.

#3 Jorgen Nilsson

Jorgen Nilsson

    Advanced Member

  • Moderators
  • PipPipPip
  • 459 posts
  • Gender:Male
  • Location:Malmo, Sweden
  • Interests:SCCM,Intune, Windows 10 Deployment and Liverpool FC

Posted 28 July 2012 - 08:25 AM

If you make them available to the clients, you should be able to create a custom task sequence, run a script that either starts the backup or check that it is completed, and then use the builtin "Install Software Updates" step after that. Then the updates would install.
Then you could also a make a condition so that if the backup check fails, e-mails you or whatever you would like.

I could see that working..


Microsoft MVP Enterprise Mobility
My blog : http://ccmexec.com

Twitter : ccmexec

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users