Related Articles
PowerShell – Comparing Management Pack Version
I bumped into an interesting problem while writing a custom PowerShell module. The module should compare the management packs from a SCOM management group and some local repository. If the local repository has a higher version number than the currently installed management pack, the script should import the management pack into SCOM. This post should […]
Orchestrator 2012 SP1 – PowerShell 3.0, Run .Net Activity and Get-SCXAgent
New things are not always good things or at least old habits change. I had been working on some runbooks in Orchestrator 2012 SP1 and needed to run PowerShell 3.0 and the .Net Activity. I installed Orchestrator 2012 SP1 on Windows Server2008 R2 which has PowerShell 2.0 installed natively. Then I wanted to use the […]
PowerShell – Create “Clean” Custom Objects From DataTable Object
I recently had a need to create “clean” PowerShell custom objects out of a DataTable object. What does that mean? Well, let me explain. When you try to get data out of SQL Server using PowerShell there are many ways to do it. Either you use Invoke-SQLCmd, SQL Server PowerShell (SQLPS), SQL Server Management Objects […]