Discussion Locked

Shortcut to restart services

0 helpful
9 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi,

Is it possible to create a shortcut/link to restart my IIS services(or a partcular service) whenever i click on it.
Instead of going to control panel/services and choose the services and restart.A prompt reply is appreciated.

9 replies

by gperrie

You could create a batch file to do this.

Something like

net stop
sleep 30
net start

Not very sophisticated but should work. You could add some echo statements to let you know the progress.

Gavin

by nadhir

Thanks for the reply Gavin.I am aware abt the .bat but the thing is i can't find the event name for IIS when i type net help(that gives me a list of the events that would allow me to stop/start)
any idea?

by corky132

The main service name for IIS is IISAdmin.. or you could stop just the www service (w3svc) or ftp service (msftpsvc).. Hope that helps.

by gigelul

Hi,
In WinNT exists this utilities which can be used on server:
Type in command prompt:
netsvc \\ServerName /list>services.txt
or
sclist>services1.txt
After you run these commands find on your HDD (C:\)services.txt and services1.txt which contain the list of the services.
Some services can't be controlled remotely.

This discussion is closed to new replies.