Remove logged in user from local Administrators group
| 1 Votes |
Description
Property Details
| 24889 | |
| Production - Fully Tested and Ready for Production | |
| Remove logged in user from local Administrators group | |
| BESC | |
| Group Membership | |
| Internal | |
| 1/25/2018 12:00:00 AM | |
| Remove user rights local admin | |
| ReynardMuldrake on 1/25/2018 12:38:54 PM | |
| ReynardMuldrake on 1/25/2018 12:38:54 PM | |
| 7997 Views / 61 Downloads | |
* Average over 1 rating.
** Log In or Register to add your rating.
|
Relevance
isWindows (Relevance 1172)
windows of operating system
(select ("ProductType from Win32_OperatingSystem") of WMI) as string contains "1"
exists (members whose ((it as a string) contains (name of logged on user)) of local group "administrators")
Actions
Action 1 (default)
Action Link Click
here to deploy this action.
Script Type
BigFix Action Script
waithidden net localgroup administrators {"DOMAIN\"& name of logged on user} /delete
Success Criteria
This action will be considered successful when the applicability relevance evaluates to false.
Sharing
| Social Media: |
Comments
|
|
|
| doesn't work all the time. tried it on 3 win10v1909 computers. it was successful on one computer several times with different usernames logged in. the other 2 computers failed | |
|
|
|
| Glad you found it useful! | |
|
|
|
| This script works. Just like Reynard said change the target domain in action Also it can be used to add user in users local group. That's what I used it for. Worked well. | |
|
|
|
| Action will need to be modified with the target domain. Script is tested and working. Takes effect upon reboot. | |

