Get your own customer support community
 

Running a remote Script using the %userprofile% command

I am trying to run a script on the remote user’s machine, I am trying to save time by pushing out some new office templates to over 200 computers here.

I have run into a problem:
The command I am using is:
copy "\\rrs5501\Software\RS Word templates\*.dot" "%userprofile%\Application Data\Microsoft\Templates\"
pause

Now when I do this I see that the script is using my employee id # rather than the user that is currently signed on.

If I go into preferences of vncscan --> security/identify, and remove my ID/password/domain... I run the script and see that in the cmd window I get an access denied.

Any way I can run a script on the remote using the %userprofile% command and have it pick up the current user rather then pick on my info?

Thanks!
 
sad I’m frustrated
Inappropriate?
1 person has this question

User_default_medium