Thank you both for your quick responses.
Acy, what you gave is exactly what I needed. What I actually meant was if the user was the local administrator with the username "administrator'.
Thank you so much. You have taken away a huge headache.
God Bless.
SpyGob
Search found 2 matches
- 02 Aug 2011 22:51
- Forum: DOS Batch Forum
- Topic: Batch file to run cmds only if user is NOT an administrator
- Replies: 5
- Views: 6112
- 01 Aug 2011 21:04
- Forum: DOS Batch Forum
- Topic: Batch file to run cmds only if user is NOT an administrator
- Replies: 5
- Views: 6112
Batch file to run cmds only if user is NOT an administrator
Hi there, I'm trying to create a login script that will modify certain registry keys based on the user's credentials. What I want is for the batch file to look for the current user and modify the registry only if it finds that the user is not an administrator. If it finds that the current user is an...