MVP Summit 2011
Testing out my first WordPress blog post after the switch from Windows Live Spaces (sniff, I will miss you) to WordPress. Regarding the MVP Summit last week, I can’t really talk about much due to just...
View ArticlePSCX 2.1 Beta 1 Available for Download
I just uploaded beta 1 for the PowerShell Community Extensions version 2.1. This beta drop adds better support for Windows PowerShell V3 that is in the Windows 8 Developer Preview. There are a number...
View ArticleWindows PowerShell Version 3 Simplified Syntax
Windows PowerShell version 3 introduces a simplified syntax for the Where-Object and Foreach-Object cmdlets. The simplified syntax shown below, eliminates the curly braces as well as the need for the...
View ArticleMicrosoft Windows PowerShell V3 CTP2 Available for Download
You can grab the bits from here. If you have V3 CTP1 installed, please uninstall it first or you can get your machine into a bad state. So far my favorite two features new to this drop are both in the...
View ArticlePowerShell V3 CTP2 Provides Better Argument Passing to EXEs
Within PowerShell it has always been easy to pass “simple” arguments to an EXE e.g.: C:\PS> ipconfig -all However passing arguments to certain exes can become surprising difficult when their command...
View ArticlePowerShell V3 Beta–Better NTFS Alternate Data Stream Handling
One of the many new features in Windows PowerShell V3 is better support for alternate data streams (ADS) in NTFS files. ADS allows an NTFS file to contain additional data that is not part of the...
View ArticlePowerShell V3 – ObsoleteAttribute
PowerShell V3 now supports the ObsoleteAttribute for compiled cmdlets but unfortunately not advanced functions. This is handy to let your users know that a binary cmdlet will be going away in a future...
View ArticlePSCX 3.0 Beta Released
We’ve just released a beta of the PowerShell Community Extensions 3.0 which targets PowerShell 3.0 specifically. This new version uses a WiX based installer. We may look at providing an xcopy...
View ArticlePSCX 2.1 and 3.0 Release Candidates Posted
Oisin and I have been busy prepping the PowerShell Community Extensions to support Windows PowerShell 3.0. With this release, we are providing two packages. There is a Pscx-2.1.0-RC.zip that is xcopy...
View ArticlePowerShell Script that Relaunches as Admin
If were following good security practices we run our Windows system with UAC enabled. This means that if you forget to launch your PowerShell prompt as Administrator when you run a script that...
View ArticleUsing PowerShell to Analyze Your PC’s Sleep & Wake Behavior
I have some older hardware running Windows 7 Media Center. Normally we let the Media Center just go to sleep on its own but I’ve been concerned that it isn’t sleeping as much during there wee hours of...
View ArticlePowerShell V4 – PipelineVariable Common Parameter
The big new feature in Windows PowerShell 4.0 is Desired State Configuration however there are a number of other minor features one of which is a new common parameter called PipelineVariable. This...
View ArticleUsing PowerShell to Modify DCOM Launch & Activation Settings
A few weeks ago I had the need to customize DCOM launch & activation permissions for a COM component. I came up with this hack, er script, that I thought I would share “as-is”. If anybody wants...
View ArticleCalling WinRT Async Methods from Windows PowerShell
Windows 8 introduced a new API for modern applications called the Windows Runtime API or WinRT API for short. One of the hallmarks of this API is that it eschews synchronous methods for any method...
View ArticlePowerShell Community Extensions 3.1.0 Released
We released a minor update to PSCX that adds support for Windows PowerShell 4.0 in addition to its support for PowerShell 3.0. You can grab the updated bits for your shiny new Windows 8.1 or WMF 4.0...
View ArticlePSReadLine: A Better Line Editing Experience for the PowerShell Console
When Windows PowerShell 3.0 shipped, the team created an extensibility mechanism to allow a third party to “take over” the line editing experience. That hook is a function called PSConsoleHostReadline...
View ArticlePowerShell Tidbit: Capturing a ScreenShot with PowerShell
This is a crude approach but works for capturing the main window of an application who’s process object you can find –typically via Get-Process. If you run this script from PowerShell.exe or...
View ArticlePowerShell 4.0 Now Available
You can get PowerShell 4.0 for down level operating systems now via the WMF 4.0 download. NOTE: Be sure you have .NET 4.5 installed *before* you install WMF 4.0. For various reasons, the WMF 4.0...
View ArticleHow to Determine if a Process is 32 or 64 Bit
Your first instinct might be to check [IntPtr]::Size but that only works for the current PowerShell process. In this scenario you want to check any arbitrary process running on the machine. There...
View Article