Skip to content

Microsoft IIS AdminScripts - Process Steps

AdsUtil

Run an arbitrary adsutil command.

NameTypeDescriptionRequired
AdsUtil.vbs PathStringThe path to the AdsUtil.vps executable including the file name. eg: C:\InetPub\AdminScripts\adsutil.vbsNo
CommandStringThe command to be run using adsutil.Yes
Cscript PathStringThe path to the cscript.exe executable including the file name if not on the path. eg: C:\Windows\system32\cscript.exeNo
ParametersStringA newline separated list of parameters to be set if needed for the command.No
PathStringThe path of the node for which you are setting the property, combined with the name of the property you are setting. e.g. w3svc/1/ServerCommentNo

Set .Net Version

Set the .net version for a website

NameTypeDescriptionRequired
VersionEnumeration:
  • v2.0.50727
  • v1.1.4322 | The version of .Net to set the website to. For this to work the .Net framework for this version must be installed and contain the aspnet_regiis executable in the %windir%\microsoft.net\framework``${version}`` directory. | Yes | | Website | String | The website name. | No |

Update VDirProperties

Set properties on a virtual directory

NameTypeDescriptionRequired
ParametersStringA newline separated list of parameters to be set in the form name=value(note = is not valid as part of the name).No
VDir OffsetStringThe offset from the website path to the virtual directory. For the default vdir it is /root. For a vdir named test it would be /root/test.Yes
WebSiteStringThe website name.No

Update WebSiteProperties

Set properties on a website

NameTypeDescriptionRequired
ParametersStringA newline separated list of parameters to be set in the form name=value(note = is not valid as part of the name).No
WebSiteStringThe website name.No