Hi all

what's the best way to manually restart IIS service or run a specific
command from remote?
Thanks in advance!

Re: restarting IIS or executing commands from remote by Kyle

Kyle
Thu May 26 15:52:03 CDT 2005

if you are remoted in
iisreset from the cmd prompt is a hndy tool
rebooting is easy enough

depends on what you mean by from remote?

"lellosplendor" <SPAMOUT@SPAMOUT.XX> wrote in message
news:wfnle.28127$795.857205@twister1.libero.it...
> Hi all
>
> what's the best way to manually restart IIS service or run a specific
> command from remote?
> Thanks in advance!



Re: restarting IIS or executing commands from remote by lellosplendor

lellosplendor
Fri May 27 09:52:50 CDT 2005

Kyle Peterson ha scritto:
> if you are remoted in
> iisreset from the cmd prompt is a hndy tool
> rebooting is easy enough
>
> depends on what you mean by from remote?

thanks for the answer. No, I don't want to get into the the server from
remote.
I would like to simply restart IIS by connecting the browser to a web
page or installing a specific service.

Re: restarting IIS or executing commands from remote by Kristofer

Kristofer
Sat May 28 10:43:32 CDT 2005

Hi,

You can probably find this functionality in the IIS Web Administration
(not installed by default, can be installed from Add/Remove Windows
Components). I do however not recommend this installed on a public
webserver.

Another way is to write custom code. Using WMI it should not be difficult
to restart the W3SVC Service. Examples to stop and start a service can be
found here:

http://www.microsoft.com/technet/scriptcenter/scripts/os/services/default.mspx

Note however that once you have stopped the W3SVC service, you cannot
invoke a start of the service from the webpage (since IIS will not
respond), so you need to start automatically.

I also did a quick search on support.microsoft.com and got this:

"IIS: How to Restart IIS Services by Using WSH with ADSI"
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q247557


--
Regards,
Kristofer Gafvert (IIS MVP)
www.gafvert.info - My Articles and help
www.ilopia.com


lellosplendor wrote:

> Kyle Peterson ha scritto:
> > if you are remoted in
> > iisreset from the cmd prompt is a hndy tool
> > rebooting is easy enough
> >
> > depends on what you mean by from remote?
>
> thanks for the answer. No, I don't want to get into the the server from
> remote.
> I would like to simply restart IIS by connecting the browser to a web
> page or installing a specific service.