satish_halemani
asked on
Batch file or powershell script ro remotely shutdown/restart windows servers
Hi,
I need a batch file or a powershell script which i can use to remotely shutdown or restart multiple windows servers. When i execute the script, it should give me he option of where servers need to be shutdown or restarted which i can accordingly choose. We have windows 2000/2003/2008 servers in our environment.
Any help would be much appreciated.
Thanks in advance
I need a batch file or a powershell script which i can use to remotely shutdown or restart multiple windows servers. When i execute the script, it should give me he option of where servers need to be shutdown or restarted which i can accordingly choose. We have windows 2000/2003/2008 servers in our environment.
Any help would be much appreciated.
Thanks in advance
ASKER
This is not working. Though it opens the command prompt, it doesn't respond whether i type S or any other key(for reboot).
You have to press enter after your input, and you have to provide a list of servers in servers.txt.
ASKER
Qlemo,
No luck. After providing input and press enter, there is no response at all and all the server names are there in servers.txt. Not sure what's the issue. I am executing the script from a windows 2003 server.
No luck. After providing input and press enter, there is no response at all and all the server names are there in servers.txt. Not sure what's the issue. I am executing the script from a windows 2003 server.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I used the script on a windows 2003 server only as we dont have 2000 servers in our domain.
Let me try it again with your new suggestions and see if it works.
Let me try it again with your new suggestions and see if it works.
Any results yet?
Open in new window