Jump to content


tmiller_hockey

Power Off All Desktop Computers Via SCCM Console

Recommended Posts

Does anyone have a way this can be done easily?

 

Due to rolling blackouts that are coming, we need the ability to shut these machines down ahead of time. My thought was a script package deployed to a collection but if there were some machines already off, when they start back up they'd get shut down.

 

Really need to figure something out with this, my execs are being relentless.

Share this post


Link to post
Share on other sites

Create a script that checks the time of the PC....point it to the shutdowntool built into windows in the system 32 folder. If a machine is off the evening before and takes the advertisement the next morning it will not shutdown as it will not run the shutdown tool because it is out of the time frame window...surpress the advertisement also so that it remains hidden.

 

So have an advertisement scheduled to shutdown PCs say at 6pm for instance and at 10pm for

 

for example

 

if time>=18 && time <=18.30 then

%systemroot%\system32\shutdowntool.exe +++Parameters etc........

 

end if

 

 

if time>=22 && time <=22.30 then

%systemroot%\system32\shutdowntool.exe +++Parameters etc........

 

end if

 

You get the gist...the scripting above is just an example which may not work but if you can program a little then im sure you can add onto this to make it work.

I would also recommend taking a look at coretech website...they have a nice a little tool for power management

 

Rocket Man

Share this post


Link to post
Share on other sites

Thanks Rocket Man, this would work great for good notice ahead of time but we are probably only going to get about 15 minutes notice before the power goes out. I contacted Dan Ireland who wrote the SCCM Right Click tools and he is going to look into adding that ability into the Right Click tools.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.