Admin Tip #125: Start / Stop IIS related services using NET START/STOP

Hits: Failed to execute CGI : Win32 Error Code = 3


Starting/stopping Windows NT services from the commandline using the net start and net stop commands is valuable those who prefer the commandline interface and for scheduling the stopping of services and later restart of services after backups. The net start/stop commands require the service name listed under

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services

The services applet in Control Panel uses the DisplayName. The net command does not recognize the DisplayName. This is true for any service. For IIS specifically: the service names and displaynames are:

Service name

DisplayName

Iisadmin

IIS Admin Service

Msftpsvc

FTP Publishing Service

Nntpsvc

Microsoft NNTP Service

Smtpsvc

Microsoft SMTP Service

W3svc

World Wide Web Publishing Service