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.
Please log in to answer
Posted by: rileyz 4 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?