Tag: users

66 script(s) tagged “users”

🧬 WQL / PowerShell

Win32_NetworkLoginProfile: Sorting Network Login Profiles (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…

📜 VBScript (WSH)

Get Local Groups Report to File (VBScript)

Queries Win32_Group via WMI and writes Local Groups to a timestamped text file, handy for scheduled logon/logoff script…

🖥️ Batch (CMD)

Export Network Login Profiles to CSV (Batch)

Uses wmic to export Network Login Profiles (Win32_NetworkLoginProfile) to a timestamped CSV file.

🖥️ Batch (CMD)

Export Local Groups to CSV (Batch)

Uses wmic to export Local Groups (Win32_Group) to a timestamped CSV file.

🧬 WQL / PowerShell

Win32_Group: Local Groups (WQL)

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

🟣 C# / .NET 6+

Get Network Login Profiles Report (C#)

Queries Win32_NetworkLoginProfile via WMI (System.Management) and prints Network Login Profiles to the console.

🧬 WQL / PowerShell

Win32_Group: Finding Associated Objects (WQL ASSOCIATORS OF)

Demonstrates Get-CimAssociatedInstance, the modern CIM equivalent of WQL's ASSOCIATORS OF syntax, against a Win32_Group…

⚡ PowerShell 5.1+

Get Network Login Profiles Report

Queries Win32_NetworkLoginProfile via WMI and reports Network Login Profiles in a formatted table, with an optional CSV…

🐍 Python 3.10+

Export Local User Accounts to CSV (Python)

Exports Local User Accounts (Win32_UserAccount) to a timestamped CSV file via wmic.

🧬 WQL / PowerShell

Win32_NetworkLoginProfile: Finding Associated Objects (WQL ASSOCIATORS OF)

Demonstrates Get-CimAssociatedInstance, the modern CIM equivalent of WQL's ASSOCIATORS OF syntax, against a Win32_Netwo…

🧬 WQL / PowerShell

Win32_UserAccount: Discovering Available Properties (Get-CimClass)

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

📜 VBScript (WSH)

Get Network Login Profiles Report to File (VBScript)

Queries Win32_NetworkLoginProfile via WMI and writes Network Login Profiles to a timestamped text file, handy for sched…