hallo leute,
ich versuche eine globale gruppe in einer ad-domäne zu erstellen. nur leider bekomme ich immer eine fehlermeldung "the object was not found on this server". die ou die ich eingebe stimmt, da bin ich mir 100% sicher. kann es an der formatierung des textes liegen? hier der ganze code:
ich hoffe mir kann jemand helfen, bin schon echt am verzweifeln... die msgbox hab ich nur zum prüfen eingebaut, also net wundern
ich versuche eine globale gruppe in einer ad-domäne zu erstellen. nur leider bekomme ich immer eine fehlermeldung "the object was not found on this server". die ou die ich eingebe stimmt, da bin ich mir 100% sicher. kann es an der formatierung des textes liegen? hier der ganze code:
VB.NET-Quellcode
- Dim strOU, strGroup, strDNSDomain
- Dim objOU, objGroup, objUser
- strOU = InputBox ("OU eingeben: ")
- strNewGP = InputBox ("Gruppenname eingeben: ")
- strNewGpLong = "CN=" & strNewGp
- strOULong = "OU=" & strOU & ","
- Set objRootDSE = GetObject("LDAP://RootDSE")
- strDNSDomain = objRootDSE.Get("DefaultNamingContext")
- MsgBox strOULong & ", " & strDNSDomain
- Set objOULong = GetObject("LDAP://" & strOULong & strDNSDomain )
- Set objGroup = objOULong.Create("Group",strNewGpLong)
- objGroup.Put "sAMAccountName", strNewGp
- objGroup.setInfo
- Wscript.Quit
ich hoffe mir kann jemand helfen, bin schon echt am verzweifeln... die msgbox hab ich nur zum prüfen eingebaut, also net wundern