[feature] script to add schedule task for wsl time sync
This commit is contained in:
parent
72a181fcf5
commit
689dea344d
2
win/setup/wsl-time-sync.ps1
Normal file
2
win/setup/wsl-time-sync.ps1
Normal file
|
@ -0,0 +1,2 @@
|
|||
schtasks /create /tn WSLClockSync /tr "wsl.exe sudo hwclock -s" /sc onevent /ec system /mo "*[System[Provider[@Name='Microsoft-Windows-Kernel-General'] and (EventID=1)]]"
|
||||
Set-ScheduledTask WSLClockSync -Settings (New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries)
|
Loading…
Reference in New Issue
Block a user