Monthly Archives: October 2009

PowerShell – Find-PInvoke.ps1

I had a need to find all PInvokes in an assembly.  At first I thought about searching the source code since I had it but ran into various problems: Commented out PInvokes DLL names specified via constants [Updated: 11-02-2009] I decided … Continue reading

Posted in PowerShell 2.0 | 2 Comments

PowerShell 2.0 – Accessing Different Profiles

Just ran across a new feature of PowerShell 2.0 that is convenient.  Need the path to the various profile scripts on a system?  Try this: PS> $profile.psextended | Format-List AllUsersAllHosts       : C:\Windows\System32\WindowsPowerShell\v1.0\profile.ps1AllUsersCurrentHost    : C:\Windows\System32\WindowsPowerShell\v1.0\Microsoft.PowerShell_profile.ps1CurrentUserAllHosts    : C:\Users\Keith\Documents\WindowsPowerShell\profile.ps1CurrentUserCurrentHost : C:\Users\Keith\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 To access … Continue reading

Posted in PowerShell 2.0 | 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

Windows PowerShell 2.0 Virtual Launch Party

I’m relaying this invite from Hal & Jonathan – hosts of the PowerScripting Podcast. Windows isn’t just about the GUI. Starting with Windows 7, you have built-in access to PowerShell version 2, an object-oriented scripting language and command shell. Please … Continue reading

Posted in PowerShell | Leave a comment

Windows PowerShell 2.0 and Windows Troubleshooting Platform Presentation

Tonight I gave a presentation on the new features in Windows PowerShell 2.0.  I also demo how to create a Windows Troubleshooting Platform that is new in Windows 7.  WTP uses PowerShell scripts to do the heavy lifting of detecting … Continue reading

Posted in PowerShell | Leave a comment