New features introduced in Windows Management Framework 5.0 Preview September 2014

Windows Management Framework 5.0 Preview September 2014 was released on September 4.

An overview of new features added since the May 2014 Preview is listed in the announcement on the Windows PowerShell Team blog, while additional details are available in the release notes.

There are also some new features not mentioned in the release notes, which we will look at in this article.

Remote File Editing in PowerShell ISE

This feature allows us to edit remote files via PowerShell remoting from the PowerShell ISE.

To use Remote File Editing, open a new PSSession using Enter-PSSession and type PSEdit <path to a file>. Here is an example:

WMF5_Preview_2014_Sept_PSEdit

We can see that the file we’re editing is actually temporary stored in the local AppData folder:

WMF5_Preview_2014_Sept_PSEdit_path

Looking at the contents of the PSEdit function, we can see that the file content is retrieved in byte format before it’s brought back and forth between the local ISE session and the remote PS session:

WMF5_Preview_2014_Sept_PSEdit_definition

This can be a very useful feature for working with remote files, especially against Server Core.

 

Throttling in Desired State Configuration

A new –ThrottleLimit parameter is introduced for 10 commands in the PSDesiredStatedConfiguration module:

WMF5_Preview_2014_Sept_DSC_ThrottleLimit

This parameter enables control over how many nodes to process concurrently; a very useful feature when working with a large number of DSC clients.

Start-Transcript support in PowerShell ISE

WMF5_Preview_2014_Sept_Start-Transcript_help

Historically the Start-Transcript cmdlet has been supported in the PowerShell Console Host only. If you try to use it in a PowerShell ISE version prior to “5.0 Preview September 2014” you will be presented with the message “This host does not support transcription”.

Introduced in the Windows Management Framework 5.0 Preview September 2014, Start-Transcript works in the PowerShell ISE:

WMF5_Preview_2014_Sept_Start-Transcript

Improvements in COM object performance

Major performance improvements for working with COM objects is introduced in this release. PowerShell team member Lee Holmes has published a video demonstrating the improvement.

About the author: Jan Egil Ring

Jan Egil works as a Lead Architect at Crayon, Norway. He mainly works with automation, and has a strong passion for PowerShell. He has been working with Microsoft infrastructure products such as Windows Server & System Center since the early 2000s. In the recent years the focus has been more and more related to cloud technologies in Microsoft Azure and hybrid environments. He is a multiple-year recipient of Microsoft Most Valuable Professional Award for his contributions in the Windows PowerShell and Cloud & Datacenter Management technical communities. He speaks regularly at user groups and conferences, such as Nordic Infrastructure Conference (NIC), PowerShell Conference Europe and PowerShell Summit. He is a co-organizer of Azure User Group Norway as well as the MTUG (Microsoft Technology User Group) Script Club which focuses mainly on PowerShell. You can follow him on Twitter @JanEgilRing.

Related Posts