Tag: services

22 script(s) tagged “services”

📜 VBScript (WSH)

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.

🧬 WQL / PowerShell

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…

🧬 WQL / PowerShell

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…

🟣 C# / .NET 6+

Backup Services to JSON (C#)

Snapshots Services (Win32_Service) to a timestamped JSON file via System.Management and System.Text.Json.

🧬 WQL / PowerShell

Win32_Service: Event-Driven Monitoring (WQL __InstanceCreationEvent)

Subscribes to WMI's __InstanceCreationEvent for Win32_Service via Register-CimIndicationEvent — real WQL event query sy…

🧬 WQL / PowerShell

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…

🐍 Python 3.10+

Get Services Report (Python)

Uses wmic under the hood to report Services (Win32_Service) — no third-party packages required.

🧬 WQL / PowerShell

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…

🧬 WQL / PowerShell

Win32_Service: Services (WQL)

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

📊 VBA (Excel)

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…

⚡ PowerShell 5.1+

Get Services Report

Queries Win32_Service via WMI and reports Services in a formatted table, with an optional CSV export.

📄 JScript (WSH)

Get Services Report (JScript)

Queries Win32_Service via WMI and prints Services to the console — JScript, VBScript's WSH sibling language.