awickham10 / psdpa

PowerShell module for the Solarwinds DPA REST API
MIT License
8 stars 0 forks source link

Stop-DpaMonitor - Implement Wait Support #15

Open awickham10 opened 5 years ago

awickham10 commented 5 years ago

Similar to Restart-Computer, Stop-DpaMonitor should support a -Wait parameter which would wait until the monitor has started before continuing execution of a script.

Stop-DpaMonitor -MonitorName 'GoingIntoMaintenance' -Wait
Restart-Computer -ComputerName 'GoingIntoMaintenance' -Wait