On a server running Windows Server 2003 SP2 I have a simple one line batch file that syncs the local time with a remote server:
I can run this manually and it works fine. However, I have set up a scheduled task to run this file and it consistently fails with error code 0x2.
The task is set up to run as local administrator account (same account I logged in with when running manually).
Any ideas why it would fail when run as a task?
FYI, I have another server that I have set up the exact same task for, looking at the same server to sync with, and this works fine.
---
@jameslean
Code:
net time \\172.20.49.10 /set /y
I can run this manually and it works fine. However, I have set up a scheduled task to run this file and it consistently fails with error code 0x2.
The task is set up to run as local administrator account (same account I logged in with when running manually).
Any ideas why it would fail when run as a task?
FYI, I have another server that I have set up the exact same task for, looking at the same server to sync with, and this works fine.
---
@jameslean