powershell-windows

Automates Windows administration tasks using object-oriented PowerShell pipelines and strict error handling.

Updated Apr 13, 2026
One-click install
npx skills add https://github.com/JenilRevaliya/ARGUS --skill powershell-windows-jenilrevaliya
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: powershell-windows
Source: https://github.com/JenilRevaliya/ARGUS/tree/main/.agent/skills/powershell-windows
Command: npx skills add https://github.com/JenilRevaliya/ARGUS --skill powershell-windows-jenilrevaliya

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Writing reliable Windows automation scripts is error-prone when developers treat PowerShell like Bash, parse strings instead of objects, and let scripts silently continue after failures. This Skill provides proven patterns for object pipelines, strict error handling, and native structured data manipulation. ## Core Features & Use Cases - Object Pipeline Mastery: Filter, transform, and act on .NET objects directly with Where-Object, Select-Object, and ForEach-Object instead of fragile string parsing. - Strict Error Handling: Enforce fail-fast behavior with $ErrorActionPreference, Set-StrictMode, and try/catch/finally blocks for dependable automation. - Native Format & Provider Support: Parse JSON, CSV, and REST API responses natively, and navigate the Registry, certificates, and environment variables as drives. - Use Case: A DevOps engineer needs a deployment script that copies configuration files, updates appsettings.json, and halts immediately on any failure without weakening system security policies. ## Quick Start Write a PowerShell deployment script that copies a config file, updates a JSON setting, and stops immediately if any step fails.

Frequently Asked Questions about powershell-windows

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I make a PowerShell script stop on the first error?▼

Set $ErrorActionPreference = "Stop" and Set-StrictMode -Version Latest at the top of the script. Wrap operations in try/catch/finally so failures jump to the catch block instead of continuing silently.

How do I filter objects in a PowerShell pipeline?▼

Use Where-Object to filter objects by property, such as Get-Service | Where-Object Status -eq 'Running'. PowerShell passes structured .NET objects through the pipeline, so you access properties directly instead of parsing strings with grep or awk.

How do I run a .ps1 script blocked by execution policy?▼

Run it with powershell.exe -ExecutionPolicy Bypass -File .\script.ps1 to bypass the policy for that single process. Avoid Set-ExecutionPolicy Unrestricted, which permanently weakens the security posture of the entire operating system.

Can PowerShell parse JSON and CSV files natively?▼

Yes. Use Get-Content with ConvertFrom-Json to parse JSON into objects and ConvertTo-Json to write it back. For CSV, Import-Csv and Export-Csv handle structured rows without external tools, and Invoke-RestMethod automatically parses JSON API responses.

How do I read the Windows Registry from PowerShell?▼

PowerShell exposes the Registry as drives, so you can use Get-ChildItem -Path "HKLM:\Software\..." to browse keys like a file system. Environment variables and certificates are similarly available through the Env: and Cert: drives.