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!
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!
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
Loading Profile...


