显示本地所有的组名称

Set objNetwork = CreateObject("Wscript.Network")
strComputer = objNetwork.ComputerName
Set colAccounts = GetObject("WinNT://" & strComputer & "")
colAccounts.Filter = Array("group")
For Each objGroup In colAccounts
    Wscript.Echo objGroup.Name
Next

你可能感兴趣的:(职场,名称,休闲)