Change Admin User to Non-Admin User

SOTI MobiControl
Windows

An 'Administrators' group user has full access to the device. If you need to revoke their privileges to prevent system-wide changes, you can do so by executing commands that remove them from the 'Administrators' group and add them to the 'Users' group. These commands can be embedded in a script and executed directly from SOTI MobiControl using the Execute Custom Scripts action.

Important:
  • It is recommended to test the script on a local/ test machine for its purpose and effects. 
  • SOTI MobiControl will not be responsible for any damage/loss to the data/setup based on the behavior of the script.

Change an admin user to non-admin user

1 #Step 1: Add the user to the Users group
2 Add-LocalGroupMember -Group “Users” -Member “Username”
3 #Step 2: Remove the user from the Administrators group:
4 Remove-LocalGroupMember -Group “Administrators” -Member “Username”
5 #Step 3: (Optional): List the users belonging to Administrators or Users group
6 Get-LocalGroupMember -Group “Groupname”

Was this helpful?

Need more help?
Ask Community