Sign in to follow this  
Followers 0
MrSpacely

user database windows

2 posts in this topic

I want to create a tool wich can run programs as admin and so make the user run as non administrator.

Not much trouble with run as feature.

But I want ot make the program adjustable for admin so they can login and change wich programs are allowed to be run as admin (certain programs refuse to work without administrator login).

I also wanted the admin to be able to choose the user or group from wich to choose wich he or she change setting to.

So that you have differend menus per user.

But I cannot find how to get the user list grouplist or if a user is member of a group.

One macro allready says wich username is loggedin but I still need what group he or she is member of.

And if the admin is logged in to the program I also need the grouplist en userlist.

Does anyone know how to get this information from the windows user database?

Using a DLL or some command?

Share this post


Link to post
Share on other sites



You could use "Ifmember.exe" which returns the group membership.


CheersNobby

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0