Re: Script: Remote shutdown of all domain computers



Joris van der Struijk wrote:
We realy need a script to automaticaly and remotly shutdown all of our 300
WXP SP2 client PC's in our domain located in the OU: Hosts.

You don't have too many computers so maybe you can use another way...

Go to sysinternals.com and grab the psutils suite. That includes the
util psshutdown.exe which can act on all hosts in a file.

To create that file just do net view > machines.txt and then edit it in
notepad, removing the leading "\\" from the names you want.

Then all you do is `psshutdown [-flags] @machines.txt` and it will go.
Type psshutdown -? to see all the options (not too many). You can
create different txt files containing servers, workstations, etc... to
use with various utils.

~Jason

--
.



Relevant Pages

  • Re: cannot access a particular site (3rd time trying you guys)
    ... I searched HOSTS in sys32 drivers etc and found no ... The MN510 is not a router, just a wireless usb adaptor to ... There are no other computers using the MN510. ... >> registry and all the ie settings that the techs at HP ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Connecting
    ... clear the cache and the system will use the full name resolution (includes hosts) to resolve any new name. ... >>>connect to the internet with both my computers. ... >>>either has no dial tone, busy signal or a message I ...
    (microsoft.public.isa)
  • Inside hosts loses connection to the Internet - ASA5505
    ... From time to time one or two computers loses connection to the Internet, and I do not know whey. ... Normaly all the hosts are able to ping the firewall. ... This platform has a Base license. ...
    (comp.dcom.sys.cisco)
  • Re: "net use K: \192.168.0.40D$" is working - "net use K: \comp7D$" is NOT working ????
    ... one of the computers has the name "comp7" with IP 192.168.0.40. ... When I map now the remote shared partition D with name D$ to my local drive K: ... Do you have a DNS server, are you using netbios? ... Not putting it e.g. into the "hosts" file cannot be the reason because ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: "net use K: \192.168.0.40D$" is working - "net use K: \comp7D$" is NOT working ????
    ... one of the computers has the name "comp7" with IP 192.168.0.40. ... When I map now the remote shared partition D with name D$ to my local drive K: ... Do you have a DNS server, are you using netbios? ... Not putting it e.g. into the "hosts" file cannot be the reason because ...
    (microsoft.public.windowsxp.help_and_support)