Tag: users
66 script(s) tagged “users”
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/β¦
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β¦
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β¦
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β¦
Get Local User Accounts Report (C#)
Queries Win32_UserAccount via WMI (System.Management) and prints Local User Accounts to the console.
Get Local Groups Report (VBScript)
Queries Win32_Group via WMI and prints Local Groups to the console β no PowerShell required.
Get Local User Accounts Report (VBScript)
Queries Win32_UserAccount via WMI and prints Local User Accounts to the console β no PowerShell required.
Win32_NetworkLoginProfile: Network Login Profiles (WQL)
A minimal WQL reference query against Win32_NetworkLoginProfile β the raw SELECT statement plus a one-line runner, usefβ¦
Get Network Login Profiles Report (JScript)
Queries Win32_NetworkLoginProfile via WMI and prints Network Login Profiles to the console β JScript, VBScript's WSH siβ¦
Get Network Login Profiles Report (Batch)
Uses wmic to list Network Login Profiles (Win32_NetworkLoginProfile) straight from the command line.
Export Local Groups to CSV (Python)
Exports Local Groups (Win32_Group) to a timestamped CSV file via wmic.
Backup Local Groups to JSON (C#)
Snapshots Local Groups (Win32_Group) to a timestamped JSON file via System.Management and System.Text.Json.