How to run a installation as a curently logged user instead as a system account.
I do have a script that is adding(pinned) a shortcuts of Office 2010 to the task bar. I want to copy this script to each user startup folder but the KACE is using system account and when I use %userprofile% as destination it dooesn't copy anything. Any help will be very helpful.
Thanks
Answers (5)
try using %appdata%\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar
http://en.wikipedia.org/wiki/Environment_variable
You could do this as a script in the KBOX rather than the clients and set it on a schedule.
Basically what you want is:
Script Type: Online KScript
Limit by Machine or User labels as needed
Run As User Logged into Console
Schedule - Run at a time and frequency you use
Dependency - Add your script
Task 1:
Verify
That File exists <Path to the icon>
On Success
Log to Status "Icon already present"
On Remediation
Run your script
Comments:
-
Also forgot to mention but making "Attempts" on Task 1 should ensure that if the machine doesn't have the icon you'll see your script run, then the "Icon already Present" in the log all in one run.
Best part of this is that any new machines that get the agent can also get this if they are in the correct label. - lind.fedora@gmail.com 12 years ago
I'm assuming your using windows 7. There are different startup folders. Each user has one that only starts programs for them, but there is also one for all users. This is the path to the startup folder for all users. If you put the program in here it should run whenever any user logs in.
"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup"
Comments:
-
http://www.codeproject.com/Articles/185512/Programmatically-PIN-shortcut-onto-Taskbar-on-Win7 - SMal.tmcc 12 years ago
Thanks for the reply. I try that as well but under system account it says that the path can't be found. Also this script is delete it self after when is run. My users doesn't have rights to delete from that location. That is why I want to be under each user. Can you tell from where I can change the default system account that KACE uses?
Comments:
-
If your script is set as an online KScript, or an online shell script you can run the script as any user you'd like. I haven't tried it, but my understanding is that you can then use %userprofile%.
And just to confirm with you, these computers are running Windows 7? - Ben M 12 years ago