Modular Automation · Reusable Components · Packaging Engine

The Core Script Library is a foundational component of the
Windows-SysAdmin-ProSuite/Core-ScriptLibrary/ directory.
It provides enterprise-grade PowerShell building blocks used across the entire repository, enabling:
- Reusable script scaffolding
- GUI-driven administrative tools
- Centralized logging and reporting
- Automated NuGet packaging and publishing
All components are designed with determinism, auditability, and reuse as first‑class principles.
- 🧩 Modular Architecture — Reusable functions, helpers, and UI components
- 🎛️ GUI-Ready Templates — Windows Forms–based execution models
- 📝 Structured Logging — Deterministic .log generation
- 📊 Exportable Outputs — .csv and .txt artifacts
- 📦 Packaging Engine — Automated NuGet creation and publishing
| Subfolder |
Purpose |
Documentation |
| Modular-PS1-Scripts |
PowerShell scaffolds for reusable automation, GUI menus, standardized headers, and centralized logging. |
 |
| Nuget-Package-Publisher |
End‑to‑end automation for building and publishing NuGet packages using PowerShell and GUI workflows. |
 |
🛠️ Requirements & Environment
$PSVersionTable.PSVersion
- Minimum: PowerShell 5.1
- Recommended: PowerShell 7+
2️⃣ Administrative Privileges
Administrator rights are required for:
- File system access
- Service interaction
- Package publishing
- Registry and system configuration
3️⃣ RSAT (Required for Modular-PS1-Scripts)
Get-WindowsCapability -Name RSAT* -Online | Add-WindowsCapability -Online
RSAT is required when scripts interact with:
- Active Directory
- DNS / DHCP
- Group Policy Objects
4️⃣ NuGet CLI (Nuget-Package-Publisher)
- Place nuget.exe in the script directory or ensure it is available in PATH.
Test-Path (Join-Path $PSScriptRoot "nuget.exe")
5️⃣ GitHub Personal Access Token (PAT)
Required for publishing packages:
- Scope: package:write
- Used by the NuGet publishing workflow
6️⃣ Execution Policy (Session Scoped)
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process
git clone https://github.com/brazilianscriptguy/Windows-SysAdmin-ProSuite.git
cd Windows-SysAdmin-ProSuite/Core-ScriptLibrary
- Review the README of the target subfolder
- Customize templates or configuration files
- Execute the script:
- Review generated logs and artifacts
-
Logs
- Modular-PS1-Scripts: Local .log files
- Nuget-Package-Publisher: %LOCALAPPDATA%\NuGetPublisher\Logs
-
Reports & Artifacts
- .csv exports
- .txt execution summaries
- .nupkg and .snupkg files
💡 Operational Best Practices
- 🔁 Schedule executions via Task Scheduler
- 📁 Centralize logs on shared storage for audits
- 🧪 Validate scripts in test environments first
- 🧾 Maintain standardized headers and metadata
- 📦 Automate package publishing via CI/CD

© 2026 Luiz Hamilton Silva. All rights reserved.