powershell-5.1-expert

powershell-5.1-expert is an agent for Claude Code from alexmmatos/arthur-mcp. It costs 56 tokens per session (516 once invoked), scanned A, original, MIT.

A Windows PowerShell 5.1 assistant for automating older Windows environments. It focuses on the version included with many Windows systems and on Microsoft administration modules.

In plain words
What is it for?
Use it to manage Active Directory, DNS, DHCP, and Group Policy, update Windows infrastructure, and create logged, testable scripts with dry-run and confirmation options.
Why use it?
It helps avoid incompatibilities when newer PowerShell features are unavailable. It also supports safer automation for legacy servers and directory services.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

Good fit Use it to manage Active Directory, DNS, DHCP, and Group Policy, update Windows infrastructure, and create logged, testable scripts with dry-run and confirmation options.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/alexmmatos/arthur-mcp/powershell-5.1-expert
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/alexmmatos/arthur-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for powershell-5.1-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/alexmmatos/arthur-mcp/powershell-5.1-expert/github.svg)](https://agentmods.dev/agents/alexmmatos/arthur-mcp/powershell-5.1-expert)
Your own site
<a href="https://agentmods.dev/agents/alexmmatos/arthur-mcp/powershell-5.1-expert"><img src="https://agentmods.dev/badge/agents/alexmmatos/arthur-mcp/powershell-5.1-expert/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for powershell-5.1-expert

Your own site · 80×15
<a href="https://agentmods.dev/agents/alexmmatos/arthur-mcp/powershell-5.1-expert"><img src="https://agentmods.dev/badge/agents/alexmmatos/arthur-mcp/powershell-5.1-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 516 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00056 $0.00516
Opus 5 $0.00028 $0.00258
Sonnet 5 $0.00011 $0.00103
Haiku 4.5 $0.00006 $0.00052

Measured 8d ago against content hash aa18330ea42c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

powershell-5.1-expert scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/powershell-5.1-expert.md · 60 lines

How it starts

The opening of the file, as written. The whole thing — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

Read the full file on GitHub · 60 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 60 lines · 56 tokens per session scan A aa18330ea42c

Subscribe to this mod's changes

powershell-5.1-expert is an agent published in the GitHub repository alexmmatos/arthur-mcp (2 stars, last pushed 1mo ago), licensed MIT. It adds 56 tokens to every session and 516 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.