Launch executable returns odd error

I created a launch executable task with the following parameters...

command = xcopy.exe

command line parameters = \\servername\volume\folder1\folder2\folder3\*.* C:\folder1\folder2 /E /I /Y

I tested the xcopy command at a command prompt and it worked fine.

I set the task to run as a dynamic administrator and I gave the dynamic administrator access to the folder on the server.

Ran the task and it returns this...

GenericActions::LaunchActionHandler::RemoteMachineConnectionFailure : The system could not find the environment option that was entered Please contact an administrator for more information

Any thoughts as to what the problem might be?

  • 0  

    Administrator isn't logged into OES,  only the user,  one of those catch 22 situations that I'm not sure how to get around it.

    Might have to do the copy as the user, and any execution is done separately if it needs Administrator level access.

    or use ZCM itself to deploy the content.

    ________________________

    Andy of KonecnyConsulting.ca in Toronto
    Please use the "Like" and/or "Verified Answers" as appropriate as that helps us all.

  • 0

    I added the path to the xcopy command and now I am getting exit code 4.  The command is not running.  It immediately exits with that code.  Normally I just test commands at a command prompt and if they work there, they are fine in ZENworks.

    I tested with Run as a logged-in user and it works fine.  Why would Run as a dynamic administrator throw an error?

  • 0 in reply to   

    16 GB and who knows how many files - distributing through ZENworks would be a pain.  My point though is that I am using the ZENworks Dynamic Administrator feature.  ZEN Dyn Admin has rights to the source folder, so I thought this would work.

    \\server\volume\folder\somefile.exe works when assigned to run as the ZEN Dyn Admin.

    So I thought an xcopy wtih source \\server\volume\folder\files\*.* would also work when assigned to run as the ZEN Dyn Admin.

  • 0 in reply to 

    It must be a Monday!  I was making this way too hard on myself.  The ZENworks action "Copy Directory" is how I have done this in the past.  That command works fine with the ZCM Dyn Admin.

  • Verified Answer

    +1  

    I see you found a way to make it work.....

    #1 -  The "EXECUTABLE" needs to be on a network share, if you want the Dynamic Administrator Credential to be able to authenticate to give access...which you do.

    #2 - Create a Batch file and drop it on  \\servername\volume\folder1 and call "RoboCopy" with the MIRROR parameters...Much more efficient...especially if you have run it a 2nd time in the future.

    --

    If you found this post useful, give it a “Like” or click on "Verify Answer" under the "More" button

    Be sure to "Like" My (and a few others) Cool Solutions below! 

    https://community.microfocus.com/members/craigdwilson/bookmarks