PowerShell Functions: Get OpsMgr Alert Generating Rules and Monitors

Posted by Tao Yang on 12/04/2014 in PowerShell, SCOM |

This is my second post today. Bad weather, both wife and daughter have got flu. So I’m sitting home catching up with blogs… I wrote 2 functions as part of a PowerShell script I’ve been working on: Get-AlertRules and Get-AlertMonitors. As the names suggest, these two functions get all Rules / Monitors of a particular […]

Tags: ,


Remotely Powering On and Off My Entire Home Lab

Posted by Tao Yang on 12/04/2014 in PowerShell |

My home lab consists of 3 PCs running Hyper-V and a HP Proliant Microserver N54L running SCVMM. I have previously blogged the lab setup in a 2-part blog posts (Part 1, Part 2). These 2 blog articles was written back in October 2012, although there are few changes in the current setup (new hardware, etc), […]

Tags: ,


PowerShell Module to resize console – Updated

Posted by Tao Yang on 08/04/2014 in PowerShell |

Few days ago I wrote a PowerShell module that contains 1 cmdlet / function to resize the PowerShell console windows. It was a quick job that I did less than half an hour. I wrote it primarily to make PowerShell Web Access (PSWA) more user friendly. Over the last couple of days, I spent a […]

Tags: ,


PowerShell Module: Resize-Console

Posted by Tao Yang on 05/04/2014 in PowerShell |

I’m currently working on a solution that relies on PowerShell Web Access (Hopefully I can finish tonight and blog it in next couple of days). I have been a bit hesitate to use use PWSA every since I firstly tried it out briefly back in 2012 (and blogged my experience here). Why am I hesitated? […]

Tags: ,


Few PowerShell One-Liners To Check WinRM Settings on Remote Machines

Posted by Tao Yang on 16/09/2013 in PowerShell |

To Check if WinRM has been enabled on a Remote machine: To Check the Default HTTP listener port on a remote machine: To Check the Default HTTPS listener port on a remote machine:

Tags: ,


Finding OpsMgr Management Group Installation Date Using PowerShell

Posted by Tao Yang on 07/06/2013 in SCOM |

As part of what I’m working on at the moment, I need to find out when the OpsMgr 2012 management group was initially installed using PowerShell (the installation time of the first management server). To do so, I can either use the OpsMgr SDK or the OperationsManager PowerShell module. I’ve developed below scripts to run […]

Tags: ,


Using SCOM 2012 SDK to Retrieve Resource Pools Information

Posted by Tao Yang on 21/02/2013 in PowerShell, SCOM |

Today I needed to retrieve information about SCOM 2012 resource pools in a PowerShell script, I needed to do this directly via SDK, rather than using the OperationsManager PowerShell module. I couldn’t find any existing scripts via Google, so I spent some time playing with SDK and finally found it. Since it seems no one […]

Tags: , ,


My First Impression on PowerShell Web Access

Posted by Tao Yang on 10/11/2012 in PowerShell |

I ran up an instance of Windows Server 2012 in my test lab last night so I can play with various new features such as IPAM and PowerShell Web Access, etc. Today I configured this box as the PowerShell Web Access (PSWA) gateway. I have to say, I am very very impressed! The implementation is […]

Tags: , ,


PowerShell Script To Enable SCOM Agent Proxy in a More Efficient Way

Posted by Tao Yang on 06/09/2012 in PowerShell, SCOM |

if you search on how to enable SCOM agent proxy for all your SCOM agents using PowerShell, you’ll get lots of posts and scripts that shows you how to do it in SCOM 2007 or 2012. In fact, I have written few back in the days. However, no matter if the script uses SCOM 2007 […]

Tags: ,


PowerShell Function: Get-WeekDayInMonth

Posted by Tao Yang on 03/09/2012 in PowerShell |

Often, IT admins need to workout the first/second/third/fourth Mon/Tue/Wed/Thur/Fri/Sat/Sun of any given month. some good examples are: Prepare themselves for Microsoft’s patching Tuesday of each month Planning for any admin tasks caused by Day Light Saving time change So I wrote this simple function today to calculate the date for any given month & year. […]


Copyright © 2010-2014 Tao Yang's System Management Blog All rights reserved.
This site is using the Desk Mess Mirrored theme, v2.2.4.1, from BuyNowShop.com.