Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Verify Admin level Access Rights
Message
From
25/09/2002 12:03:30
 
 
To
24/09/2002 16:42:39
General information
Forum:
Visual FoxPro
Category:
Installation, Setup and Configuration
Miscellaneous
Thread ID:
00703994
Message ID:
00704316
Views:
13
>In a pre-check routine to install a new aplication, I need to check whether the current user has local Admin level access. Does anyone have any idea what API, registry or WSH call(s) might provide this info? Is this OS dependent? (i.e. different for Win95 vs. XP)
>

If you know that the user is being authenticated by an NT, Win2K or XP server, then the NetUserGetGroups() API call would return the set of groups that the user belongs to relative to the referenced authentication source; Admin privileges would usually be inherited as a result of being a member of Administrators, Domain Admins, Enterprise Admins, or the like.

This is not supported by Win9x; you need to direct the query to run on the authentication source under NT/2K/XP.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform