A collection of Windows account-creation utilities for local and domain administrators.
| Tool | Purpose | Docs |
|---|---|---|
scripts/Start-App.ps1 → src/Pwsh-NewLocalUser/New-LocalUser.ps1 |
Create a numbered local Windows administrator account interactively (with optional post-logon profile migration) | docs/NEW-LOCALUSER.md |
src/PwshScript/New-OSMUser.ps1 |
Create a numbered Active Directory domain admin account | src/PwshScript/README.md |
src/DotNet-DomainWebServer/ |
ASP.NET Core web server for domain account creation | src/DotNet-DomainWebServer/README.md |
Remote install (recommended) — run from an elevated PowerShell:
irm 'https://raw.githubusercontent.com/aberrantCode/OSM_NewUser/main/install.ps1' | iexDownloads the latest release to C:\osm\new-localuser, installs dependencies, and optionally launches the tool. Auto-elevates if needed.
Manual (cloned repo):
- Copy
.env.exampleto.envand setNEW_USER_PASSWORD - Run
scripts\Start-App.ps1(auto-elevates if needed)
See docs/NEW-LOCALUSER.md for full documentation.
See src/DotNet-DomainWebServer/README.md.
OSM_NewUser/
├── scripts/ # Launchers
│ └── Start-App.ps1 # Auto-elevating entry point for local user tool
├── src/
│ ├── Pwsh-NewLocalUser/ # Local Windows admin account creation
│ ├── PwshScript/ # AD domain admin account creation
│ ├── DotNet-DomainWebServer/ # ASP.NET Core web server
│ └── DotNet-DomainWebServer.Tests/ # xUnit tests
├── tests/
│ └── Pester/ # Pester 5 tests for PowerShell scripts
├── docs/ # Additional documentation
├── hooks/ # Git hooks
└── .env.example # Password configuration template
.envis gitignored. Never commit it.- A pre-commit hook (
hooks/pre-commit) is included to block accidental.envcommits. - Activate with:
git config core.hooksPath ./hooks