Administering an ISP Installation |
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
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.
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.