Step-by-Step Guide to Allow Users to Change the Time Zone or Set a Specific Time Zone via Group Policy in Microsoft Entra Domain Services
Note: Microsoft Entra Domain Services is the new name for Azure Active Directory Domain Services (Azure AD DS).
Prerequisites
- Administrative access to your Microsoft Entra Domain Services managed domain.
- A Windows machine with the Group Policy Management Console (GPMC) installed.
Part 1: Allow Users to Change the Time Zone
By default, standard users cannot change the system time or time zone on domain-joined computers. To grant users the ability to change the time zone, you need to modify the relevant Group Policy settings.
Step 1: Open the Group Policy Management Console (GPMC)
- Log in to a domain-joined computer with domain administrative privileges.
- Click Start, then type gpmc.msc and press Enter to open the Group Policy Management Console.
Step 2: Create a New Group Policy Object (GPO)
- In the GPMC, expand your domain forest to locate your domain.
- Right-click on your domain or the specific Organizational Unit (OU) where you want the policy applied and select "Create a GPO in this domain, and Link it here...".
- Name the new GPO, e.g., "Allow Users to Change Time Zone", and click OK.
Step 3: Edit the GPO
- Right-click the new GPO and select "Edit..." to open the Group Policy Management Editor.
Step 4: Navigate to the User Rights Assignment Policy
-
In the editor, go to:
Computer Configuration > Policies > Windows Settings > Security Settings > Local Policies > User Rights Assignment
Step 5: Modify the "Change the time zone" Policy
- In the right pane, find and double-click "Change the time zone".
- Click "Add User or Group...".
- In the dialog box, type "Authenticated Users" or specify the specific user or group you want to grant this permission to.
- Click "Check Names" to verify, then click "OK".
- Confirm that the group is added to the list, then click "OK".
Step 6: Close the Editor and Apply the GPO
- Close the Group Policy Management Editor.
- Ensure the GPO is linked to the correct OU or domain level where the target computers or users reside.
Step 7: Update Group Policy on Client Machines
- On client computers, you can wait for the next Group Policy refresh cycle (which occurs every 90 minutes by default), or you can force an update:
- Open Command Prompt as an administrator.
- Run the command:
gpupdate /force
Part 2: Set a Specific Time Zone via Group Policy
If you want to configure a specific time zone on all domain-joined computers, you can use Group Policy Preferences or a startup script.
Option 1: Using Group Policy Preferences
Step 1: Edit or Create a GPO
- In the GPMC, either edit the existing GPO or create a new one (e.g., "Set Time Zone").
Step 2: Navigate to Registry Preferences
-
In the Group Policy Management Editor, go to:
Computer Configuration > Preferences > Windows Settings > Registry
Step 3: Create a New Registry Item
- Right-click Registry, select "New" > "Registry Item".
- Configure the new registry item as follows:
- Action: Update
- Hive: HKEY_LOCAL_MACHINE
- Key Path:
SYSTEM\CurrentControlSet\Control\TimeZoneInformation
- Value Name: TimeZoneKeyName
- Value Type: REG_SZ
- Value Data: Your Desired Time Zone Key Name (e.g.,
"Pacific Standard Time")
Step 4: Identify the Correct Time Zone Key Name
- To find the correct time zone key name:
- Open Command Prompt on any Windows machine.
- Run the command:
tzutil /l
- Note the exact time zone ID corresponding to your desired time zone.
Step 5: Close the Editor and Apply the GPO
- Close the Group Policy Management Editor.
- Ensure the GPO is linked appropriately.
Step 6: Reboot Client Machines
- For the time zone change to take effect, client computers may need to be restarted.
Option 2: Using a Startup Script
Step 1: Create a Batch Script
-
Open Notepad or any text editor.
-
Enter the following command:
tzutil /s "Your Time Zone"
- Replace "Your Time Zone" with the desired time zone name (e.g.,
"Pacific Standard Time").
-
Save the file as SetTimeZone.bat.
Step 2: Place the Script in a Shared Location
- Save the script in the SYSVOL folder or a shared network location accessible by all computers:
- Example path:
\\YourDomainName\SYSVOL\YourDomainName\scripts\SetTimeZone.bat
Step 3: Edit the GPO to Include the Startup Script
-
In the Group Policy Management Editor, go to:
Computer Configuration > Policies > Windows Settings > Scripts (Startup/Shutdown)
-
Double-click "Startup".
-
Click "Add...".
-
Click "Browse..." and navigate to the location of SetTimeZone.bat.
-
Select the script and click "Open", then "OK".
Step 4: Close the Editor and Apply the GPO
- Close the Group Policy Management Editor.
- Ensure the GPO is linked to the correct OU or domain level.
Step 5: Reboot Client Machines
- Client computers need to be restarted for the startup script to execute.
Validation and Troubleshooting
-
Verify GPO Application:
- On a client machine, run
gpresult /r in Command Prompt to verify that the GPO is applied.
-
Check Time Zone:
- After applying the GPO and restarting, verify the time zone by checking the Date and Time settings.
- Alternatively, run
tzutil /g in Command Prompt to get the current time zone.
-
Permissions:
- Ensure that the user accounts and computers have permission to read and apply the GPO.
- The script files should be accessible to all users/computers that need to execute them.
-
Replication:
- In a multi-domain controller environment, ensure that the SYSVOL folder and GPO changes have replicated across all domain controllers.
Additional Notes
By following these steps, you can successfully allow users to change the time zone or set a specific time zone on all domain-joined computers using Group Policy in Microsoft Entra Domain Services.