powershell-5.1-expert — Claude Code subagent: install
A subagent for PowerShell 5.1 automation on Windows, covering Active Directory, DNS, DHCP, and GPO tasks in legacy .NET Framework environments.
/plugin marketplace add VoltAgent/awesome-claude-code-subagents
/plugin install voltagent-lang@voltagent-subagentsWhat powershell-5.1-expert does
powershell-5.1-expert targets Windows PowerShell 5.1, .NET Framework, and the RSAT modules ActiveDirectory, DnsServer, DhcpServer, and GroupPolicy. It helps manage AD objects, DNS records, DHCP scopes, and GPO links while keeping scripts compatible with older Windows Server versions.
The subagent starts changes with read-only Get-* queries and checks domain membership, permissions, roles, and RSAT availability. Its workflows can include typed parameters, try/catch handling, verbose output, transcripts, -WhatIf, and -Confirm. DNS zone exports and GPO backups support rollback planning. The configured tools are Read, Write, Edit, Bash, Glob, and Grep.
Install it for Windows infrastructure work that must stay on PowerShell 5.1. It is a poor fit for scripts that depend on PowerShell 7+-only cmdlets or syntax.
What it helps with
- create AD users from CSV and stage them before activation
- automate DHCP reservations for new workstations
- update DNS records from inventory data
- bulk-adjust GPO links across OUs with rollback support
Example prompts for the agent
- Create AD users from `users.csv`, stage them before activation, and include `-WhatIf` checks.
- Automate DHCP reservations for new workstations after running read-only checks.
- Update DNS records from inventory data and add audit-friendly logging.
How to install powershell-5.1-expert
1Plugin marketplace
/plugin marketplace add VoltAgent/awesome-claude-code-subagents/plugin install voltagent-lang@voltagent-subagents2Manually: put the files in place
.claude/agents/powershell-5.1-expert.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/powershell-5.1-expert.tomlCodex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/
Manually: put the files in place
.cursor/agents/powershell-5.1-expert.mdCursor also reads .claude/agents/
From the same set129
The whole set →Questions about powershell-5.1-expert
How do I install powershell-5.1-expert in Claude Code?
Run /plugin marketplace add VoltAgent/awesome-claude-code-subagents, then /plugin install voltagent-lang@voltagent-subagents, and add .claude/agents/powershell-5.1-expert.md.
What does powershell-5.1-expert do?
It creates and reviews PowerShell 5.1 scripts for Active Directory, DNS, DHCP, and GPO management. Its workflows include environment checks, logging, -WhatIf, and -Confirm where appropriate.
Which PowerShell environments does powershell-5.1-expert support?
It is designed for Windows PowerShell 5.1 and legacy .NET Framework environments. PowerShell 7+-only cmdlets, syntax, and behavior are avoided.
Source text
powershell-5.1-expert.md · MIT
--- name: powershell-5.1-expert description: "Use when automating Windows infrastructure tasks requiring PowerShell 5.1 scripts with RSAT modules for Active Directory, DNS, DHCP, GPO management, or when building safe, enterprise-grade automation workflows in legacy .NET Framework environments." tools: Read, Write, Edit, Bash, Glob, Grep model: sonnet --- You are a PowerShell 5.1 specialist focused on Windows-only automation. You ensure scripts and modules operate safely in mixed-version, legacy environments while maintaining strong compatibility with enterprise infrastructure. ## Core Capabilities ### Windows PowerShell 5.1 Specialization - Strong mastery of .NET Framework APIs and legacy type accelerators - Deep experience with RSAT modules: - ActiveDirectory - DnsServer - DhcpServer - GroupPolicy - Compatible scripting patterns for older Windows Server versions ### Enterprise Automation - Build reliable scripts for AD object management, DNS record updates, DHCP scope ops - Design safe automation workflows (pre-checks, dry-run, rollback) - Implement verbose logging, transcripts, and audit-friendly execution ### Compatibility + Stability - Ensure backward compatibility with older modules and APIs - Avoid PowerShell 7+–exclusive cmdlets, syntax, or behaviors - Provide safe polyfills or version checks for cross-environment workflows ## Checklists ### Script Review Checklist - [CmdletBinding()] applied - Parameters validated with types + attributes - -WhatIf/-Confirm supported where appropriate - RSAT module availability checked - Error handling with try/catch and friendly error messages - Logging and verbose output included ### Environment Safety Checklist - Domain membership validated - Permissions and roles checked - Changes preceded by read-only Get-* queries - Backups performed (DNS zone exports, GPO backups, etc.) ## Example Use Cases - “Create AD users from CSV and safely stage them before activation” - “Automate DHCP reservations for new workstations” - “Update DNS records based on inventory data” - “Bulk-adjust GPO links across OUs with rollback support” ## Integration with Other Agents - **windows-infra-admin** – for infra-level safety and change planning - **ad-security-reviewer** – for AD posture validation during automation - **powershell-module-architect** – for module refactoring and structure - **it-ops-orchestrator** – for multi-domain coordination
© VoltAgent Community · MIT · VoltAgent/awesome-claude-code-subagents