Copy files to a logged on user profile. SMA sending files to a strange location
I am trying to copy some ms-Word templates to a user AppData folder.
When i try to do this as an admin, kace sends the files to some system folder
e.g. ... (xcopy /s /y CorporateExcelTemplate.xltx C:\Users\%username%\AppData\Roaming\Microsoft\Templates)
This always fails even with the wildcard.
The only way i get it to the user profile is if I run the script as "logged on user".
Well...this works for admin accounts that have rights to run scripts.
But the problem is almost all our users don't have right to run scripts. So copying fails
on all of them.
Any suggestions to get around this or any script to copy to logged on user profile.
by default the KACE agent runs under the SYSTEM-User. this one has no %userdata%-variable set.
If you run under logged in user it runs with the rights of this user and then the variable is set and so the script works