Tag: users

66 script(s) tagged “users”

🧬 WQL / PowerShell

Win32_UserAccount: Filtering Local User Accounts (WQL WHERE)

Shows the WQL WHERE clause syntax against Win32_UserAccount, starting from a LIKE '%' wildcard you customize with a rea…

📊 VBA (Excel)

Export Local User Accounts to CSV via WMI (VBA)

Queries Win32_UserAccount via WMI and writes every Local User Accounts row straight to a CSV file in Documents, using p…

🧬 WQL / PowerShell

Win32_NetworkLoginProfile: Event-Driven Monitoring (WQL __InstanceCreationEvent)

Subscribes to WMI's __InstanceCreationEvent for Win32_NetworkLoginProfile via Register-CimIndicationEvent — real WQL ev…

🐍 Python 3.10+

Backup Local Groups to JSON (Python)

Snapshots Local Groups (Win32_Group) to a timestamped JSON file for later comparison or auditing.

🖥️ Batch (CMD)

Get Local Groups Report (Batch)

Uses wmic to list Local Groups (Win32_Group) straight from the command line.

🧬 WQL / PowerShell

Win32_UserAccount: Local User Accounts (WQL)

A minimal WQL reference query against Win32_UserAccount — the raw SELECT statement plus a one-line runner, useful for l…

🧬 WQL / PowerShell

Win32_UserAccount: Event-Driven Monitoring (WQL __InstanceCreationEvent)

Subscribes to WMI's __InstanceCreationEvent for Win32_UserAccount via Register-CimIndicationEvent — real WQL event quer…

⚡ PowerShell 5.1+

Backup Local User Accounts List to JSON

Snapshots Local User Accounts from Win32_UserAccount to a timestamped JSON file for later comparison or auditing.

🟣 C# / .NET 6+

Backup Network Login Profiles to JSON (C#)

Snapshots Network Login Profiles (Win32_NetworkLoginProfile) to a timestamped JSON file via System.Management and Syste…

⚡ PowerShell 5.1+

Backup Network Login Profiles List to JSON

Snapshots Network Login Profiles from Win32_NetworkLoginProfile to a timestamped JSON file for later comparison or audi…

🧬 WQL / PowerShell

Win32_UserAccount: Sorting Local User Accounts (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…

📊 VBA (Excel)

Load Network Login Profiles into Excel via WMI

Queries Win32_NetworkLoginProfile via GetObject("winmgmts:") and dumps every Network Login Profiles row straight onto t…