Set-OneClickMaintenance

CA's Spectrum OneClick doesn't have the fastest GUI in the world. So when you need to place a bunch of servers into maintenance mode for a patch run you really need a script. Fortunately OneClick has a REST API. Unfortunately the documentation for the API is .... ordinary. The following script shows how PowerShell can be used to set devices into Maintenance mode or Managed mode.
https://github.com/gbuktenica/Set-OneClickMaintenance