Introduction
Accurate system time is fundamental for both the security and functionality of Windows devices. When the system clock is allowed to drift and end users do not have the ability to synchronize the time, a wide range of issues can arise across applications, network resources, and overall user experience.
Why Accurate Time Matters on Windows
- Authentication and Security Protocols: Many security protocols such as Kerberos authentication depend on synchronized clocks across networked devices. Even a small time discrepancy can lead to failed logins, denied resource access, or security warnings, as the system may interpret the difference as a potential replay attack or unauthorized access attempt.
- Scheduled Tasks and Automation: Windows relies on the system clock to execute scheduled tasks, run backups, and perform maintenance. If the time is incorrect, these activities may run at the wrong time—or not at all—disrupting business operations and user workflow.
- File Synchronization and Collaboration: Timestamps are used to track file changes, synchronize data across cloud services, and manage document versions. Inaccurate time can cause sync conflicts, data loss, or overwrite issues, complicating collaboration and version control.
- Network Connectivity and Services: Network protocols, including those for secure browsing (SSL/TLS certificates), rely on accurate time for validating certificates and establishing secure communications. Drifting system clocks can result in failed secure connections or warnings that undermine trust in websites and internal resources.
- Compliance and Auditing: Accurate logs are crucial for regulatory compliance, forensic investigations, and auditing. Log entries with incorrect timestamps can make it difficult to reconstruct events, trace incidents, or demonstrate compliance with industry standards.
Why User-Driven Time Sync is Important
When only administrators can adjust or synchronize the system time, it places a burden on IT support and can lead to prolonged periods where end users are unable to resolve issues caused by time drift. This limitation becomes critical in scenarios such as:
- Remote or hybrid work environments, where devices may not always be connected to the corporate network or have access to domain controllers for automatic time sync.
- Environments with strict privilege separation as part of Zero Trust or least privilege strategies, where users operate with standard accounts for security.
If an end user notices their clock is incorrect and cannot initiate a time sync, they may experience failed logins, inability to access network drives, or disruptions to their workflow until IT intervenes. This not only impacts productivity but can also create security gaps if manual workarounds are attempted.
Conclusion
Allowing standard users to synchronize system time helps prevent a cascade of technical and security problems that stem from time drift. Ensuring accurate time on Windows systems is a small configuration step with outsized benefits for stability, security, and a seamless user experience. For organizations committed to both Zero Trust and operational efficiency, empowering users to resolve time drift is a key consideration.
There are no built-in options in Windows to allow a standard user to sync the system time. Below, I cover how to accomplish this with the following components:
– A simple script deployed by Intune to sync the time.
– An Endpoint Privileged Management (EPM) policy to automatically elevate the context of this script when an end-user runs it.
– A desktop shortcut for end-users to easily find and run the script.
Scenario – Create the shortcut on the desktop for TimeSync
The easy way is to create have a pwoershell script that configure the desktop shortcut.
How to Create a Desktop Shortcut for Time Synchronization Using PowerShell
Step-by-step instructions for workplace environments
If you want to create a desktop shortcut that allows standard users to synchronize system time in Windows, and you’ve been given the PowerShell code below, here’s a guide to help you accomplish this in a work environment:
Step 1: Understand the PowerShell Script
This script creates a Windows shortcut (.lnk file) on the current user’s desktop. When the shortcut is run, it will attempt to sync the system time by calling a system process with specific arguments.
The Script Explained
- $DesktopPath finds the path to the current user’s Desktop.
- $ShortcutPath combines the desktop path with the shortcut file name (SyncTime.lnk).
- $WScriptShell creates a Windows Scripting Host Shell COM object.
- $Shortcut uses the above object to create a shortcut at the target location.
- TargetPath sets the shortcut to launch SystemSettingsAdminFlows.exe, the system process responsible for this action.
- Arguments passes forcetimesync 1 to the process, instructing it to force a time synchronization.
- WorkingDirectory sets the context for the process.
- Save() writes the shortcut to the desktop.
Step 2: Running the Script in a Work Environment
- Permissions: Make sure the user running the script has permission to create files on their Desktop. Standard users usually do.
- Execution Policy: If script execution is restricted, you may need to adjust the PowerShell execution policy. IT administrators can do this with:
- Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
- How to Run:
- Copy the script into a text editor (like Notepad) and save it as CreateTimeSyncShortcut.ps1.
- Right-click the file and choose “Run with PowerShell”, or open a PowerShell window and execute:
- powershell -ExecutionPolicy Bypass -File .\CreateTimeSyncShortcut.ps1
Shortcut Placement: The shortcut is placed only on the Desktop of the user running the script. If you want this for all users, you can ue platform script to deploy it more widely.
Testing: Once the shortcut appears, double-click it to ensure it prompts for time synchronization as expected. If prompted for administrator credentials, the shortcut is working correctly, but the user may still need permission to sync time depending on your environment’s policy.
Step 3: The PowerShell Code
$DesktopPath = [System.Environment]::GetFolderPath([System.Environment+SpecialFolder]::Desktop)
$ShortcutPath = [System.IO.Path]::Combine($DesktopPath, ‘SyncTime.lnk’)
$WScriptShell = New-Object -ComObject WScript.Shell
$Shortcut = $WScriptShell.CreateShortcut($ShortcutPath)
$Shortcut.TargetPath = ‘C:\Windows\System32\SystemSettingsAdminFlows.exe’
$Shortcut.Arguments = ‘forcetimesync 1’
$Shortcut.WorkingDirectory = ‘C:\Windows\System32’
$Shortcut.Save()
You can use Intune remediation scripts.
Intune remediation Script
To automate the resolution of common issues or enforce configuration settings across multiple devices, Microsoft Intune provides the capability to deploy remediation scripts. These scripts written in PowerShell, detect and remediate problems on managed endpoints. By integrating such scripts into your Intune workflows, you can proactively maintain compliance and streamline support without manual intervention.
Detection scripts:
Copy and paste the script below into a PowerShell script file (e.g., Detect_DesktopShortcut_TimeSync.ps1):
#=============================================================================================================================
#
# Script Name: Detect_DesktopShortcut_TimeSync.ps1
# Description: Detect if TimeSync.lnk are in the user profiles desktop folder
# Notes: Remediate if shortcut does not exist
#
#=============================================================================================================================
$DesktopPath = [System.Environment]::GetFolderPath([System.Environment+SpecialFolder]::Desktop)
$ShortcutPath = [System.IO.Path]::Combine($DesktopPath, ‘SyncTime.lnk’)
if (Test-Path $ShortcutPath) {
Write-Output “Shortcut exists.”
Exit 0 # Indicates compliance
} else {
Write-Output “Shortcut missing.”
Exit 1 # Indicates non-compliance
}
Remediation script
Copy and paste the script below into a PowerShell script file (e.g., Remediate _DesktopShortcut_TimeSync.ps1):
#=============================================================================================================================
#
# Script Name: Remediate__DesktopShortcut_TimeSync.ps1
# Description: This script creates a desktop shortcut for Timesync
# Notes: No variable substitution needed
#
#=============================================================================================================================
$DesktopPath = [System.Environment]::GetFolderPath([System.Environment+SpecialFolder]::Desktop)
$ShortcutPath = [System.IO.Path]::Combine($DesktopPath, ‘SyncTime.lnk’)
$WScriptShell = New-Object -ComObject WScript.Shell
$Shortcut = $WScriptShell.CreateShortcut($ShortcutPath)
$Shortcut.TargetPath = ‘C:\Windows\System32\SystemSettingsAdminFlows.exe’
$Shortcut.Arguments = ‘forcetimesync 1’
$Shortcut.WorkingDirectory = ‘C:\Windows\System32’
$Shortcut.Save()
Write-Output “Shortcut created successfully.”
Exit 0
Follow our documentation on how to create a remediation script Remediations | Microsoft Learn
Right click on the shortcut desktop icon you just created and click Run with elevated access.
Fig. 1 – Run with elevated access.
This request will show up in Elevation request blade that is accessible at aka.ms/IntuneEPM.
To create a rule that auto-elevates future requests, complete the following steps:
1. Open the elevation request and select Create a rule with these file details.
Fig. 2 – Create a rule with these file details.
2. Change Type to Automatic so the desktop shortcut auto-elevates when the end user double-clicks on it.
Fig. 2 – Create a rule with these file details.
3. Enter the policy name for the EPM policy you are about to create with all the information from the elevation request– In this example we are entering Allow Timesync
Fig. 2 – Policy name.
4. Open the newly created EPM policy to make a few changes.
- Optionally, you remove the file hash to allow elevation on multiple Windows versions. We recommend keeping the file hash as this is the most secure solution.
- Change Restrict Arguments to Allow.
- Add “forcetimesync 1” to the Argument List under Restrict Arguments.

Fig. 2 – Rule properties.
Now you can assign the EPM policy, after the next device sync your devices will get the EPM policy – and you user can now sync the time by running the desktop short cut.
Conclusion
Implementing a desktop shortcut enabling standard users to synchronize the system time and configuring automatic elevation with EPM streamlines the process for end users, ensuring quick and secure time synchronisation with minimal effort. By following these steps, IT administrators can enhance user productivity while maintaining robust security controls. Assigning the EPM policy means users can now easily sync their device time whenever necessary, improving system reliability across your organisation.
