To elaberate on John's post. If done in Fox.
RUN cmd /c NET STOP "IIS Admin Service" /Y
RUN cmd /c NET START "World Wide Web Publishing Service"
RUN cmd /c NET START "Simple Mail Transport Protocol (SMTP)"
RUN cmd /c NET START "FTP Publishing Service"
RUN cmd /c NET START "IIS Admin Service"
>What's wrong with running iisreset?
>Of course another method is to use some good ole command line stuff like:
>
>net start >stopservices.bat
>
>This will give you a list of all services that are started. You can then get the correct names for the services and issue. Here's an extract of what that file will look like:
>
>These Windows services are started:
>
> Application Layer Gateway Service
> Ati HotKey Poller
> Automatic Updates
> Bluetooth Service
> Cisco Systems, Inc. VPN Service
> COM+ Event System
> COM+ System Application
> Computer Browser
> cpqdmi
> Cryptographic Services
> IIS Admin
> Infrared Monitor
> Insight Local Alerter
> Insight Web Agent
> IPSEC Services
>
>etc, etc etc.
>
>To stop a service, you can do so from the command prompt using "net stop"
>So, to stop iis and restart, you might create a batch file that does the following:
>
>net stop "IIS Admin" /y
>net start "IIS Admin"
Greg Reichert