remote command variable

Comments

3 comments

  • Pushpak Patil

    Hey Rob,

    Use following command,

    xcopy "\\sharedlocation\Explorer++.exe" "%userprofile%\desktop" /Y

    And in Package setting-Option

    Select Run As "Logged on user"

    Regards,

    Pushpak

    1
    Comment actions Permalink
  • Rob Wild

    thanks

    0
    Comment actions Permalink
  • Shane Corellian

    Pushpak Patil is correct. You want to do this from PDQ Deploy where you can set the Run As to Logged On User. When you run a remote command (or deploy a package as Deploy User) then any user-level variables (such as %USERNAME%) will be in the context of the Scan or Deploy user (RobW).

    Keep in mind that the user you want to receive the new file must be logged on at the time of deployment. 

    0
    Comment actions Permalink

Please sign in to leave a comment.