This code works fine without the excel fuction.
How can I get a list of users via excel and add to
a local group?
strComputer = "computernamehere"
Set objGroup = GetObject("WinNT://" & strComputer & "/users")
Set objUser = GetObject("WinNT://domain/username")
objGroup.Add(objUser.ADsPath)
How can I get a list of users via excel and add to
a local group?
strComputer = "computernamehere"
Set objGroup = GetObject("WinNT://" & strComputer & "/users")
Set objUser = GetObject("WinNT://domain/username")
objGroup.Add(objUser.ADsPath)