| |
thirl1804
Posts: 1
Score: 0
Joined: 4/26/2005
From:
Status: offline
|
I'm trying to script the adding of computer accounts into our AD. This has worked OK using the script below Set objOU = GetObject("LDAP://ou=Test,dc=homeland,dc=local") Set objPC = objOU.Create("Computer", "cn=computer1") objPC.Put "sAMAccountName", "computer1" objPC.Put "userAccountControl", 4096 objPC.SetInfo This has created it and also enabled it. However, whenever you add a new computer via AD, the default is to belong to the Domain Admins to join this PC to the domain. You can alter this group using AD, does anyone know how to script in an alternative group name? Thanks in advance Grizzle
|
|