Monday, June 28, 2010
SCOM is really starting to piss me off...
Saturday, June 12, 2010
Emerald Isle / Bogue Banks Golf Courses
Thursday, June 10, 2010
Powershell: Bringing Sexy Back
Nifty editor
Tuesday, June 8, 2010
Monday, June 7, 2010
Displaying a Percent Sign (%) in a SCOM Event Description
Microsoft OpsMgr 2007 SDK Severity Levels
If you're using the SDK and are instantiating a CustomMonitoringEvent class, it comes with a LevelID property which holds an int. The value of that property determines the severity level the event is assigned, with the following mapping:
- 1-Error
- 2-Warning
- 4-Information
- 8-Success Audit
- 16-Failure Audit
And just like that, Bing becomes irrelevant
Dear valued cashback customer:
We are writing to notify you that the Bing cashback program will be discontinued, and the last day to earn cash back on your Bing Shopping purchases will be July 30, 2010.
Until July 30, 2010 9:00 pm PST, it's business as usual so continue to take advantage of great offers from your favorite merchants. You can redeem all of your earned cashback savings consistent with the cashback terms and conditions and access the Bing cashback customer support system through July 30, 2011. We encourage you to redeem your cashback savings and to further support redemption, we are waiving the $5 minimum payout effective July 31, 2010. To assist with prompt delivery of your cashback earnings, please visit http://cashbackaccount.bing.com to ensure your account information is current. For more details and answers to your questions, please visit our frequently asked questions page.
Thank you very much for being a loyal cashback user. We remain committed to delivering great value to our customers, and we are currently working on an exciting new program which you will hear more about from us later this summer.
Sincerely,
Bing cashback team
And just like that, I'm back to being an exclusive Google user.
Sunday, June 6, 2010
Drum Stick Sizes
- Length: 16.25"
- Diameter: .551"
- 7A - a thin, light stick. Generally used for jazz in small combo settings
- 5A - a medium stick. This is probably the most common size.
- 5B and 2B - thicker, heavier sticks. These are most typically used in heavy rock situations, to get a heavier sound, as well as to prevent breakage.
- 7A - .512" - 15.375"
- 727 - .531" - 16"
- 5A - .551" - 16"
- 747 - .551" - 16.25"
- 5B - .590" - 16"
- 2B - .630" - 16"
- 7A - .540" - 15.5"
- 5A - .565" - 16"
- 5B - .595 - 16"
- 2B - .630" - 16.25"
- Rock - .630" - 16.625"
- 7A - .540" - 15.5"
- Pro Rock - .555" - 16.25"
- Los Angeles 5A - .570" - 16"
- Fusion - .580" - 16"
- 5B - .605" - 16"
- Rock - .630" - 16.625"
- 2B - .635" - 16.25"
- 7A - .510" - 15"
- Rock - .555" - 16.25"
- 5A - .580" - 16"
- 5B - .600" - 16"
- 2B - .655 - 16"
- 7A - .525 - 15.5"
- Jazz - .540" - 16"
- 5A - .560" - 16"
- 5B - .600" - 16"
- 2B - .625" - 16"
- Rock - .625" - 16.625"
Saturday, June 5, 2010
Powershell, Versions, Modules & Snap-ins
I mean, Powershell is Powershell, right? Well, yes. But Powershell v1.0 is not Powershell v2.0 and the differences are both subtle and important. Especially when it comes to using Modules (DLLs) and Snap-ins.
My first problem was that I started development on my Windows 7 64-bit laptop with Powershell 2.0. The first important takeaway from this experience:
1. Developing in Powershell 2.0 is better than Powershell 1.0.
And the second:
2. The Powershell ISE (Integrated Scripting Environment) may be the best tool I've used for developing scripts.
It's no Eclipse, but it's very handy and the price is right.
Anyway, the script I'm writing integrates with System Center Operations Manager 2007 (aka SCOM and OpsMgr). SCOM delivers an SDK that's available both on the management server and the console, so my script will be running in one of those two locations and relying on several different OpsMgr assemblies, including:
- Microsoft.EnterpriseManagement.OperationsManager.dll
- Microsoft.EnterpriseManagement.OperationsManager.Common.dll
- Microsoft.EnterpriseManagement.OperationsManager.ClientShell.dll
- System.Security
I needed to build this script so it would run in Powershell v1.0 and it needs to run on both 32-bit and 64-bit platforms. Finally, I got it working on v2.0 and 64-bit, but then started down a path of misery trying to make it backwards compatible. Along the way I learned a few things:
- Modules/DLLs can get loaded in several ways.
- Snap-ins need two key steps to work in your script -- they need to be registered with this system, which is the first step, then added to the script context you're working on.
Loading Modules/DLLs:
VERSION 2 ONLY: import-module "C:\Program Files\System Center Operations Manager 2007\Microsoft.EnterpriseManagement.OperationsManager.ClientShell.dll"
VERSION 1 & 2: [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.
EnterpriseManagement.OperationsManager")
Register your Snap-ins with the OS:
So this was an odd concept for me to finally get my head around. When you register your snap-in with the system, you're creating an entry in the system registry that describes the snap-in. This does NOT make the cmdlets available to your script. I didn't really grasp this until I understood the difference between Get-PSSnapins and Get-PSSnapins -Registered. More on this in a moment...
First, to get your Snap-in recognized by the system, you need to use the InstallUtil.exe utility. This is located in C:\Windows\Microsoft.NET\Framework\v2.0.50727\installutil.exe. Unfortunately, the actual path will vary with the bitness of your OS (Framework becomes Framework64 on 64-bit OSes) and with the version of .NET Framework embedded in the path, you will also have versioning of the framework to deal with.
In order to determine if your Snap-in registration was successful, you can either go check in the registry (A Registry key with SnapinName, which was defined in the PSSnapIn class, will be created under HKLM\Software\Microsoft\PowerShell\1\PowerShellSnapIns) or you can run Get-PSSnapins -Registered. Remember, this does NOT make the cmdlets available to your script...yet.
To make the cmdlets available to your script, you need to add them with Add-PSSnapins. At this point, the Get-PSSnapins command (no -Registered option) should tell you that your snap-in is loaded into the script context. And depending on the snap-in, you may need to source another script (.ps1) that includes the cmdlet function names, as was true in this case: &"C:\Program Files\System Center Operations Manager 2007\Microsoft.EnterpriseManagement.OperationsManager.ClientShell.Functions.ps1"
I don't know if this is enough information or even presented clearly enough to help, but here's hoping. Also, you should check out the page that ultimately helped me decode this riddle (with thanks to Arul Kuramavel and the good people at Wrox): http://www.wrox.com/WileyCDA/Section/Extending-Windows-Powershell-with-Snap-ins.id-320555.html