C# rewrite of NetSPI/PowerUpSQL with domain-driven architecture, PowerUpSQL-compatible CLI names, standalone execution, and Sliver execute-assembly --in-process support.
- .NET Framework 4.8
- Visual Studio 2022 or MSBuild 17+
powershell -NoProfile -ExecutionPolicy Bypass -File .\scripts\release.ps1Output: dist\PowerUpSQLSharp.exe
If you see NETSDK1004 (missing project.assets.json), run dotnet restore once or pull the latest release.ps1 (restore runs automatically).
PowerUpSQLSharp.exe --help
PowerUpSQLSharp.exe Get-SQLInstanceLocal
PowerUpSQLSharp.exe Get-SQLInstanceLocal --help
PowerUpSQLSharp.exe Get-SQLServerInfo -Instance SQL01 -Username sa -Password "YourPassword"Full command examples (all 108 functions): docs/Usage-Examples.md.
For a domain + SQL Server lab (e.g. SQL Server 2014):
Copy-Item .\scripts\test-env.example.ps1 .\scripts\test-env.ps1
# Edit test-env.ps1 with your instance, host, and credentials
.\scripts\Run-IntegrationTests.ps1See docs/Integration-TestPlan.md for the phased test matrix and PowerUpSQL comparison steps.
- docs/Usage-Examples.md — 全命令操作示例与说明
- docs/PowerUpSQL-Mapping.md — PowerUpSQL 功能映射
- docs/Integration-TestPlan.md — 集成测试计划
- docs/Acceptance-Tests.md — 验收测试规范
- docs/AutomatedLab-TestEnvironment.md — 实验环境搭建
- docs/Project-Retrospective.md — 项目经验沉淀
- PowerUpSQLSharp_Requirements_v2.0.md — 需求规格
BSD-3-Clause (see PowerUpSQL upstream)