Script on a Specific User

Script on a Specific User
1 to 4 of 4

  • CommentAuthormmoore2
  • CommentTimeJul 27th 2009
[/align]I have a script that I need to run, but I only need the script to run on one specific user at login. I can't use the 'run at login' option on the kbox because it runs when anyone logs in. Is there a way with the kbox to get the script to run only when a specific user logs in? Thanks! [/align]

  • CommentAuthorbgatech
  • CommentTimeJul 27th 2009
[/align]How smart is this user? You could put the script under the User Portal for just that user and have them run it when needed.

You might also try putting something in the verify section that checks the user. If it isn't the user you want, it could error out. [/align]

  • CommentTimeJul 28th 2009 edited
If you want the script to run every time for just one user, you could use a registry value to check the user login.

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
'AltDefaultUserName'='list username here'

1. Create new script
2. Under 'Limit Deployment to Selected Labels' only list that users machine or machines they may login to
3. Under Scheduling, only choose 'Also run at User Login'

Go to Policy – Task 1

4. Verify – Registry value is exactly (see above reg key info)
5. Add your "whatever you want to run" to the 'On Success' section - this should run no matter what

I did some testing and it worked for me. Great question!!! I can see us using this now. Remember, this will run on every workstation that you list – it will only process on the workstations that meet the criteria.

Hope this helps,
Dave [/align]

  • CommentTimeJul 29th 2009
Thank you Dave, that worked fantastically! [/align][/align]

0 Comments   [ + ] Show comments

Answers (0)

Be the first to answer this question

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

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

Sign up! or login


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