Aslamvs
Technical User
- Jul 8, 2002
- 472
I am looking for a script which can deploy files to multiple servers I can do it using batch script using xcopy its easy, however my question here is:
1. Stop a particular service on a server (e.g. IIS-2. Kill any process related to the service (I know which process needs to be killed.. dllhost.exe)
3. Copy file from one location to that server’s destination folder (\\server1\c$ to \\Server2\c$) – overwrite existing..
4. Start service on the server.
and go to next server to do the same.
Sometimes it can me multiple services needs to be stopped and multiple processes needs to be killed. I know the services and the process.
Need your help in creating such script which can log all the things (it will be good if in excel format).. e.g. – stop service , process killed or no, file copied or no, start service,
Thanks for your help in advance.
Aslam
1. Stop a particular service on a server (e.g. IIS-2. Kill any process related to the service (I know which process needs to be killed.. dllhost.exe)
3. Copy file from one location to that server’s destination folder (\\server1\c$ to \\Server2\c$) – overwrite existing..
4. Start service on the server.
and go to next server to do the same.
Sometimes it can me multiple services needs to be stopped and multiple processes needs to be killed. I know the services and the process.
Need your help in creating such script which can log all the things (it will be good if in excel format).. e.g. – stop service , process killed or no, file copied or no, start service,
Thanks for your help in advance.
Aslam