I found a solution for this problem. A Firewall setting needs to be set.
Go to: Windows Firewall => Allowed Programs, scroll down to "Remote Scheduled Task Management" and check that option. In my case just checking the "domain" option was enough.
Go to: Windows Firewall => Allowed Programs, scroll down to "Remote Scheduled Task Management" and check that option. In my case just checking the "domain" option was enough.