Location: List Archives

List Archives

This forum is an archive of all posts to our mailing list over the past few years.  The forum is set read only therefore to contribute you will need to join our list community.  See more info about this here.

 

When subscribed to the list you should use your standard email client to send your posts to ActiveDir@mail.activedir.org.

List Archives

Subject: [ActiveDir] goofy script error
Prev Next
You are not authorized to post a reply.

AuthorMessages
bdesmondUser is Offline

Posts:1044

09/01/2005 10:05 AM  
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 .



Google has a low yield here, so, not sure.



Thanks,
Brian Desmond

brian@xxxxxxxxxxxxxxxx



c - 312.731.3132







>
bdesmondUser is Offline

Posts:1044

09/02/2005 2:22 AM  
Thanks,
Brian Desmond

brian@xxxxxxxxxxxxxxxx



c - 312.731.3132





_____

From: ActiveDir-owner@xxxxxxxxxxxxxxxxxx
[mailto:ActiveDir-owner@xxxxxxxxxxxxxxxxxx] On Behalf Of Al Mulnick
Sent: Friday, September 02, 2005 8:27 AM
To: ActiveDir@xxxxxxxxxxxxxxxxxx
Subject: RE: [ActiveDir] goofy script error



I'll discount the user as a source of goofiness ;)



Was it me, I'd troubleshoot by figuring out what this is set to at runtime



cn=gg-" & unitNo & "-Staff"



I'd also make sure that whatever it is that's being created, doesn't already
exist. Starting with figuring out what that becomes at run time is the
first step for me though.



Al







_____

From: ActiveDir-owner@xxxxxxxxxxxxxxxxxx on behalf of Brian Desmond
Sent: Thu 9/1/2005 6:04 PM
To: ActiveDir@xxxxxxxxxxxxxxxxxx
Subject: [ActiveDir] goofy script error

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 .



Google has a low yield here, so, not sure.



Thanks,
Brian Desmond

brian@xxxxxxxxxxxxxxxx



c - 312.731.3132







>
Alm@xxxx.yyy

09/02/2005 8:15 AM  
I had this same conversation offline, so I figure it might
be nice to post it publicly.  For posterity ;)

the problem is that the samaccountname is defined
incorrectly.

should be
group.Put
"sAMAccountName", "gg-" & unitNo & "-Staff"
vs.
group.Put
"sAMAccountName", "cn=gg-" & unitNo & "-Staff"

Note the CN= in the version
that gives that weird error. 


From: ActiveDir-owner@xxxxxxxxxxxxxxxxxx
[mailto:ActiveDir-owner@xxxxxxxxxxxxxxxxxx] On Behalf Of Brian
DesmondSent: Friday, September 02, 2005 10:21 AMTo:
ActiveDir@xxxxxxxxxxxxxxxxxxSubject: RE: [ActiveDir] goofy script
error
Yeah
checked that ¦ it gets set to cn=gg-1234-Staff, my test unit number.



Thanks,Brian
Desmond
brian@xxxxxxxxxxxxxxxx

c -
312.731.3132




From:
ActiveDir-owner@xxxxxxxxxxxxxxxxxx [mailto:ActiveDir-owner@xxxxxxxxxxxxxxxxxx]
On Behalf Of Al
MulnickSent: Friday, September
02, 2005 8:27 AMTo:
ActiveDir@xxxxxxxxxxxxxxxxxxSubject: RE: [ActiveDir] goofy script
error

I'll discount the user
as a source of goofiness ;)



Was it me, I'd troubleshoot by
figuring out what this is set to at runtime



cn=gg-"
& unitNo & "-Staff"



I'd also make sure that whatever it
is that's being created, doesn't already exist.  Starting with figuring out
what that becomes at run time is the first step for me though.


Al







From:
ActiveDir-owner@xxxxxxxxxxxxxxxxxx on behalf of Brian DesmondSent: Thu 9/1/2005 6:04 PMTo: ActiveDir@xxxxxxxxxxxxxxxxxxSubject: [ActiveDir] goofy script
error

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 .

Google
has a low yield here, so, not sure.

Thanks,Brian
Desmond
brian@xxxxxxxxxxxxxxxx

c -
312.731.3132
Alm@xxxx.yyy

09/02/2005 12:30 PM  
________________________________

From: ActiveDir-owner@xxxxxxxxxxxxxxxxxx on behalf of Brian Desmond
Sent: Thu 9/1/2005 6:04 PM
To: ActiveDir@xxxxxxxxxxxxxxxxxx
Subject: [ActiveDir] goofy script error

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 .



Google has a low yield here, so, not sure.



Thanks,
Brian Desmond

brian@xxxxxxxxxxxxxxxx



c - 312.731.3132







>
You are not authorized to post a reply.
Forums >ActiveDir Mail List Archive >List Archives > [ActiveDir] goofy script error



ActiveForums 3.7
Friends

Friends

VisualClickButoton
Members

Members

MembershipMembership:
Latest New UserLatest:BipGnbyP0I
New TodayNew Today:2
New YesterdayNew Yesterday:0
User CountOverall:5493

People OnlinePeople Online:
VisitorsVisitors:58
MembersMembers:0
TotalTotal:58

Online NowOnline Now:

Ads

Copyright 2012 ActiveDir.org
Terms Of Use