Skip to content

Add maintenance mode cmdlets to the PowerShell module - #6166

Open
npink42 wants to merge 4 commits into
masterfrom
PS-ServiceControl-Maintenance-Mode
Open

npink42 wants to merge 4 commits into
masterfrom
PS-ServiceControl-Maintenance-Mode

Conversation

@npink42

@npink42 npink42 commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Draft pr. I will add detail if testing works out.

Adds Enable- and Disable-ServiceControlMaintenanceMode and the audit equivalents, with sc-maintenance-on/off and audit-maintenance-on/off aliases. Each cmdlet stops the service, updates the maintenance mode setting, and starts the service.
@npink42
npink42 marked this pull request as draft November 20, 2026 13:13
Start- stops the service, enables maintenance mode, and starts the service. Stop- stops the service and clears maintenance mode, leaving the service stopped, as ServiceControl Management does. Aliases become sc-maintenance-start/stop and audit-maintenance-start/stop.
Each cmdlet now lives in the ServiceControlInstances or AuditInstances folder and carries its own parameter, admin check, and instance lookup.
@soujay soujay modified the milestone: NextMajor Nov 20, 2026
@npink42
npink42 marked this pull request as ready for review November 22, 2026 04:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants