有谁知道如何使用 vbscript 查询本地组的成员并返回他们的状态,即启用或禁用?
我有这个来获得组成员资格:
Set objNetwork = CreateObject("WScript.Network")
strComputer = objNetwork.ComputerName
strGroup = "Users"
Set objGroup = GetObject("WinNT://" & strComputer & "/" & strGroup & ",group")
For Each objMember In objGroup.Members
WScript.Echo objMember.Name
Next
操作系统 = Windows 2008