I am trying to stop and then disable a remote task from a build script. The remote server is Server 2k8. The client running the script is Windows 7. Both machines are joined to the domain.
When I run schtasks /Change /S remoteServer /TN "theTask"
, I get an error ERROR: The specified task name "theTask" does not exist in the system.
If I run this command locally, everything works. I've verified that the domain user account I am logged into on my computer has administrator privileges to the remote computer.
If I run schtasks /Query
on the remote computer, I get a listing of all scheduled tasks. If I run the same command remotely with the /S
switch, only two legacy tasks (Google update tasks) return.
My initial thought was that this could be a permissions error, but when I try to run schtasks
using the /u
switch, I get ERROR: The request is not supported
, which makes no sense because both the client and server are running the modern version of windows scheduler. I'm very confused.
What do I need to do to allow schtasks
remote access to ALL the tasks on a server?
Edit: schtasks
seems to only be returning the list of "v1" style tasks.