# Active Directory Automation Pack

> Four read-only-first AD skills: health, replication, stale objects, and gated bulk user provisioning. PowerShell-based Active Directory automation for bulk provisioning, health checks, and stale object reporting.

Active Directory Automation Pack is a free AI agent skill pack (several skills in one listing) on Agensi by vincent ododa, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [vincent ododa](https://www.agensi.io/creators/vincent-ododa)
- Category: [Security](https://www.agensi.io/skills/security)
- Version: 1.0
- Last updated: 2026-11-19
- Security: scan passed (2026-11-19); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/active-directory-automation-pack
- Tags: active-directory, onboarding, powershell, sysadmin, windows-server, replication, repadmin, security

## About this skill

Active Directory Automation Pack bundles four PowerShell skills that cover the recurring AD jobs sysadmins actually do:

- ad-health-check — every DC's critical services, FSMO role holders, time sync offset, and SYSVOL reachability.
- ad-replication-report — repadmin /replsummary plus per-pair /showrepl data, with failed pairs and error codes called out.
- ad-stale-objects — inactive users and computers, locked-out accounts, disabled accounts, and password-age findings.
- ad-bulk-user-provision — CSV-driven user creation that is dry-run by default and only writes when you explicitly pass -Execute.

Three skills are strictly read-only. The one write skill validates every row, skips existing accounts, generates a random temporary password per user, and forces a password change at first logon. Nothing runs without an explicit opt-in.

Every skill prints human-readable tables and a single JSON line, so results are easy to read and easy to store.

## Requires

- The scripts run in Powershell.

## Known limitations

Requires RSAT ActiveDirectory module. Read-only scripts do not modify objects. Replication report requires English-localized DC output. Large domains may experience latency during stale object scans.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Active Directory Automation Pack skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### Which AI agents or platforms are compatible with this skill pack?

This skill pack is compatible with any AI agent or platform that has a PowerShell execution environment and the Active Directory (RSAT) module installed. It is designed to be triggered via natural language prompts to handle the underlying script execution and parameter mapping.

### What exactly is included in the purchase?

The pack includes a collection of production-ready PowerShell scripts, including specialized tools for bulk user provisioning, domain health audits, replication monitoring, and stale object discovery. You also receive a documentation guide on how to integrate these scripts with your AI agent's toolset.

### How does this pack prevent accidental directory errors during bulk imports?

Safety is a core feature; the bulk provisioning tool includes a mandatory 'dry-run' mode that validates CSV data, OU paths, and duplicate accounts before making any changes to your directory. This prevents the common 'hallucination' or syntax errors often found in raw AI-generated scripts.

### Are there specific system requirements or permissions needed to run these tools?

Yes, the scripts require a Windows environment with the Active Directory PowerShell module (RSAT) installed. Additionally, the executing agent must have the necessary administrative permissions to read or write to the directory depending on the task.

### Do these scripts perform any permanent changes to my Active Directory environment?

The health auditing and stale object scripts are strictly read-only and designed for reporting. The provisioning scripts only perform write actions when the explicit '-Execute' flag is triggered after a successful validation phase.

### Are there any known limitations regarding international directory setups?

The replication reporting tools currently parse output from 'repadmin', which assumes the underlying OS language is set to English. It may require manual adjustment for environments using other system languages.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
