/build/static/layout/Breadcrumb_cap_w.png

Using SCCM to shutdown PC's

Hi,

Hope someone can help me with the following query, We have recently upgraded SMS to SCCM successfully.However we are trying to implement shutdown of PC's every night on our network. I have created a batch file "shutdown.exe -s -f -t 60 -c "Shutting System Down" and this will successfully deploy and action via SCCM. The problem I was encountering when I was testing on SMS 2003 it;'s that if the PC is already shutdown the advertisement will run when the PC turns on in the morning and it will shutdown. Therefore I am making use of the maintenance window to set a duration time in SCCM? the collection can be advertised. So I set duration in maintenance window in collection and in package/program requirements I have set the same time as maintenance window for "maximum allowed run time".

Am I missing something to action? and how can I ensure that the PC will not shutdown if turned on in the morning?
Many Thanks

1 Comment   [ + ] Show comment
  • What you can do is have your batch file ping the machine, if it gets a request timed out response, exit the script, else run the shutdown down command - ttoscan 10 years ago

Answers (2)

Posted by: revizor 15 years ago
Third Degree Blue Belt
0
Had a good laugh reading your post...

You may want to expire advertisements every morning - there are scripts you can write or "borrow" that would change advertisement properties to work around your maintenance windows. Would be nice to have this functionality "out of the box" in SMS/SCCM, wouldn't it?
Posted by: Pravin_lfc 15 years ago
Senior Yellow Belt
0
Many thanks for the feedback, does anyone have occured issues trying to use SCCM to shutdown PC's every night? or would third party software's be the best method?

Many Thanks
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
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