Category Archives: PowerShell

Using 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 the morning … Continue reading

Posted in PowerShell | 1 Comment

PowerShell 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 requires administrative privilege then that script will … Continue reading

Posted in PowerShell | 8 Comments

Microsoft 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 … Continue reading

Posted in PowerShell, PowerShell 3.0 | 2 Comments

PSCX 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 of bug fixes in this drop: … Continue reading

Posted in PowerShell, PowerShell 3.0, PSCX | 1 Comment

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 about everything being NDA, NDA, … Continue reading

Posted in PowerShell | Leave a comment

Determining $ScriptDir Safely

We had some boiler plate code that we always put into our scripts to set strict mode and to compute $ScriptDir so the script can load other scripts relatively to its location.  This boiler plate code is simple: #requires –Version … Continue reading

Posted in PowerShell | 6 Comments

Handling Native EXE Output Encoding in UTF8 with No BOM

If you are dealing with an native executable that outputs UTF8 with no BOM (byte order marker) you will find that PowerShell garbles the input.  This is most likely an issue with how the .NET console code interprets the incoming … Continue reading

Posted in PowerShell | 2 Comments

Windows PowerShell MVP Award for 2010

Just got the notice today.  Woohoo!  I expect 2010 to be a banner year for PowerShell as Windows 7 spreads PowerShell out to more folks than ever before and as usual, I’ll do what I can to help folks grok … Continue reading

Posted in PowerShell | Leave a comment

Windows PowerShell 2.0 String Localization

One of the lesser known features in PowerShell 2.0 is that it supports string localization and pretty simply I might add.  Now for most developers and admins script localization probably isn’t going to be something you’ll worry about.  However if … Continue reading

Posted in PowerShell | 4 Comments

It’s Official – Windows 7 and Windows PowerShell 2.0 for Everyone!

Congratulations to the Windows and Windows PowerShell teams for two very excellent releases.  I’ve been using Windows 7 daily since January’s beta release and PowerShell 2.0 drops for even longer.  Both products are destined to be smash hits in my … Continue reading

Posted in PowerShell | Leave a comment