samih_habib
asked on
Connecting to 5 different remote windows 2004 servers
I need a batch file ( windows batch file) to do the following:
1- Connecting to 5 different remote windows 2004 servers
2- The user name : user01 password : password for each server to connect
3- Action is to stop the iis and TmProxy service in all servers
4- And write the result in text
1- Connecting to 5 different remote windows 2004 servers
2- The user name : user01 password : password for each server to connect
3- Action is to stop the iis and TmProxy service in all servers
4- And write the result in text
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks
Open in new window
You need to adjust timeout as your need, if it is too short the next statement will fail when the dependant service is still stopping e.g. w3svc depends on httpfilter and httpfilter depends on iisadmin so if you want to stop iisadmin you need to stop w3svc httpfilter and iisadmin in order. so if you don't wait for w3svc to stop stopping httpfilter will throw error
You need to modify the file if there is any service depends on tmproxy, you need to stop that service before stopping tmproxy.