locked
SCOM MaintenanceMode cmdlt issue? RRS feed

  • General discussion

  • Hey Scripting guy, 

    I'm having an issue with a scom and trying to put servers into maintenance mode. Below is the error I am receiving along with the script I am using

    $Instance = Get-SCOMClassInstance -Name "Test"
    $Time = ((Get-Date).AddMinutes(240))
    Start-SCOMMaintenanceMode -Instance $Instance -EndTime $Time -Comment "Applying Software Updates."


    • Changed type Bill_Stewart Friday, January 26, 2018 3:37 PM
    • Moved by Bill_Stewart Friday, January 26, 2018 3:37 PM Off-topic
    Thursday, December 14, 2017 5:54 AM

All replies

  • 1) Please copy and paste your error message rather than posting a screen shot. It is much too small to read.

    2) Are you sure this is not a SCOM question rather than a scripting question? (I can't tell because I can't read the error message.)


    -- Bill Stewart [Bill_Stewart]

    Monday, December 18, 2017 1:35 PM