Steve
Thu Nov 04 15:12:41 CST 2004
"moi" <moi@free.fr> wrote in message news:418A5029.7010409@free.fr...
> I've a global security group (win2k server) containing users, I want to
> empty it, the problem is that I don't know what users belong to this
> group, I could try to remove each user of the ad but I've more than 1200
> users and it could last for a long time to do it.
> Any idea?
This looks pretty straight forward from
http://www.microsoft.com/technet/scriptcenter/scripts/ad/groups/adgpvb30.mspx
Const ADS_PROPERTY_CLEAR = 1
Set objGroup = GetObject _
("LDAP://cn=Sea-Users,cn=Users,dc=NA,dc=fabrikam,dc=com")
objGroup.PutEx ADS_PROPERTY_CLEAR, "member", 0
objGroup.SetInfo
Steve