Microsoft KB Archive/315583

= How To Change Web Site Permissions on an IIS Server from Another IIS Server =

Article ID: 315583

Article Last Modified on 11/1/2006

-

APPLIES TO


 * Microsoft Internet Information Server 4.0

-



This article was previously published under Q315583



IN THIS TASK
SUMMARY Add the AdminScripts Folder to the System Path
 * Windows 2000-Based Computer
 * Windows XP Professional-Based Computer

Register CScript on the Administration Server Change Permissions for a Web Site Notes



SUMMARY
This step-by-step article describes how to change the permissions of a Web site that is located on one IIS server from another IIS server. You can use the Administration Script Utility (Adsutil.exe) to complete this task. The Adsutil.exe utility is an ADSI script that is located in the AdminScripts folder of IIS.

back to the top

Add the AdminScripts Folder to the System Path
Before you can complete the steps in this article, you must add the AdminScripts folder to the Windows environment path. If you have already done this, you can skip this portion of the article. To add the AdminScripts folder to the Windows environment path, use the appropriate method.

back to the top

Windows 2000-Based Computer

 * 1) On the Windows 2000 desktop, right-click My Computer, click Properties, and then click the Advanced tab.
 * 2) Click Environment Variables.
 * 3) In the System Variables box, click the line that begins with the word &quot;path.&quot;
 * 4) Click Edit.
 * 5) In the Edit System Variable dialog box, put the cursor at the end of the line in the Variable Value box.
 * 6) Type path\Inetpub\AdminScripts to add the path to the sample ADSI scripts, where path is the location of the Inetpub folder. For example, ;c:\Inetpub\AdminScripts.

NOTE: This initial punctuation is explained because each element in the path variable must be separated by a semicolon.
 * 1) Click OK.

back to the top

Windows XP Professional-Based Computer

 * 1) On the Windows XP Professional desktop, right-click My Computer, and then click Manage.
 * 2) Right-click Computer Management(Local), and then click Properties.
 * 3) Click the Advanced tab.
 * 4) In the Environment Variables box, click Settings.
 * 5) In the System Variables box, click the line that begins with the word &quot;path.&quot;
 * 6) Click Edit.
 * 7) In the Edit System Variable dialog box, put the cursor at the end of the line in the Variable Value box.
 * 8) Type path\Inetpub\AdminScripts to add the path to the sample ADSI scripts, where path is the location of the Inetpub folder. For example, ;c:\Inetpub\AdminScripts.

NOTE: This initial punctuation is explained because each element in the path variable must be separated by a semicolon.
 * 1) Click OK to close the Environment Variables dialog box.

back to the top

Register CScript on the Administration Server
The Adsutil.vbs script that you will be running in this article uses CScript. By registering Cscript.exe as your default scripting host, you don't have to type Cscript.exe in front of the scripts to run them. Skip this task if you don't want to register Cscript.exe, or have already registered CScript as your default scripting host. To register CScript as your default scripting host:
 * 1) On your administration server, open a command prompt.
 * 2) Type adsutil, and then press ENTER. If CScript is not the default scripting host on this computer, you receive a &quot;This script does not work with WScript&quot; message. If CScript is already the default scripting host, text that describes how to use the Adsutil.exe tool appears. If this is the case, you can skip the rest of the steps in this section, and complete the final task.
 * 3) Click OK to close the This script does not work with WScript dialog box.
 * 4) Click Yes to register CScript, click OK, and then click OK.

back to the top

Change Permissions for a Web Site
To change permissions for a Web site server from another server, type one of the following commands at the command prompt (where the bracketed &quot;I&quot; indicates the beginning of optional values that may or may not be entered and the bracketed &quot;/I&quot; indicates the end of the optional values):

back to the top