
Add and remove AD user to and from local group
Yeah - I thought maybe that was the right place. Did not know its existance.
The answer was that I was mixing providers.
So I think it should be
objGroup.Add("WinNT://" & NetBiosDomain & "\" & NTname)
instead
Quote:
> I can't get this to workstrComputer = "MyComputer"
> Set objGroup = GetObject("WinNT://" & strComputer &
"/Administrators,group")
Quote:
> set oUser = GetObject(LDAP://CN=UserToAdd,CN=Users,DC=MyDom,DC=dk)
> objGroup.Add(objUser.ADsPath) 'I get an error here