Sometimes I've seen topics where people needs domain information and
object name when enumerating local groups. Here is short script for
that... Use the Replace function if the string WinNT:// bothers you.
But it's usefull if you add/remove objects to/from the group.


********************************************************************************************************
********************************************************************************************************

Set oNet = WScript.CreateObject("WScript.Network")
set objGroup = GetObject("WinNT://"& oNet.ComputerName &
"/Administrators")

For Each objUser in objGroup.Members
MsgBox(objUser.AdsPath)
Next

MsgBox("Done.")

********************************************************************************************************
********************************************************************************************************

If you like to remove something...

If objUser.Class = "User" Then
oGrp.Remove objUser.AdsPath,user
End If

If objUser.Class = "Group" Then
oGrp.Remove objUser.AdsPath,group
End If

********************************************************************************************************

Br,

Miika