Script on a Specific User
Script on a Specific User
1 to 4 of 4
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]
CommentAuthordiverdaveman
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]
CommentAuthormmoore2
Thank you Dave, that worked fantastically! [/align][/align]
1 to 4 of 4
- CommentAuthormmoore2
- CommentTimeJul 27th 2009
- CommentAuthorbgatech
- CommentTimeJul 27th 2009
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]
CommentAuthordiverdaveman
- 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]
CommentAuthormmoore2
- CommentTimeJul 29th 2009
Thank you Dave, that worked fantastically! [/align][/align]
0 Comments
[ + ] Show comments
Answers (0)
Please log in to answer
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.
so that the conversation will remain readable.