Re: How to know if a user has administrative privileges
- From: Bill Stewart <llib.trawets@xxxxxxxxxxxxxxxxxx>
- Date: Mon, 27 Jul 2009 09:29:14 -0600
Heinz wrote:
I need to find out if the current user is an administrator.
Looking up group-memberships seems to be one way, but if I have to follow nested groups it will become difficult....
Also, when using group memberships it will be language dependent ("Administrators" is a different group in French, Spanish, German etc....)
Another approach may be to simply try to do something that only an administrator is allowed to do....
Any idea what this could be and how to code it in VBS ?
Perfect would be a solution that work withs XP,Vista and 2003.
Another solution is IsAdmin.exe
http://www.westmesatech.com/wast.html
Site note: It can also detect if the current user is a member of Administrators but the group is not enabled (e.g., when UAC is active on Windows Vista and later).
--
Bill Stewart
.
- Prev by Date: Re: Inserting or deleting elements in an array
- Next by Date: Re: Convert Bytes to Gigabytes
- Previous by thread: Re: How to know if a user has administrative privileges
- Next by thread: String for excel macro creation from VBS File
- Index(es):
Relevant Pages
|