MaintMode on a single class

Didnt know that this would work…

In a project that I’m working on the customer wanted me to create a Management Pack for a couple of services, the only problem was that they wanted to restart the services during the night.
My first solution was to create a group with the computer in it and run a PowerShell script to set the computer in to maintenance mode.

Then I tested to put my own class in that group and use the same script on the class instead.

Worked like a charm :-)

The script: systemcenterforum.org/maintenance-mode-scheduled-task-for-ops-mgr-2007/

Maintenance Mode


VBScript -> PowerShell

Scripting Guys har varit framme igen… den här gången har dom skrivit en guide om hur man konverterar “gamla” VBScript till PowerShell…

This guide is intended to help you “translate” VBScript scripts to Windows PowerShell scripts. However, this is not designed to be a word-for-word translation guide; for better or worse, things don’t quite work that way. Instead, consider this a reference as you begin writing Windows PowerShell scripts. After all, sooner or later you’re bound to run into a situation where you find yourself thinking, “OK, I need to use a Select Case statement here. I know how to do that in VBScript, but how do I do that in Windows PowerShell?” That’s where this guide can come in handy; it takes all the VBScript functions, statements, and operators and shows you, as much as possible, a Windows PowerShell equivalent.

Mer info: Technet Scriptcenter


Powershell – RTM

Idag på TechED anonserade Bob Muglia att Powershell släpps som RTM. :-)

 

http://bink.nu/Article8822.bink


PowerShell & OpsMgr

Om du är sugen på att börja lattja med PowerShell och Operations Manager 2007 så kan jag rekommedera lite läsning på den nystartade bloggen System Center Operations Manager Command Shell

Första inlägget är en “getting started”-guide… bara läsa och börja leka.


« Previous Page