
|
email this FAQ to a colleague
Q:
How do I delete a group from the domain using ADSI?
A:
Here is some code that uses ADSI to remove a group from a domain.
strDomain="Workgroup"
strGroup="Users"
Set oDomain = GetObject("WinNT://" & strDomain)
oDomain.Delete("group", strGroup)
Set oDomain=Nothing
- Randy Brown
|