Blog

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%\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

3 Responses to “Change the Identifier for IIS Websites”

  1. Ever wanted to change the identifier of an IIS Website ? - Brent Says:

    […] I got to clicking and stumbled accross a helpful post @   kazmarek    summarised […]

  2. Ganga Says:

    The default web site is not stopping from the above command. It show the error as
    “object doesnot support this property or method”
    Error Number:- 438
    Error trying to stop the server: w3svc/1/ROOT

    Can you suggest me

  3. Article Submission Says:

    Hi, just thought you’d be interested to know that I have added you to my bookmarks because of your beautiful blog layout (LOL). But seriously, I think your site has one of the cleanest theme I’ve seen yet. It honestly makes your blog post easier to read.

Leave a Reply