I'm getting a weirdo error from a script I wrote. It works all up to this point. This first block of set group thru the second group.setinfo works like a charm (as do 3 nearly identical calls above it). The second set, on the group.SetInfo line, I get this error:
C:\createSchool.vbs(111, 1) (null): A device attached to the system is not
functioning.
Set Group = workingOU.Create("Group", "cn=gg-UserMgrs-" & schoolName)
group.Put "sAMAccountName", "gg-UserMgrs-" & schoolName
group.Put "groupType", ADS_GROUP_TYPE_GLOBAL_GROUP Or
ADS_GROUP_TYPE_SECURITY_ENABLED
group.SetInfo
group.PutEx ADS_PROPERTY_APPEND, "member", Array(techGroupDN) ' nest the
tech group
group.SetInfo
Set Group = workingOU.Create("Group", "cn=gg-" & unitNo & "-Staff")
group.Put "sAMAccountName", "cn=gg-" & unitNo & "-Staff"
group.Put "groupType", ADS_GROUP_TYPE_GLOBAL_GROUP Or
ADS_GROUP_TYPE_SECURITY_ENABLED
group.SetInfo
Set Group = workingOU.Create("Group", "cn=gg-" & unitNo & "-Students")
group.Put "sAMAccountName", "cn=gg-" & unitNo & "-Students"
group.Put "groupType", ADS_GROUP_TYPE_GLOBAL_GROUP Or
ADS_GROUP_TYPE_SECURITY_ENABLED
group.SetInfo
note, working OU is an OU I created in a previous step (along with probably
a dozen or so other OUs).
I don't have physical access to the machine, but I think all the attached
devices are working just fine <g>.
Google has a low yield here, so, not sure.
Thanks,
Brian Desmond
<mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
c - 312.731.3132
<<attachment: winmail.dat>>
