Tag: users

66 script(s) tagged “users”

πŸ“œ VBScript (WSH)

Get Local User Accounts Report to File (VBScript)

Queries Win32_UserAccount via WMI and writes Local User Accounts to a timestamped text file, handy for scheduled logon/…

🧬 WQL / PowerShell

Win32_UserAccount: Finding Associated Objects (WQL ASSOCIATORS OF)

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

🧬 WQL / PowerShell

Win32_NetworkLoginProfile: Querying Network Login Profiles Remotely (CIM Session)

Runs the same Win32_NetworkLoginProfile WQL query against a remote computer over a CIM session β€” the modern, WinRM-base…

πŸ“„ JScript (WSH)

Get Local User Accounts Report (JScript)

Queries Win32_UserAccount via WMI and prints Local User Accounts to the console β€” JScript, VBScript's WSH sibling langu…

🟣 C# / .NET 6+

Get Local User Accounts Report (C#)

Queries Win32_UserAccount via WMI (System.Management) and prints Local User Accounts to the console.

πŸ“œ VBScript (WSH)

Get Local Groups Report (VBScript)

Queries Win32_Group via WMI and prints Local Groups to the console β€” no PowerShell required.

πŸ“œ VBScript (WSH)

Get Local User Accounts Report (VBScript)

Queries Win32_UserAccount via WMI and prints Local User Accounts to the console β€” no PowerShell required.

🧬 WQL / PowerShell

Win32_NetworkLoginProfile: Network Login Profiles (WQL)

A minimal WQL reference query against Win32_NetworkLoginProfile β€” the raw SELECT statement plus a one-line runner, usef…

πŸ“„ JScript (WSH)

Get Network Login Profiles Report (JScript)

Queries Win32_NetworkLoginProfile via WMI and prints Network Login Profiles to the console β€” JScript, VBScript's WSH si…

πŸ–₯️ Batch (CMD)

Get Network Login Profiles Report (Batch)

Uses wmic to list Network Login Profiles (Win32_NetworkLoginProfile) straight from the command line.

🐍 Python 3.10+

Export Local Groups to CSV (Python)

Exports Local Groups (Win32_Group) to a timestamped CSV file via wmic.

🟣 C# / .NET 6+

Backup Local Groups to JSON (C#)

Snapshots Local Groups (Win32_Group) to a timestamped JSON file via System.Management and System.Text.Json.