Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Win2K Groups and User Accounts Programmatically
Message
 
 
To
08/05/2001 13:25:19
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00504213
Message ID:
00504911
Views:
18
>In Win NT I can add users to a group using UsrToGrp.exe, how can I remove users from a group (programatically, even with RUN)?

Hmm, I could have sworn I wrote an article on how to do this with ADSI. I don't know how to do it via RUN, but you can do it with ADSI:
ox=GETOBJECT("WinNT://mydomain/mycomputer/Administrators")
ox.delete("myuser")
Disclaimer: haven't tried this, but it should work.
Mike Stewart
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform