Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

computers to auto add themselves to domain security groups 1

Status
Not open for further replies.

58sniper

MIS
Apr 25, 2004
9,152
US
I'm migrating a facility from a previous owners' network to our clients' network. Duplicating some GPOs. Previous owners have a machine logon script that auto adds itself to another domain group. This is so a pre-req can run, then, after reboot, an application gets installed. On the "old" side, this works fine:

Code:
On Error Resume Next
Set objGroup = GetObject _
  ("LDAP://cn=NA-MngSft ACAD05,cn=Users,dc=NA,dc=OLDDOMAIN,dc=com")  
objGroup.PutEx ADS_PROPERTY_APPEND, "member", _
    Array(objSysInfo.ComputerName)
objGroup.SetInfo

I've duplicated the policy on our clients' domain. If I run the vbs script manually, it works fine.

However, when it's running as a machine startup script, I'm getting access denied on the last line. So - it's a rights issue. I've looked through security policies till I was blue in the face and don't see where there is a setting to allow PCs to add themselves to groups.

NTFS permissions and share permissions are fine.

Anyone come across this before?

Pat Richard, MCSE MCSA:Messaging CNA
Microsoft Exchange MVP
Want to know how email works? Read for yourself -
 
what does the ACL for the group in question look like?
 
Wow - never noticed that setting before. "Add/Remove Self as Member"

I was looking in the Security Policies and not at the ACL.

A star for you, mrmovie!

Thanks!

Pat Richard, MCSE MCSA:Messaging CNA
Microsoft Exchange MVP
Want to know how email works? Read for yourself -
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top