• 27 Nov 2009

    PowerShell Dinner at TechEd Europe 2009

    Here are the pictures from PowerShell Dinner we had at Teched Europe 2009. The dinner was a great event thanks to our host Dmitry Sotnikov, the one and only Jeffrey Snover, amazing MVP guys, and a bunch of European PowerShellers. From PowerShell Dinner at TechEd Europe 2009 It was a great privilege to talk about PowerShell with fellow PowerShell addicts. And, let's not forget to...
    • 18 Oct 2009

    PowerShell V2: Meet New-Object's Property parameter

    I've stumbled upon blog post that talks about accessing remote registry, collecting "Automatic Update" configuration info and creating custom object to hold that data for further processing/formatting. The author has used Add-Member cmdlet to add quite a bunch of NoteProperties to the custom object. In PowerShell V2 we can do it in much cleaner way, with less typing, using new New-Object's Property parameter...
    • 3 May 2009

    What happened to a CustomMenu property?

    If you'd like to customize your Windows PowerShell ISE be prepared for some breaking changes in Windows PowerShell ISE that comes with Windows 7 RC (May I call it Windows PowerShell ISE RC?). In Windows PowerShell ISE CTP3 $psISE, custom host variable, has following properties: PS C:\> $psISE | gm -MemberType property TypeName: System.Management.Automation.Host.PSGHost Name MemberType Definition ---- ----...
    • 17 Feb 2009

    Get-Alias ?

    If you want to find the cmdlet "behind" the alias ? , command Get-Alias ? won't help you, because ? will be treated as a wildcard for a single character, and you will get all single-character aliases: PS>get-alias ? CommandType Name Definition ----------- - --- ---------- Alias % ForEach-Object Alias ? Where-Object Alias h Get-History Alias r Invoke-History To use ? as the literal value, you have to escape...
    • 6 Feb 2009

    Do you know the aliases for the New-Item cmdlet?

    I was playing with Doug Finke's extensions for PowerShell ISE (Integrated Scripting Environment), Expand-Alias and Expand-CurrentAlias , when I've noticed that mkdir doesn't expand and md expands to mkdir . Up until now I thought that mkdir and md are aliases for the New-Item cmdlet as rmdir and rd are the aliases for the Remove-Item cmdlet. In both PowerShell V1 and V2 CTP3: PS> get-alias | ? {$_.definition...
    • 9 Nov 2008

    -include and -exclude go together

    While reading James Brundage's blog post Microcode: Exploring More of .NET with Get-Assembly , I have spotted a rather unnecessary complicated part of a code: Get-ChildItem ( Join-Path $env:Windir "Assembly" ) -recurse - filter "*.dll" | Where-Object { ! $_ . Name.Substring (0, $_ . Name.IndexOf ( $_ . Extension )). EndsWith ( ".ni" ) } The goal was to remove from the list...
    • 6 Oct 2008

    An interview with Tobias Weltner

    For those of you who have missed it when it was broadcasted live , new episode of famous PowerScripting Podcast is online and ready for listening. In this episode Tobias Weltner gives an inside look at PowerShellPlus Professional Edition . Hal Rottenberg and Jonathan Walz had a bag full of great questions (with a nice contribution from the guys in the ustream.tv chat room) and it seems that Tobias was more than willing...