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"
John Harvey
Shelbynet.com
"I'm addicted to placebos. I could quit, but it wouldn't matter." Stephen Wright