RE: modifying subnet assignment by script

2010-04-16 Thread Malcolm Reitz
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," & _

RE: modifying subnet assignment by script

2010-04-16 Thread Michael B. Smith
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"

re: modifying subnet assignment by script

2010-04-15 Thread Christopher Bodnar
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 =