Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Forums > General Discussion

Vista - UAC and AD Groups

Reply
 
Old 05-04-2009   #1 (permalink)


Vista Ultimate x64
 
 

UAC and AD Groups

I've got a legacy program I'm trying to update. When the application starts it would check to determine if the user was a domain admin by using My.User.IsInRole("Domain Admins"). Now it appears that UAC screws up IsInRole for AD groups. If I start the program normally (UAC running the program as a standard user) My.User.IsInRole("Domain Admins") returns false (even though I'm logged in as a domain admin). When I run the program as administrator, it returns true. I can test non-admin groups (such as My.User.IsInRoll("Domain Users")) and it works fine, and I can test local administrator group just fine.

Any thoughts? I think if the code actually tried to do something that required administrator permission it would prompt me to elevate, but I don't see a way I can initiate that prompt myself to elevate to check role then lower again (because I'm trying to be a good Vista programmer and keep my users standard).

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Contact Groups Vista mail
groups Vista mail
RE: Groups in BCC Vista mail
Groups Live Mail
Groups Vista mail


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

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