Configure web permissions (VBScript)
This code can be found in
Chapter 15 of Windows Server 2003 Security Cookbook
Purchase XP Cookbook or Networking Recipes for only $25 plus shipping! While supplies last.
Find out how to download all of the VBScript code from this site.
' This code configures web permissions on a web site.
' ------ SCRIPT CONFIGURATION ------
strComputer = "<ServerName>" 'e.g. web01
strSiteID = "<SiteID>" 'e.g. 1
' ------ END CONFIGURATION ---------
set objWebSite = GetObject("IIS://" & strComputer & "/W3SVC/" & strSiteID)
objWebSite.AccessRead = True
objWebSite.AccessWrite = True
objWebSite.AccessSource = True
objWebSite.AccessScript = False
objWebSite.AccessExecute = False
objWebSite.SetInfo
WScript.Echo "Successfully modified permissions for web site: " & _
objWebSite.ServerComment
|
This code has been viewed 887 times.
|
New from the creators of TechTasks.com:
StatSheet.com
|