Change the Identifier for IIS Websites

First, to find the identifier of a IIS website, you simply need to click the “Websites” folder in the left side of the IIS Manager windows.   The right pane will list the websites on the server and their respective identifiers.  If you need to change one, use the following three commands (assuming the current id is 1 and you want to change it to 2):

CSCRIPT %SYSTEMDRIVE%InetpubAdminScriptsadsutil.vbs STOP_SERVER W3SVC/1
CSCRIPT %SYSTEMDRIVE%InetpubAdminScriptsadsutil.vbs MOVE W3SVC/1 W3SVC/2
CSCRIPT %SYSTEMDRIVE%InetpubAdminScriptsadsutil.vbs START_SERVER W3SVC/2