/build/static/layout/Breadcrumb_cap_w.png

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


0 Comments   [ + ] Show comments

Answers (5)

Posted by: SMal.tmcc 12 years ago
Red Belt
1

try using %appdata%\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar
http://en.wikipedia.org/wiki/Environment_variable

Posted by: SilentKiller 12 years ago
Orange Belt
0

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.

Posted by: lind.fedora@gmail.com 12 years ago
Senior Yellow Belt
0

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
Posted by: Ben M 12 years ago
9th Degree Black Belt
0

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
Posted by: anonymous_83490 12 years ago
White Belt
0

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

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ