Friday, April 25, 2014

Using a SCCM 2012 package to WOL computers for maintenance

While being able to send WOL packets to computers before software deployments, Configmgr 2012 lacks a built in scheduled task for waking computers at a specific time. A work around I am using is a "do nothing" package scheduled to run once a week. The deployment for this package is set to run outside maintenance windows, to ensure the computers are wakened and ready by the time both Deep Freeze and later Configmgr are ready to put them into thawed mode and the maintenance window. See this post for how the maintenance window timeline works at our university.

The "do nothing" program I use is DFC.exe which is a deep freeze console program, the command line I use is "DFC.exe get /ISFROZEN" which returns a value when run from command line. I don't really care about the value it returns as I am only gaming Configmgr to wake the computer before running the command. You could just as easily have it run a .cmd file that does nothing and exits. The package properties look like:

Now on the deployment for this package, its important to check the Send wake-up packets checkbox on the Deployment Settings tab.
 
 Here I have it scheduled to run every week on Friday at 2:15AM. I have set the Rerun behavior to Always rerun program.
 
 Lastly, I want this package to run outside (ignoring) the Configmgr maintenance window, so I have checked this box:

No comments:

Post a Comment