Set PSU node to Maintenance mode using PowerShell command?

Set PSU node to Maintenance mode using PowerShell command?

avatar
(anonymous user)
Product: PowerShell Universal
Version: 4.3.2


How do I set PSU node to Maintenance mode using a PowerShell command or a PSU API? I want to automate rebooting of the nodes, so I assume the prudent thing to do would be to put it in maintenance mode first.
Thanks.

All Comments (2)

avatar

Set-PSUComputer provides a -Maintenance flag that you can use.

Get-PSUComputer | Where-Object Name -eq 'Server123' | Set-PSUComputer -Maintenance $true


Adam Driscoll
PowerShell Expert and Developer at Devolutions

avatar

Thank you