We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b24ac96 commit ec03877Copy full SHA for ec03877
config/oem/install.bat
@@ -50,6 +50,8 @@ if %ERRORLEVEL% equ 0 (
50
echo %DATE% %TIME% Task "%taskname2%" already exists, skipping creation. >> C:\OEM\setup.log
51
) else (
52
schtasks /create /tn "%taskname2%" /tr "%command2%" /sc onlogon /rl HIGHEST /f >> C:\OEM\setup.log 2>&1
53
+ REM Ensure the TimeSync task only runs once per boot and does not restart on every logon (RDP, etc.)
54
+ powershell -Command "Get-ScheduledTask -TaskName 'TimeSync' | Set-ScheduledTask -Settings (New-ScheduledTaskSettingsSet -MultipleInstances IgnoreNew)" >> C:\OEM\setup.log 2>&1
55
if %ERRORLEVEL% equ 0 (
56
echo %DATE% %TIME% Scheduled task "%taskname2%" created successfully. >> C:\OEM\setup.log
57
0 commit comments