How Do I Check if My Account Is an Administrator

Posted: 01-05-2008, 11:53 PM
Is there a way from a batch file to determine if the current user is an
administrator? I'm hoping for a single command.

Thanks,

Mike

Reply With Quote

Responses to "How Do I Check if My Account Is an Administrator"

Dwarf
Guest
Posts: n/a
 
RE: How Do I Check if My Account Is an Administrator
Posted: 01-07-2008, 04:25 PM
Hi Mike,

There is no need to use a batch file. If you type in 'control
userpasswords2' in the search box on the start menu it will bring up the
'Advanced User Accounts Control Panel' - note that you will need to provide
administrative priviledges to start it. The 'Users' tab gives details of all
activated accounts on your computer, including the type of account that is
assigned for each one.
Dwarf

"Mike McCollister" wrote:
> Is there a way from a batch file to determine if the current user is an
> administrator? I'm hoping for a single command.
>
> Thanks,
>
> Mike
>
Reply With Quote
Mike McCollister
Guest
Posts: n/a
 
Re: How Do I Check if My Account Is an Administrator
Posted: 01-08-2008, 01:11 AM
Thanks.

However, there is a need.

I have a batch file that needs to run as an administrator. I want write a
conditional that if not admin account then echo message stating that batch
file must be run as admin.

Thanks,

Mike

"Dwarf" <Dwarf@discussions.microsoft.com> wrote in message
news:229C1DB8-52B3-45FC-9577-1F6768F8AD19@microsoft.com...
> Hi Mike,
>
> There is no need to use a batch file. If you type in 'control
> userpasswords2' in the search box on the start menu it will bring up the
> 'Advanced User Accounts Control Panel' - note that you will need to
> provide
> administrative priviledges to start it. The 'Users' tab gives details of
> all
> activated accounts on your computer, including the type of account that is
> assigned for each one.
> Dwarf
>
> "Mike McCollister" wrote:
>
>> Is there a way from a batch file to determine if the current user is an
>> administrator? I'm hoping for a single command.
>>
>> Thanks,
>>
>> Mike
>>
Reply With Quote
 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How I can use the administrator account (hidden) in winXP instead of my account? Guest Windows NT/2000/XP 0 02-27-2008 08:34 PM
Administrator Account David Johnson Windows Vista Administration 52 02-06-2008 02:11 PM
Administrator Account HELP HELP HELP BouncingOtter Windows Vista Administration 2 01-06-2008 02:31 AM
Administrator Account is Already in Use as Main Account? Kcpirana Windows Vista Administration 12 05-17-2007 07:06 PM
Disabled User Account Control and disabled Administrator account. Craig L Davies Windows Vista Administration 2 03-11-2007 08:38 PM


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90