Vote UpVote

Windows authorization: Adding/Removing users from local groups

The Wiert Corner – Though there are API ways to add users to local groups in Delphi, you need the JwaLmAccess unit from the JEDI API library project to import those. Sometimes that is not feasible, and sometimes you want to just script things. For those, you can use the Windows net localgroup command (if you have sufficient privileges, you can even apply it to the local groups on your domain controller by appending it with the /domain parameter, or use the net group /domain command to execute on global domain groups instead of local groups). Sample of using this in a cmd script: net localgroup Guests Me Myself ...
Favorite? Off-Topic? jpluimers @ 2011-08-10 07:00


Visits: 662
Votes: 1
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)