Hi Izzo Pierluigi,
Thank you for posting in the Microsoft Community Forum.
To revoke administrator privileges for all domain users, you can follow these steps:
- Log in to your Domain Controller on the Windows Server.
- Open the "Active Directory Users and Computers" management console.
- In the left navigation pane, expand your domain and select the "Users" Organizational Unit (OU).
- Select all the users for whom you want to revoke administrator privileges. You can select multiple users by holding down the Ctrl key and clicking on each user.
- Right-click on the selected users and choose "Properties."
- In the properties dialog, navigate to the "Member Of" tab.
- If the users are members of the Administrators group, remove them from the list. Typically, to remove users from the Administrators group, you can find the group named "Administrators" in the "Member Of" tab and remove the users from it.
- Confirm the changes and close the properties dialog.
You can achieve this goal by using Group Policy on Windows Server. Specifically, you can create a security group named "Administrators" and add this group to the local Administrators group. Then, you can add or remove users from the "Administrators" group as needed.
To grant users administrator privileges for a specific period, you can set up a scheduled task that adds users to the "Administrators" group when necessary and removes them from the group after a specified time.
Here are the general steps:
- Create a security group named "Administrators."
- Add this group to the local Administrators group.
- Add users to the "Administrators" group as needed to grant them administrator privileges.
- Create a scheduled task that adds users to the "Administrators" group when required and removes them from the group after a specified time.
This method allows you to effectively manage user administrator privileges and adjust them as needed.
Best regards
Neuvi Jiang