Tag Archive | "IIS identifier"


Change IIS website identifier

If you add the IIS website manually from IIS manager, the IIS identifier is generated randomly, for management convenience, we can give it a order by following the specific ids. Just create a bat file and put the following to it (in this example we change the identifier from 4 to 42):

CSCRIPT %SYSTEMDRIVE%\Inetpub\AdminScripts\adsutil.vbs STOP_SERVER W3SVC/4
CSCRIPT %SYSTEMDRIVE%\Inetpub\AdminScripts\adsutil.vbs MOVE W3SVC/4 W3SVC/42
CSCRIPT %SYSTEMDRIVE%\Inetpub\AdminScripts\adsutil.vbs START_SERVER W3SVC/42


Posted in Windows-IIS-ASPNETComments (8)