General discussion

Locked

Shortcut to restart services

By Nadhir ·
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.

This conversation is currently closed to new comments.

9 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Shortcut to restart services

by gperrie In reply to Shortcut to restart servi ...

You could create a batch file to do this.

Something like

net stop <service>
sleep 30
net start <service>

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

Gavin

Collapse -

Shortcut to restart services

by Nadhir In reply to Shortcut to restart servi ...

The question was auto-closed by TechRepublic

Collapse -

Shortcut to restart services

by Nadhir In reply to Shortcut to restart servi ...

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?

Collapse -

Shortcut to restart services

by Nadhir In reply to Shortcut to restart servi ...

The question was auto-closed by TechRepublic

Collapse -

Shortcut to restart services

by Corky132 In reply to Shortcut to restart servi ...

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

Collapse -

Shortcut to restart services

by Nadhir In reply to Shortcut to restart servi ...

The question was auto-closed by TechRepublic

Collapse -

Shortcut to restart services

by Gigelul In reply to Shortcut to restart servi ...

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.

Collapse -

Shortcut to restart services

by Nadhir In reply to Shortcut to restart servi ...

The question was auto-closed by TechRepublic

Collapse -

Shortcut to restart services

by Nadhir In reply to Shortcut to restart servi ...

This question was auto closed due to inactivity

Back to Windows Forum
9 total posts (Page 1 of 1)  

Related Discussions

Related Forums