Mack wrote:
[Quoted Text] > I was looking at the "EnumLocalGroup.vbs" script on Richard Mueller's > site. The description indicates that it can be "It can be revised to > document membership in any local group." > > What would I need to change to have it enumerate any group? > > ' Bind to local Administrators group. > Set objLocalGroup = GetObject("WinNT://" & strComputer _ > & "/Administrators,group") > > > I know that the above coding tells it to do the Administrators group. > Would I just neet to code: > > Set objLocalGroup = GetObject("WinNT://" & strComputer _ > & "/,group") > > Or is it more complex?
strLocalGroup = "SomeGroupName" Set objLocalGroup = GetObject("WinNT://" & strComputer _ & "/" & strLocalGroup & ",group")
-- Michael Harris MVP- Admin Frameworks
|