Script to force reboot and report back the status to sccm
We have a requirement where we need a script to reboot the machine and check the status after reboot and report the status back to sccm.
script/app/package that can be created to reboot
the device and check back in? We want something that is a complete standalone
package/app
We are having SCCM 2012 in the environment.
P.s: We tried to reboot thru sccm client but thinclients are not rebooting.
1 Comment
[ + ] Show comment
Answers (1)
Please log in to answer
Posted by:
rileyz
8 years ago
What? Huh? Can you please explain in more detail.
The reboot I understand, the rest I dont. SCCM is not designed to report back to SCCM "live", it polls at intervals. The only way to get it to run as (I think) you would like is to write a script.
Ie, get the script to...
Create a Scheduled Task to run to report back to SCCM/whatever on reboot through SCCM or other means, remove task (itself) after run. FYI, you can call WMI commands to trigger SCCM actions.
Then trigger the reboot after the above.
Thincients, is your maintenance window stopping the reboot?
But no-one likes to use hard reboots for obvious reasons and is an SCCM application the best option?
We'd require more details to make an informed decision.... - wynnem 8 years ago