Administering an ISP Installation

Previous Topic Next Topic

Changing Permissions

This example shows you how to change permissions for a virtual directory located on a different server. Suppose you want to grant Write permission on a virtual directory called Test. The Web site is on your company’s intranet on a computer named Server2, located in another building. Instead of walking over to the other building, you prefer to make this change from the computer (Server1) in your office.

To change permissions for a Web site on another server

  1. On your administration server, open a command prompt.
  2. Type adsutil and accept the defaults in order to register Cscript.exe.

    If you don’t want to register Cscript.exe (because you are running another scripting host by default), you have to type Cscript.exe in front of the script you want to run. See the example in Executing Scripts.

  3. At the command prompt on Server1, type the following line:
    Adsutil set w3svc/1/root/test/accesswrite “true”-S:server2
    

    test is the virtual directory on which permissions are reset.

    accesswrite changes Write permissions.

    true grants Write permissions.

    -S:server2 is the server where the Web site is located.

Users can now upload files to the virtual directory Test on Server2.


© 1997-1999 Microsoft Corporation. All rights reserved.