Link to home
Start Free TrialLog in
Avatar of IT-BW
IT-BW

asked on

Shutting a group of desktops computers in the AD domain

is there a quick method using GPO or scripts to initiate shutdown on all users computers in the domain.
my environment is Win10, 8 and 7 mix

I want to be able to trigger a shutdown on demand to say a group of computers as ncecessary.

any solution?
ASKER CERTIFIED SOLUTION
Avatar of Paul Wagner
Paul Wagner
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Dirk Kotte
Take a look to shutdown -i
IT is the gui to the Windows build in Tool.
The SHUTDOWN command is definitly the way to go, but not with the GUI.
SHUTDOWN  on its own at a command line will spit out the syntax.
SHUTDOWN  works fine within a script.
you get a list of the computernames that you want to shutdown.  There are a lot of ways to get this list and then for every computername you run shutdown  /M \\computername <<add further shutdown options here>>
SHUTDOWN also works via IP address, so you could use Excel to throw together a text file and use that to shutdown a range.

ie
shutdown  /M \\192.168.0.1
shutdown  /M \\192.168.0.2
shutdown  /M \\192.168.0.3
...
shutdown  /M \\192.168.0.253
Avatar of IT-BW
IT-BW

ASKER

aah...good to be back..

ok - I tried the shutdown command but it does not work.
tried PStools - psshutdown but still nothing

reading more on this - some articles say you have to open up the admin share.
is this right.....if so then what do I have to do to open admin share across all pcs

have not tried Specops GPUpdate but will test that too
Ya, give it a try. It's powerful but non-invasive. If you don't like it, you can easily delete it from the server.
SHUTDOWN  shoudl work, provided that the security context used to run the command has administrative access to the target machine. Domain administrators nearly always have this.