Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Add-Type   (RSS)

V2: Custom Enums

Once again MOW proves what a clever guy he is. Check out his blog entry PowerShell V2 CTP2: making Custom Enums using Add-Type . He shows how you can make your own enums using a very simple function he wrote (Add-Enum) which leverages our new Add-Type
Posted by PowerShellTeam | 2 Comments
Filed under:

Show-PowerShell / Hide-PowerShell

During the Week of WPF, someone requested an example of how to minimize the PowerShell window. Here's a quick module to make it happen.  Copy/paste the code below into Documents\WindowsPowerShell\Packages\PowerShell\PowerShell.psm1 $script:showWindowAsync
Posted by PowerShellTeam | 5 Comments
Filed under:

WPF & PowerShell – Part 1 ( Hello World & Welcome to the Week of WPF )

Welcome to the Week of WPF. During the next 7 days, I’ll help show you how you can use WPF and PowerShell together. PowerShell could always script almost everything in .NET, but, prior to the recent CTP2 you could not script Windows Presentation Foundation
 
Page view tracker