That is exatly what I am trying to do.
When you view the group members through the GUI they display as
domainname/JPAISLEY (S-1-5-XXXXX)
When the script tries to remove the user I receive the 'specified user is not a member of the local group' error.
No luck...
They accounts are not local they are domain accounts. So I substitued my domain name where you had strComputer on the below line.
'Set objUser = GetObject("WinNT://" & strComputer & "/" & objMember.Name & ",user")'
But I receive the same error about the user not being a member of...
I am trying to remove all users from a local group across 150+ server in our environment.
When I run the script I get an error stating 'The specified account is not a member of the local group.'
I have noticed that the users in the group display with a sid in parenthesis after the user name. I...
I am beginning the process of updating the Connection Accounts information for each of my sites.
Does anyone know if it is possible to script this activity?
Thanks,
JP
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.