tags:

views:

56

answers:

0

given user credentials to either a local account on a remote machine or a domain account, how can i check the user privileges these credentials grant on a remote host ?

i can lookup the SID for the account, but how do i know if, for instance, this account is a members of the administrators group on the remote host ?

i can find plenty of example for checking against the local administrators group (fo example http://stackoverflow.com/questions/581204/), but it looks like CreateWellKnownSid only works on the localhost.

any clues/pointers/code samples would be very welcome.

edit: more background on my problem in the comments below.