Scom maintenance script RRS feed

  • Question

  • Hey guys! so I am a intern and I got the order to make a script, I need to put multiple threads into maintenance mode, so I am asking you guys for some help

    until this point I made this:

    $instance =Get-SCOMClassInstance-displaynameZGV_KleineApps_STDOCP
    $starttime =(get-date)
    $Newendtime ="09:00:00 aM"
    Start-SCOMMaintenanceMode -Instance$instance-EndTime$newendtime-Comment"STDOCP Maintenance"-ReasonPlannedOther
    Get-SCOMMaintenanceMode -Instance$instance  

    I've got some problems, first problem: maintenance mode needs to end at 9 am, when I put in 9 am and run the script and look at what time the scheduled end time is, It says 11 am, while in the script I have typed in 9 am.

    second problem: how can I make it so it puts multiple scripts at once in maintenance mode

    thank you for reading this,

    kind regards,

    Erenay Tozun

    • Edited by Erenay61 Friday, September 21, 2018 10:56 AM
    Friday, September 21, 2018 7:22 AM


All replies