You can also use the "Sample 5.16 - QueryAndReboot.wsf" of my WMI book, Volume 1 at http://www.lissware.net. This script accepts an LDAP filter to query AD, and based on the results, it reboots all computers listed in the query result. For instance: C:\>QueryAndReboot "(name=MyServer01)(name=MyServer02)(name=MyServer03)(name=MyExchange*)"
By default, the script includes the "(objectCategory=computer)" to the filter specified on the command line. You must run this script on an XP machine because it uses the WMI-ADSI extension, which is not available in 2003. (but the script is very easy to tweak to run it on a 2003 machine. Let me know if you can't make it). Needless to say that you must carefuly formulate your LDAP query (e.g. Don't use (name=*) ) otherwise you will have some interesting time ... :-)) HTH /Alain -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Parris Sent: Wednesday, March 23, 2005 1:45 AM To: ActiveDir@mail.activedir.org Subject: Re: [ActiveDir] shutdown of all clients machines remotely Shutdown /i and add the machines to the list of machines to reboot\shutdown -----Original Message----- From: "Sharif Naser" <[EMAIL PROTECTED]> Date: Wed, 23 Mar 2005 12:19:17 To:<ActiveDir@mail.activedir.org> Subject: [ActiveDir] shutdown of all clients machines remotely Hello experts, How can i issue a shutdown (restart) to all the clients machines on my domain. Regards, DISCLAIMER: This electronic message transmission contains information from Qatar Steel Company (QASCO) which may be confidential or privileged. The information is intended to be for the use of the individual or entity named above. Be aware that any disclosure, copying, distribution or use of the contents of this information, including attachments, is prohibited without the written consent of Qatar Steel Company (QASCO). ------------------ Sent from my blackberry. List info : http://www.activedir.org/List.aspx List FAQ : http://www.activedir.org/ListFAQ.aspx List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/List.aspx List FAQ : http://www.activedir.org/ListFAQ.aspx List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/