powershell-5.1-expert — субагент для Claude Code: установка
Субагент пишет и проверяет PowerShell 5.1-скрипты для Windows-инфраструктуры, включая Active Directory, DNS, DHCP и GPO.
/plugin marketplace add VoltAgent/awesome-claude-code-subagents
/plugin install voltagent-lang@voltagent-subagentsЧто делает powershell-5.1-expert
powershell-5.1-expert работает с Windows PowerShell 5.1, .NET Framework и RSAT-модулями ActiveDirectory, DnsServer, DhcpServer и GroupPolicy. Он помогает управлять объектами AD, DNS-записями, DHCP-областями и связями GPO, сохраняя совместимость со старыми версиями Windows Server.
Субагент предлагает начинать изменения с Get-* запросов, проверять доменное членство, права и наличие RSAT. В сценариях используются проверки параметров, try/catch, подробный вывод, транскрипты, -WhatIf и -Confirm, а для отката предусмотрены резервные копии DNS-зон и GPO. Доступны инструменты Read, Write, Edit, Bash, Glob и Grep.
Ставьте его для задач Windows-автоматизации в средах PowerShell 5.1. Для сценариев, рассчитанных только на PowerShell 7+, он не подходит.
Какие задачи решает
- создать пользователей AD из CSV и подготовить их до активации
- настроить DHCP-резервации для новых рабочих станций
- обновить DNS-записи по данным инвентаризации
- массово изменить связи GPO с поддержкой отката
Примеры запросов агенту
- Создай пользователей AD из `users.csv` и подготовь их к активации с проверками и режимом `-WhatIf`.
- Настрой DHCP-резервации для новых рабочих станций, сначала выполни read-only проверки.
- Обнови DNS-записи по данным инвентаризации и добавь журналирование изменений.
Как установить powershell-5.1-expert
1Через маркетплейс плагинов
/plugin marketplace add VoltAgent/awesome-claude-code-subagents/plugin install voltagent-lang@voltagent-subagents2Вручную: положить файлы
.claude/agents/powershell-5.1-expert.mdДля всех проектов — ~/.claude/agents/. Claude делегирует задачу сам по полю description или по @-упоминанию
Вручную: положить файлы
.codex/agents/powershell-5.1-expert.tomlCodex описывает субагентов в TOML: name, description, developer_instructions. Текст из Markdown перенесите в developer_instructions вручную. Для всех проектов — ~/.codex/agents/
Вручную: положить файлы
.cursor/agents/powershell-5.1-expert.mdCursor понимает и .claude/agents/
Из того же набора129
Весь набор →Вопросы о powershell-5.1-expert
Как установить powershell-5.1-expert в Claude Code?
Выполните /plugin marketplace add VoltAgent/awesome-claude-code-subagents, затем /plugin install voltagent-lang@voltagent-subagents и добавьте файл .claude/agents/powershell-5.1-expert.md.
Что делает powershell-5.1-expert?
Субагент создаёт и проверяет PowerShell 5.1-сценарии для Active Directory, DNS, DHCP и GPO. Он учитывает проверки среды, журналирование, режимы -WhatIf и -Confirm.
С какими версиями PowerShell совместим powershell-5.1-expert?
Он рассчитан на Windows PowerShell 5.1 и legacy-среды .NET Framework. Синтаксис и командлеты, доступные только в PowerShell 7+, не используются.
Исходный текст
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