Reputation: 794
Using vbscript, how can I filter the output from a WMI Query? I want to return every local user account except for 2 which are the "Administrator" and "Visitor".
Set colUsers = objWMIService.ExecQuery _
("select * from Win32_UserAccount where LocalAccount = True")
For Each objUser in colUsers
WScript.Echo objUser.Name
Next
Upvotes: 0
Views: 3141