Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.
Computer Hope forum e-mail issues and down time
0 Members and 1 Guest are viewing this topic.
You could check your event log.
if "%username%"=="Administrator" ( echo User is Administrator) else ( echo User is not Administrator)
Code: [Select]if "%username%"=="Administrator" ( echo User is Administrator) else ( echo User is not Administrator)That ony applies to the Administrator account. I assume the OP wants to make sure the user has RUN the batch as an administrator. Although I have 0 experence in this, I use XP.
He's playing a game called IRL. Great graphics, *censored* gameplay.
That ony applies to the Administrator account. I assume the OP wants to make sure the user has RUN the batch as an administrator. Although I have 0 experence in this, I use XP.
In that case, Vista & 7 have the whoami command. Type whoami /? at the prompt for full information.
Well isn't that neat. Can you post it? I don't have vista or 7 so I can't see for myself.
I don't know if this is what you are looking for, Google works great though