{"id":3932,"date":"2014-11-23T12:45:30","date_gmt":"2014-11-23T04:45:30","guid":{"rendered":"http:\/\/rmohan.com\/?p=3932"},"modified":"2014-11-23T12:45:30","modified_gmt":"2014-11-23T04:45:30","slug":"iis-trouble-shooting","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=3932","title":{"rendered":"IIS TROUBLE SHOOTING"},"content":{"rendered":"<p><strong>Some Useful commands in IIS<\/strong><br \/>\n<strong><br \/>\n<\/strong><strong>MSTSC<\/strong><br \/>\n<strong>INETMGR<\/strong><br \/>\n<strong>SERVICES.MSC<\/strong><br \/>\n<strong>GPEDIT.MSC<\/strong><br \/>\n<strong>SECPOL.MSC<\/strong><br \/>\n<strong>REGEDIT<\/strong><br \/>\n<strong>REGEDT32<\/strong><br \/>\n<strong>MMC<\/strong><br \/>\n<strong>TSADMIN<\/strong><br \/>\n<strong>ASPNET_REGIIS -I : To register aspnet<\/strong><br \/>\n<strong>ASPNET_REGIIS -U : To Uninstall aspnet<\/strong><br \/>\n<strong>iisapp.vbs : To check the list applications running on the iis.<\/strong><br \/>\n<strong>NETSTART -ANO | FIND STR &lt;PORT&gt; \u00a0 :\u00a0<\/strong><strong>\u00a0Verify IIS listening on the \u00a0port or not.<\/strong><br \/>\n<strong>PING &lt;IP&gt;<\/strong><br \/>\n<strong>TRACEROUTE \u00a0 \u00a0 \u00a0 \u00a0 :<\/strong><br \/>\n<strong>iisreset<\/strong><br \/>\n<strong>iisreset\/status<\/strong><br \/>\n<strong>iisreset\/stop<\/strong><br \/>\n<strong>iisreset\/start<\/strong><br \/>\n______________________________________________________________________________<\/p>\n<p>iisreset &#8211; restarts all IIS services on the computer<\/p>\n<p>iisreset 172.16.12.5 \/stop &#8211; To stop IIS services on a remote computer with IP address 172.16.12.5<\/p>\n<p>iisreset 172.16.12.5 \/status &#8211; To verify that IIS services have been stopped on the remote computer<\/p>\n<p>iisreset \/disable &#8211; To prevent iisreset from being used to stop IIS services,<\/p>\n<p>iisreset \/stop &#8211; stop all IIS services<\/p>\n<p>________________________________________________________________<\/p>\n<p>net stop w3svc &#8211; To stop the WWW service only on your IIS computer<\/p>\n<p>net start w3svc &#8211; To start it again<\/p>\n<p>net stop \/y iisadmin &#8211; To stop the IISAdmin service and all dependent IIS services<\/p>\n<p>_______________________________________________________________<\/p>\n<p>iisweb \/stop &#8220;Default Web Site&#8221; &#8211; To stop the Default Web Site only while leaving other web sites running<\/p>\n<p>iisweb \/start &#8220;Default Web Site&#8221; &#8211; To start it again<\/p>\n<p>iisweb \/create D:\\HR &#8220;Human Resources&#8221; \/i 216.44.65.8 &#8211; The following command creates a new web site named Human Resources on server with IP 216.44.65.8 and root directory D:\\HR<\/p>\n<p>iisweb \/create D:\\Corp &#8220;My Company&#8221; &#8211; The following command creates a new site named My Company with root directory D:\\Corp and IP address &#8220;All Unassigned,&#8221;<\/p>\n<p>_________________________________________________________________<\/p>\n<p>iisvdir \/create &#8220;Human Resources&#8221; employees D:\\resumes &#8211; The following command creates a virtual directory within the Human Resources web site and maps alias employees to physical directory D:\\resumes:<\/p>\n<p>iisvdir \/query &#8220;Human Resources&#8221; &#8211; list virtual directories within the Human Resources site:<\/p>\n<p>iisvdir \/delete &#8220;Human Resources\\employees&#8221; &#8211; To delete the previously created virtual directory<\/p>\n<p>________________________________________________________________<\/p>\n<p>iisback \/backup \/b 28july04 &#8211; The following command backs up the metabase using the iisback.vbs script and names the two backup files 28july04.MD0<\/p>\n<p>iisback \/list &#8211; To view a list of the current metabase backups<\/p>\n<p>_________________________________________________________________<\/p>\n<p>iisapp &#8211; The following command displays the process ID (PID) of all worker processes running on the computer,<\/p>\n<p>iisapp \/p 2765 &#8211; The following command displays the application pool to which the worker process having PID 2765 is assigned<\/p>\n<p>iisftp \/create C:\\ftpstuff &#8220;My FTP Site&#8221; \/i 172.16.12.50 \/dontstart &#8211; The following command creates a new FTP site named My FTP Site with root directory C:\\ftpstuff and IP address 172.16.12.50<\/p>\n<p>iisftp \/start &#8220;My FTP Site&#8221; &#8211; To start the new site,<\/p>\n<p>iisftp \/query &#8211; To display a list of all FTP sites on your server<\/p>\n<p>________________________________________________________________<\/p>\n<p>net stop msftpsvc &#8211; You can also stop and start all FTP sites on your server using the following commands<\/p>\n<p>net start msftpsvc<\/p>\n<p>net stop dns &#8211; You can use the net.exe command to stop or start the DNS Server service on the local machine<\/p>\n<p>net start dns<\/p>\n<p>_________________________________________________________________<\/p>\n<p><strong>Tools for Trouble shooting IIS issues.<\/strong><br \/>\n<strong>1.Debug diag<\/strong><br \/>\n<strong>2.Log parser<\/strong><br \/>\n<strong>3.Fiddler<\/strong><br \/>\n<strong>4.Process Monitor<\/strong><br \/>\n<strong>5.Resource Monitor<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &lt;PORT&gt; : Verify IIS listening on the port or not. PING &lt;IP&gt; TRACEROUTE [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3932"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3932"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3932\/revisions"}],"predecessor-version":[{"id":3933,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3932\/revisions\/3933"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3932"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3932"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3932"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}