I've got a Remote Execute task with the following details:
credentials: myserviceuser@domain (Local: true, Loadprofile:true)
Host name: myserver
Command: powershell
Arguments: -c "get-adgroup 'testgroup'"
The Active Directory management module for Powershell is installed on myserver. 'testgroup' exists.
I can successfully run powershell -c "get-adgroup 'testgroup'" as the myserviceuser when starting a remote desktop session to myserver.
However VisualCron returns "Incorrect function.Exception in Task: Non zero exit code" and I think this is because it does not recognise that the active directory management module is installed on the server.
Is the remote execute task actually doing a remote login then executing the task and why does it not recognise the logon environment?
I don't want to create a manual task scheduler job and trigger this from VisualCron but that would be a work around.
Edited by user
2016-03-25T15:09:30Z
|
Reason: rename subject