1

SCCM Health Check Script Updated: Version 3.5

Posted by Tao Yang on 31/01/2012 in SCCM |

I have just updated the SCCM Health Check Script to from version 3.3 to 3.5 Version 3.4 was finished a while back but I never got time to publish it in this blog. I only emailed 3.4 to few people who contacted me from my blog. Now that I’ve updated it again to 3.5, I [...]

Tags: , ,

0

PowerShell Script: Convert To Local Time From UTC

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

I wrote this function in the script from my previous post “SCOM MP Authoring Example: Generate alerts based on entries from SQL Database (Part 2 of 2)”. It comes handy sometimes so I thought I’ll blog it separately as well. In PowerShell Datetime object, there is a ToUniversalTime() method that converts local time to UTC [...]

Tags:

2

SCOM MP Authoring Example: Generate alerts based on entries from SQL Database (Part 2 of 2)

Posted by Tao Yang on 05/01/2012 in SCOM |

This is the 2nd part of the 2-part series.  Part 1 can be found here. In Part 2, I’ll cover the steps involved to create each module type and the rule in this article. all these objects will be created in SCOM 2007 R2 Authoring Console. You can create a new management pack for this [...]

Tags: , , ,

0

SCOM: Using PowerShell to update SMTP server address in SMTP notification Channels

Posted by Tao Yang on 10/12/2011 in SCOM |

I’ve been asked a question on how to bulk update SMTP server addresses in SMTP notification channels using PowerShell. Here’s the script to run in OpsMgr Command Shell:

Tags: ,

1

Run 64-bit PowerShell via SCCM 2007 Advertisement

Posted by Tao Yang on 08/11/2011 in PowerShell, SCCM |

A colleague came across a problem today. He could run a SCDPM PowerShell script from PowerShell console successfully but could not run it when packaged it in SCCM. We soon found out it’s because SCCM 2007 is a 32-bit app and DPM PowerShell snapin is only available for 64-bit PowerShell because we could not run [...]

Tags: ,

0

Powershell Function: Get-AllDomains (in a forest)

Posted by Tao Yang on 05/08/2011 in Active Directory, PowerShell |

I wrote this Powershell function today as part of a script I’m working on. It is to get a list of Active Directory domains within an Active Directory forest using ADSI: I don’t have any child domains in my test environment, but if you run this on a domain member computer, it will list all [...]

Tags: , ,

19

SCCM Health Check PowerShell Script Updated to Version 3.3

Posted by Tao Yang on 26/05/2011 in SCCM |

I have updated the SCCM Health Check Script again. The latest version is now 3.3. Below is what’s been updated since my last post for version 3.1: Fixed the bug where when using DOTNET sending emails to multiple recipients, it only sends to the first recipient from the list. It now zip the txt attachment [...]

Tags: , ,

2

PowerShell Script to locate SCCM objects in SCCM console

Posted by Tao Yang on 20/05/2011 in PowerShell, SCCM |

There are many object types in SCCM that supports folders in the console. Even though the object can be easily located using the search function, often we need to find out which folder does a particular object (i.e. package, advertisement, etc) reside.  At work, we use folders to separate objects for different business units and [...]

Tags: ,

1

PowerShell Functions: Get IPV4 Network Start and End Address

Posted by Tao Yang on 01/05/2011 in PowerShell |

I wrote 2 PowerShell functions today: Get-IPV4NetworkStartIP and Get-IPV4NetworkEndIP. Input: Network IP address in CIDR notation Format Output: The start or end IP (System.Net.IPAddress object). Get-IPV4NetworkStartIP: Get-IPV4NetworkEndIP: Usage: Get-IPV4NetworkStartIP “192.168.1.0/24” Get-IPV4NetworkEndIP “192.168.1.0/24” Examples:

Tags: , ,

3

Updated: SCCM Health Check PowerShell Script

Posted by Tao Yang on 21/04/2011 in PowerShell, SCCM |

I have updated the SCCM Health Check Script that I have originally posted here. Download Version 3.1 Here. Changes: 1. The script can now utilise Powershell Remoting to check inboxes sizes. It requires PS-Remoting to be enabled on all SCCM Site Servers. This dramatically reduced the execution time of the script in a multi-tier environment. [...]

Tags: , ,

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