Windows administrator?

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?
 
P

Pegasus \(MVP\)

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}
 
D

Don Gurr

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top