Tag: services
22 script(s) tagged “services”
Get Services Report to File (VBScript)
Queries Win32_Service via WMI and writes Services to a timestamped text file, handy for scheduled logon/logoff scripts.
Win32_Service: Filtering Services (WQL WHERE)
Shows the WQL WHERE clause syntax against Win32_Service, starting from a LIKE '%' wildcard you customize with a real se…
Win32_Service: Sorting Services (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…
Backup Services to JSON (C#)
Snapshots Services (Win32_Service) to a timestamped JSON file via System.Management and System.Text.Json.
Win32_Service: Event-Driven Monitoring (WQL __InstanceCreationEvent)
Subscribes to WMI's __InstanceCreationEvent for Win32_Service via Register-CimIndicationEvent — real WQL event query sy…
Win32_Service: Querying Services Remotely (CIM Session)
Runs the same Win32_Service WQL query against a remote computer over a CIM session — the modern, WinRM-based replacemen…
Get Services Report (Python)
Uses wmic under the hood to report Services (Win32_Service) — no third-party packages required.
Win32_Service: Finding Associated Objects (WQL ASSOCIATORS OF)
Demonstrates Get-CimAssociatedInstance, the modern CIM equivalent of WQL's ASSOCIATORS OF syntax, against a Win32_Servi…
Win32_Service: Services (WQL)
A minimal WQL reference query against Win32_Service — the raw SELECT statement plus a one-line runner, useful for learn…
Export Services to CSV via WMI (VBA)
Queries Win32_Service via WMI and writes every Services row straight to a CSV file in Documents, using plain VBA file I…
Get Services Report
Queries Win32_Service via WMI and reports Services in a formatted table, with an optional CSV export.
Get Services Report (JScript)
Queries Win32_Service via WMI and prints Services to the console — JScript, VBScript's WSH sibling language.