Page 1 of 1 1
Topic Options
#32292 - 2002-11-12 09:31 PM Delete user from local group?
YaleCoder Offline
Getting the hang of it

Registered: 2001-12-18
Posts: 61
Loc: Jelenia Gora, Poland
I need to be able to delete a member of the local group "USERS" on Windows NT 4.0 workstations. Does anyone have a UDF to do this?
_________________________
"When fascism comes to America, it will be wrapped in the flag, carrying a cross."
Sinclair Lewis

Top
#32293 - 2002-11-12 09:34 PM Re: Delete user from local group?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
mmm...
this might be no go as don't know if user has rights to remove himself, but something like:
shell "net localgroup users $username /delete"
_________________________
!

download KiXnet

Top
#32294 - 2002-11-12 09:35 PM Re: Delete user from local group?
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Welcome to the board. You don't need a UDF for that. See the following thread:

http://www.kixtart.org/cgi-bin/ultimatebb.cgi?ubb=get_topic;f=2;t=003949
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#32295 - 2002-11-12 09:36 PM Re: Delete user from local group?
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
There are numerous examples of using ADSI as well as my GrpMaint.exe to manage groups. Search for GrpMaint or just groups.

Are you looking to execute an admin script from a central console or have this execute as part of the logon script?
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#32296 - 2002-11-14 05:25 PM Re: Delete user from local group?
YaleCoder Offline
Getting the hang of it

Registered: 2001-12-18
Posts: 61
Loc: Jelenia Gora, Poland
Thanks for the responses. I got it working. I appreciate the advice
_________________________
"When fascism comes to America, it will be wrapped in the flag, carrying a cross."
Sinclair Lewis

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1110 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.054 seconds in which 0.025 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org