Windows administrator?

  • Thread starter Thread starter Don Gurr
  • Start date Start date
D

Don Gurr

I need to determine if a user (not the currently logged on user) is a
Windows administrator. I need this to work with and without domains. I tried
using NetGetDcName and NetUserGetInfo, but I can't get it to work with
domains. Any suggestions?
 
Don Gurr said:
I need to determine if a user (not the currently logged on user) is a
Windows administrator. I need this to work with and without domains. I
tried using NetGetDcName and NetUserGetInfo, but I can't get it to work
with domains. Any suggestions?

Try this command:
net user DGurr{Enter}
 
I tried "net user /domain <username>", and I can see some of the domain
accounts, but for other domain accounts I get "System error 5 has occurred.
Access is denied."

Also, I need to call a routine from a MFC program, as opposed to executing a
command at the command prompt.
 
Back
Top