-----Original Message-----
Hi
'--------------------8<----------------------
Set oWshNet = CreateObject("WScript.Network")
' computer name
sNode = oWshNet.ComputerName
' group name to remove user or group from
Set oGroup = GetObject("WinNT://" & sNode & "/Administrators")
' loop through all member of the group
For Each oUser In oGroup.Members
' get the name and make it lowercase
sGroupEntry = LCase(oUser.Name)
If (sGroupEntry = "domain users") Then
' remove entry from group
oGroup.Remove oUser.ADsPath
End if
Next
'--------------------8<----------------------
--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx
.