Is there a way of finding if a username is in an specifide group and if the password is the same as the NT Account?? to act as validation??
Ian R Simmons(CCC)
Printable View
Is there a way of finding if a username is in an specifide group and if the password is the same as the NT Account?? to act as validation??
Ian R Simmons(CCC)
Here are some links that may help. I got these from a tek-tips.com thread.
List servers users and groups: http://www.netfokus.dk/vbadmincode/code/account.zip
Add global groups to work groups: http://www.netfokus.dk/vbadmincode/code/wks.zip
Enumerate users and groups; add and delete users from a group: http://www.netfokus.dk/vbadmincode/code/ntenum.zip
Add, delete, change groups: http://www.netfokus.dk/vbadmincode/code/enumuser.zip
Control bulk accounts; home directory, script path and others: http://www.netfokus.dk/vbadmincode/code/adduserbulk.zip
Windows NT will not give you the password of a user. The only thing you could do is try to log on by using it, or to open a program with this account.
API functions like CreateProcessAsUser or LogonUser could be usefull. I have never used them though, so I can't offer you much more help.