32.1 C
Cuttack
Friday, April 19, 2024
HomeWindowsRestart one virtual directory through command line without restarting IIS service

Restart one virtual directory through command line without restarting IIS service

How to work out IIS-Virtual-Path and how you can restart one virtual directory through command line without restarting IIS serviceType - inetmgr on run
Once Internet Information services page opens

Click web sites - you will find Identifier ID w.r.t different websites. and the same Identifier ID will work for the virtual directory added to the sites.

Lets say under default website, "test" a virtual directory added and you want to change the framework version and restart the service for that only.

so for default website Identifier ID is 1
command will be aspnet_regiis.exe -norestart -s "W3SVC/1/root/test"
and you need to execute this command in command prompt inside framework directoy
like  C:\Windows\Microsoft.NET\Framework\v4.0.30319>
aspnet_regiis.exe -norestart -s "W3SVC/1/root/test" then enter

If you want to restart the default web site only then command will be 
C:\Windows\Microsoft.NET\Framework\v4.0.30319>
aspnet_regiis.exe -norestart -s "W3SVC/1/root/"
then enter

That's it
 
You may also like : Skype group contacts are not showing in Ubuntu 14.4

Durga Charan Ojhahttps://lifeonnetwork.com/
I am a proud Indian, proud father, a blogger, Being in a profession as System administrator, my passion is troubleshooting computer issues, I do like sharing solutions through blogging making videos of solving issues.
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular