How to change IIS web site identifier
Below you can find a little How to if are getting problem with current iis identifiers.
For example you have 2 web sites installed on your local IIS :
- SampleIISApplication1 with identifier = 1
- SampleIISApplication2 with identifier = 2
For some reason you need SampleApplication1 to use identifier 2
Do following step to change SampleIISApplication1 identifier to some other value:
CSCRIPT %SYSTEMDRIVE%\Inetpub\AdminScripts\adsutil.vbs STOP_SERVER W3SVC/1
CSCRIPT %SYSTEMDRIVE%\Inetpub\AdminScripts\adsutil.vbs MOVE W3SVC/1 W3SVC/11
CSCRIPT %SYSTEMDRIVE%\Inetpub\AdminScripts\adsutil.vbs START_SERVER W3SVC/11
To update SampleIISApplication2 idetifier to 1:
CSCRIPT %SYSTEMDRIVE%\Inetpub\AdminScripts\adsutil.vbs STOP_SERVER W3SVC/1
CSCRIPT %SYSTEMDRIVE%\Inetpub\AdminScripts\adsutil.vbs MOVE W3SVC/1 W3SVC/2
CSCRIPT %SYSTEMDRIVE%\Inetpub\AdminScripts\adsutil.vbs START_SERVER W3SVC/2