Hi Torgeir, and thanks for the response.
That method generally works.
However, for one of the servers whose IIS are being restarted in batch file:
iisreset {webservername} /restart
I receive the message
"The RPC server is unavailable"
I do not receive the messages:
Attempting stop....
Internet services successfully stopped
Attemping start...
Internet serivices successfully restarted
Looking at the Services applet on the machine I am running the batch file
from, I see that the RPC service is started.
Also, going to {webservername} and running "iisreset" directly succeeds.
Post by Torgeir Bakken (MVP)Post by John GrandyHi. I would like to create a batch file that runs "iisreset" on
a large number of web-servers (all boxes are Windows 2003 Server).
I have created a domain account that is member of the local
Administrators group of each of these boxes.
Hi,
iisreset.exe can take a remote computer name on the command line,
so from an computer that have IIS installed, you could try this in
iisreset.exe webserver01 /STATUS
where webserver01 is the name of the remote computer.
If that works for you, you can in e.g a batch file or VBScript file
feed the iisreset.exe command with computer names from e.g. a text
file.
--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
http://www.microsoft.com/technet/scriptcenter/default.mspx