I would like to write a script and run it from my local PC to stop and start an application pool and site that exists on a server.
Value of App Pool and Site - Test Value of server - SERVER1
Any guidance would be much appreciated.
I would like to write a script and run it from my local PC to stop and start an application pool and site that exists on a server.
Value of App Pool and Site - Test Value of server - SERVER1
Any guidance would be much appreciated.
Run Command Prompt with Administrative rights, and type the following:
or use the
stop
command. You could save this in a batch file, but it must be executed with higher privileges.For the application pool on a remote server, you could use PsExec: