I have set up a task to backup our TMG configuration on our 2008R2 server. It calls a CMD file to perform the work. The CMD file works fine standalone, or if in the task and set to run only when the user is logged on.
If I set it to run Whether the User is Logged on or Not (with credentials for an administrative account supplied, and Run With Highest Privileges checked) the task hangs with a status of The Task is Currently Running.
Any suggestions please?