Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » PowerShell   (RSS)

Peering into script modules

Sometimes it’s handy to access internal elements of script modules. For instance you may be using a 3rd party module in your application and would like to see the internal state for debugging purposes. This can be accomplished with the invoke operator
Posted by PowerShellTeam | 1 Comments
Filed under: ,

Differences between the ISE and PowerShell console

Here is a collection of differences between the PowerShell_ise.exe and PowerShell.exe, as well as workarounds and suggestion if you need them (assuming we have them :)) Limited support for interactive console apps, try cmd.exe, then try cmd.exe /k cmd.exe

Some WMI instances can have their first method call fail and get-member not work in PowerShell V1

Due to a problem retrieving the available methods in V1 that we have worked around for the upcoming version of PowerShell, you might experience that the first method call to a WMI object fails with a message that mentions: Exception calling GetType()
Posted by PowerShellTeam | 6 Comments
Filed under: ,

Speeding Up PowerShell Startup

I talked about this before but a number of people have missed it so here it is under a better title. In V1, we had a problem which caused our assemblies to not get ngen'ed during installation. If you don't know what "ngen" is, don't worry - you don't
Posted by PowerShellTeam | 16 Comments
Filed under: ,

Bash vs PowerShell

Marcus Nasarek did a nice comparison of Bash vs PowerShell in Linux magazine HERE . It is only 2 pages but he covers the key elements and has been very fair to it. I appreciate the fact that he took the time to clearly understand PowerShell. In the past,
Posted by PowerShellTeam | 29 Comments
Filed under: ,

WPF & PowerShell - Part 7 (Sharing Hosts)

Well here we are at the end of a week of WPF.  We've learned how to create basic, simple user interactive interfaces.  We've seen a brief glimmer of the golden UI layer that is WPF, and have seen how we can use PowerShell to add easy interactivity
Posted by PowerShellTeam | 3 Comments
Filed under: ,

WPF & PowerShell - Part 5 ( Using WPF & PowerShell Modules)

In the last post we met XAML, and I gave you a core function (Show-Control) that will help you make interactive WPF controls quite nicely in PowerShell. You can see that, by using Show-Control, it is possible to reduce the size and complexity of a script
Posted by PowerShellTeam | 2 Comments
Filed under: ,

Attachment(s): Show-ControlAndGet-Listbox.zip

PowerShell and WPF: WTF

A number of people are confused by the WPF/PowerShell series and are "asking WTF?". Aaron has a blog entry, WPF and PowerShell Series - I don't get it . Caywen left a comment on the first in posting saying, "Ugh, I could make a peanut butter and squid
Posted by PowerShellTeam | 9 Comments
Filed under: , , ,

WPF & PowerShell -- Part 4 (XAML & Show-Control)

We're not halfway through our week of WPF, and I'm pretty sure at this point that you have an all right grounding in the basics of WPF & PowerShell, but so far, the scripts haven't really been very much like most PowerShell scripts, and the UIs have
Posted by PowerShellTeam | 7 Comments
Filed under: , ,

WPF & PowerShell -- Part 3 (Handling Events)

So far, most of the wpf and powershell scripts you have seen have seen just show you something, but don’t do anything that interactive. However, In order to make real applications you need to be able to handle events. Luckily, PowerShell can make
Posted by PowerShellTeam | 2 Comments
Filed under: , ,

WPF & PowerShell – Part 2 (Exploring WPF (and the rest of .NET) with Scripts)

In my previous post, I showed you how to create “Hello World” scripts using Windows Presentation Foundation (WPF) and Windows PowerShell. While “Hello World” is relatively easy to write with WPF, it is only the tip of the iceberg of the types of quick

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