In VBScript, the "_" character is a special character denoting a line
continuation. It is used as the last character on a line. Rewrite the lines
to look like this and give it a try.
Set objSiteSettings = GetObject("LDAP://cn=" & _
strSubnetName & _
"cn=subnets,cn=sites," & _
I tested and corrected every single one of those scripts before publication,
but the editor only included about ½ the corrections. Sorry about that. That
one should read:
strNewSiteName = "" ' e.g. "Raleigh"
strSubnetName = "" ' e.g. "192.168.1.0\/24"
Set objRootDSE = GetObject("LDAP://RootDSE"
Fixed it in case anyone is interested. There are a few problems with the
original. Biggest problem is that the "/" in the subnet name needed to be
escaped. Also the "_" character was a typo, and there was a "," missing in
front of "cn=Subnets" .
strNewSiteName = "TESTSite1"
strSubnetName =