Some Useful commands in IIS
MSTSC
INETMGR
SERVICES.MSC
GPEDIT.MSC
SECPOL.MSC
REGEDIT
REGEDT32
MMC
TSADMIN
ASPNET_REGIIS -I : To register aspnet
ASPNET_REGIIS -U : To Uninstall aspnet
iisapp.vbs : To check the list applications running on the iis.
NETSTART -ANO | FIND STR <PORT> : Verify IIS listening on the port or not.
PING <IP>
TRACEROUTE :
iisreset
iisreset/status
iisreset/stop
iisreset/start
______________________________________________________________________________
iisreset – restarts all IIS services on the computer
iisreset 172.16.12.5 /stop – To stop IIS services on a remote computer with IP address 172.16.12.5
iisreset 172.16.12.5 /status – To verify that IIS services have been stopped on the remote computer
iisreset /disable – To prevent iisreset from being used to stop IIS services,
iisreset /stop – stop all IIS services
________________________________________________________________
net stop w3svc – To stop the WWW service only on your IIS computer
net start w3svc – To start it again
net stop /y iisadmin – To stop the IISAdmin service and all dependent IIS services
_______________________________________________________________
iisweb /stop “Default Web Site” – To stop the Default Web Site only while leaving other web sites running
iisweb /start “Default Web Site” – To start it again
iisweb /create D:\HR “Human Resources” /i 216.44.65.8 – The following command creates a new web site named Human Resources on server with IP 216.44.65.8 and root directory D:\HR
iisweb /create D:\Corp “My Company” – The following command creates a new site named My Company with root directory D:\Corp and IP address “All Unassigned,”
_________________________________________________________________
iisvdir /create “Human Resources” employees D:\resumes – The following command creates a virtual directory within the Human Resources web site and maps alias employees to physical directory D:\resumes:
iisvdir /query “Human Resources” – list virtual directories within the Human Resources site:
iisvdir /delete “Human Resources\employees” – To delete the previously created virtual directory
________________________________________________________________
iisback /backup /b 28july04 – The following command backs up the metabase using the iisback.vbs script and names the two backup files 28july04.MD0
iisback /list – To view a list of the current metabase backups
_________________________________________________________________
iisapp – The following command displays the process ID (PID) of all worker processes running on the computer,
iisapp /p 2765 – The following command displays the application pool to which the worker process having PID 2765 is assigned
iisftp /create C:\ftpstuff “My FTP Site” /i 172.16.12.50 /dontstart – The following command creates a new FTP site named My FTP Site with root directory C:\ftpstuff and IP address 172.16.12.50
iisftp /start “My FTP Site” – To start the new site,
iisftp /query – To display a list of all FTP sites on your server
________________________________________________________________
net stop msftpsvc – You can also stop and start all FTP sites on your server using the following commands
net start msftpsvc
net stop dns – You can use the net.exe command to stop or start the DNS Server service on the local machine
net start dns
_________________________________________________________________
Tools for Trouble shooting IIS issues.
1.Debug diag
2.Log parser
3.Fiddler
4.Process Monitor
5.Resource Monitor
Recent Comments