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.


0 Comments   [ - ] Hide Comments


Please log in to comment

Community Chosen Answer



try using %appdata%\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar

Answered 06/20/2012 by: SMal.tmcc
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity



You can copy that script to some location other than user specific locations such as Program Files folder.

Then in RunOnce registry you can give the command to execute this script. Then this script will run in user context.

Answered 07/05/2012 by: SilentKiller
Orange Belt

Please log in to comment

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:


That File exists <Path to the icon>

On Success

Log to Status "Icon already present"

On Remediation

Run your script

Answered 07/05/2012 by: lind.fedora@gmail.com
Senior Yellow Belt

  • 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.
Please log in to comment

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"



Answered 06/20/2012 by: Ben M
Ninth Degree Black Belt

  • http://www.codeproject.com/Articles/185512/Programmatically-PIN-shortcut-onto-Taskbar-on-Win7
  • This content is currently hidden from public view.
    Reason: Removed by user request
    For more information, visit our FAQ's.
Please log in to comment

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?

Answered 06/20/2012 by: venti
White Belt

  • 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?
Please log in to comment