diff --git a/win/setup/wsl-time-sync.ps1 b/win/setup/wsl-time-sync.ps1 new file mode 100644 index 0000000..f5438e7 --- /dev/null +++ b/win/setup/wsl-time-sync.ps1 @@ -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) \ No newline at end of file