I am trying to add a domain computer account to the local administrators group. When I run this script I get the error "A member could not be added to or removed from the local group because the member does not exist"
I know I am getting the computer object because If i do a msgbox objcomputer.adsPath I get a result. Can anyone help me out.
set wshnetwork = CreateObject("Wscript.Network")
computer = wshnetwork.Computername
strDomain = wshnetwork.UserDomain
strGroup = "Administrators"
Set objGroup = GetObject("WinNT://" & Computer & "/Administrators,group")
Set objComputer = GetObject("WinNT://" & strDomain & "/" & "mlsintallcmcs" & ",computer")