List Servers in Maintenacce Mode
Hello All; Trying to find a script that I can call with a scheduled task that will list all the servers in Maintenance Mode. I know about the one in the web console that a gentleman named Steve wrote. I want it seperate from that. I have searched high and low with no luck. Any Idea's greatly appreciated! Don
November 4th, 2010 3:32pm

Hi, It's an old blog but it's still good :) http://blogs.msdn.com/b/boris_yanushpolsky/archive/2007/08/06/so-what-is-in-maintenance-mode.aspx Run the commands from an Operations Manager command shell. MattMatt White ( http://systemcenterblog.hardac.co.uk/ )
Free Windows Admin Tool Kit Click here and download it now
November 4th, 2010 5:03pm

Hi, Please check if script in the following thread will work: Query all servers in maintenance mode: http://social.technet.microsoft.com/Forums/en-US/operationsmanagerextensibility/thread/627c8508-7ea9-4fe8-b702-e11ab20b848aPlease remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
November 5th, 2010 3:41am

Hi, Actually, thinking about it, Boris's post would return every single monitoringobject that is in maintenance mode... SQL Databases, IIS Websites, everything. If you just want Windows computers you can use the standard cmdlets in the operations manager shell: Get-MonitoringClass -name "Microsoft.Windows.Computer" | get-monitoringobject -criteria "InMaintenanceMode=1" MattMatt White ( http://systemcenterblog.hardac.co.uk/ )
Free Windows Admin Tool Kit Click here and download it now
November 5th, 2010 6:17am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics