Tag: users

66 script(s) tagged “users”

🧬 WQL / PowerShell

Win32_Group: Discovering Available Properties (Get-CimClass)

Uses Get-CimClass to list every real property and method Win32_Group exposes on the current system, instead of guessing…

🖥️ Batch (CMD)

Get Local User Accounts Report (Batch)

Uses wmic to list Local User Accounts (Win32_UserAccount) straight from the command line.

🟣 C# / .NET 6+

Get Local Groups Report (C#)

Queries Win32_Group via WMI (System.Management) and prints Local Groups to the console.

📜 VBScript (WSH)

Get Network Login Profiles Report (VBScript)

Queries Win32_NetworkLoginProfile via WMI and prints Network Login Profiles to the console — no PowerShell required.

🧬 WQL / PowerShell

Win32_NetworkLoginProfile: Filtering Network Login Profiles (WQL WHERE)

Shows the WQL WHERE clause syntax against Win32_NetworkLoginProfile, starting from a LIKE '%' wildcard you customize wi…

🧬 WQL / PowerShell

Win32_NetworkLoginProfile: Discovering Available Properties (Get-CimClass)

Uses Get-CimClass to list every real property and method Win32_NetworkLoginProfile exposes on the current system, inste…

🐍 Python 3.10+

Get Local Groups Report (Python)

Uses wmic under the hood to report Local Groups (Win32_Group) — no third-party packages required.

🧬 WQL / PowerShell

Win32_Group: Sorting Local Groups (WQL has no ORDER BY)

WQL has no ORDER BY clause — this shows the standard workaround of piping Get-CimInstance results through Sort-Object o…

🧬 WQL / PowerShell

Win32_Group: Event-Driven Monitoring (WQL __InstanceCreationEvent)

Subscribes to WMI's __InstanceCreationEvent for Win32_Group via Register-CimIndicationEvent — real WQL event query synt…

⚡ PowerShell 5.1+

Get Local User Accounts Report

Queries Win32_UserAccount via WMI and reports Local User Accounts in a formatted table, with an optional CSV export.

⚡ PowerShell 5.1+

Get Local Groups Report

Queries Win32_Group via WMI and reports Local Groups in a formatted table, with an optional CSV export.

📊 VBA (Excel)

Load Local User Accounts into Excel via WMI

Queries Win32_UserAccount via GetObject("winmgmts:") and dumps every Local User Accounts row straight onto the active w…