Deprecation of cmdlets

Monday, April 30, 2012

Until PowerShell 3.0, if you shipped a cmdlet there was no good way to deprecate it. Cmdlet developers can use the .NET ObsoleteAttribute now to let users know that they should not use a cmdlet anymore. In the following example, the cmdlet can run but it will issue a warning that another cmdlet should be used from now on. This gives the user time to prepare for the change and fix any scripts dependent on old commands. $code = @' using System; using System.Management.Automation; namespace ObsoleteCmdlet { ...

Regular Expression Webcast Series

Sunday, December 28, 2008

source: This is a great resource for learning what regular expressions are and how you can use them in .NET applications, including PowerShell (featured briefly), I watched the first 4 chapters and I love every part of it.   Presenter: Zain Naboulsi, MSDN Developer Evangelist, Microsoft Corporation In this webcast series, we explore an unsung hero: the regular expression. It slices, it dices, and it can turn twenty lines of code into one line if you know how to use it. Join us as we explore pattern matching...
tags: , , ,