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
  • From SCCM you could deploy an application with a deployment type of script installer to perform some tasks and return a hard reboot return code (1641) to SCCM - if the detection method is not satisfied the script will be re-ran so you could add logic in there to pick up where it left off using a marker perhaps?

    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 5 years ago

Answers (1)

Posted by: rileyz 5 years ago
Red Belt
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?
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ