Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 574 Bytes

README.md

File metadata and controls

10 lines (7 loc) · 574 Bytes

NAble-Remove-Users-From-Admin

This script will remove all users from the specified group.

This was written initially to ensure that users do not have local administrator access on their machine, but can also be used for removing users from other groups.

In RMM, you can run this as a daily task to ensure users have not unintentionally received admin.

Also, when enrolling devices in AzureAD, the first user that signs in will receive Administrator rights. Making this script run immediately after deployment will remove that Azure user from the Administrators group.