PSRR - Remote Registry PowerShell 3.0 Module
var addthis_config = {"data_track_clickback":true}; One of the new improvements in the .NET Framework version 4 is the Microsoft.Win32.RegistryView enumeration. On the 64-bit version...
View ArticleAuto reconnect to a server you just rebooted with PowerShell 3.0
Yesterday I saw a tweet that caught my eye: Sounds familiar? What do you usually do to reconnect to your server once it is back online? How do you monitor it’s availability? In this post, Justin...
View ArticleCounting objects in PowerShell 3.0
Consider the following command, how many objects are in $dir? PS> $dir = Get-ChildItem The most common way to find it is to check the Count property: PS> $dir.Count But… the...
View ArticleLeveraging Proxy Functions in PowerShell
@DSotnikov just released the video recording of the session from the PowerShell Deep Dive in Frankfurt (last year). In this video, MVP Kirk Munro (poshoholic) and I demoed a project we've been...
View ArticleMeasuring objects in PowerShell 3.0
The Measure-Object cmdlet gives us a great way to find minimum and maximum values in a collection of objects. For example, if we want to know the smallest and largest size of a file in the current...
View ArticleAdd-Member enhancements in PowerShell 3.0
PowerShell 3.0 offers new ways to add Note properties to objects. In PowerShell 2.0, a typical command to do that would look like: PS> New-Object -TypeName PSObject | Add-Member -MemberType...
View ArticleCustom objects default display in PowerShell 3.0
In PowerShell 3.0 we can now create new custom objects using a hash table. PS> [PSCustomObject]@{ One = 1 Two = 2 Three = 3 Four = 4 Five = 5 } One : 1 Two : 2 Three :...
View ArticleHow to protect your PowerShell Functions
Creating functions in PowerShell is relatively a simple operation. You declare the function’s name and value, press the Enter key and you’re good to go. It is also very simple to override the...
View ArticleCreating objects with a cast in PowerShell 3.0
Starting with PowerShell 3.0, we now have another cool way to create new objects. We can create them by calling the default constructor of the type and initializing its properties with a cast: ...
View ArticleDeprecation of cmdlets
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...
View ArticleWhat is my Exchange server version
I’ve been asking myself the same question lately. Unfortunately the information is not always available in the product’s title or in Add/Remove programs. The only piece of available information is...
View ArticleCongratulations 2012 Microsoft MVP
I’ve just received THE email from Microsoft… I’m a PowerShell MVP for another year! I am very honored! This is my 5th renewal and I would like to take this opportunity and say thank you to...
View ArticleSkipping empty CSV objects
Hi, it’s been a while since my last post, I’ve been busy mostly at work and also by investing most of my time running the PowerShell Magazine website together with my friends. I hope to post more in...
View ArticleImproving the output of Update-Help
Source: PowerShellMagazine.com If you’ve updated PowerShell to version 3.0 you probably noticed that help is no longer shipped in the box. PowerShell 3.0 includes a new feature, the...
View ArticleI'm a Microsoft MVP... Again
It's that time of the year which feels like having a second birthday. I'm proud to announce that I was awarded the MVP title once again. This is my 6th year in a row as a PowerShell...
View Article