Windows PowerShell 5.0

What’s New In PowerShell 5.0Windows PowerShell 5 Version

Windows Server 2012 R2 introduced the notion of Desired State Configuration (DSC), PowerShell 5.0 advances this concept through OneGet.  The holy grail is to simplify discovering and installing software on your Windows computer.

PowerShell 5.0 New Features

 ♦

Windows PowerShell OneGet Windows PowerShell 5.0 OneGet

OneGet is a new module which way to discover and install one of the hundreds of software packages from the Chocolatey repository.

Chocolatey is a package manager for Windows. It's mission to be a framework for installing applications and tools that you need for a Windows computer. It uses PowerShell to deliver packages built on the NuGet (Visual Studio)infrastructure.

Thanks to OneGet you can:

  • List and manage software repositories for packages that can be installed
  • Search and filter your repositories
  • Install (and uninstall) packages from the repositories using PowerShell
  • Get started with the command: Import-Module -Name OneGet.

There are also cmdlets for automating VLANs and ethernet ports.  It is reassuring that only network switches that pass the Certified for Windows program, can be controlled with the network switches cmdlets.

# PowerShell 5.0 OneGet
Get-Command -Module OneGet

Tip 1: Try Get-PackageSource, and check if a source is TRUSTED.

# PowerShell 5.0 OneGet
Find-Package -Name xyz 

Tip 2: Once you have confirmed your package, | pipe into Install-Package.

Windows Management Framework 5.0

  • Contains updates for Windows PowerShell and Windows PowerShell ISE.
  • Package Management cmdlets.
  • Network Switch cmdlets.
  • Windows PowerShell Desired State Configuration (DSC)

PowerShell's Desired State Configuration (DSC) is rather like a function, but instead of scripting a 'Process', you specify Nodes and Resource blocks. 

Get your copy of Windows Management Framework 5.0 from Microsoft's download centre.

Note 1: You will need .NET Framework 4.5.
Note 2: As usual, don't test on a production machine, especially if it's running Exchange Server.

Supported Operating System

  • Windows 7
  •  Windows 8.1
  •  Windows Server 2008 R2
  • Windows Server 2012
  •  Windows Server 2012 R2

To uninstall Windows Management Framework 5.0:
Navigate to the Control Panel\Programs\Programs and Features\Uninstall a program.  You are looking for Windows Management Framework 5.0. 

Guy Recommends:  A Free Trial of the Network Performance Monitor (NPM)Review of Orion NPM v11.5 v11.5

SolarWinds’ Network Performance Monitor will help you discover what’s happening on your network.  This utility will also guide you through troubleshooting; the dashboard will indicate whether the root cause is a broken link, faulty equipment or resource overload.

What I like best is the way NPM suggests solutions to network problems.  Its also has the ability to monitor the health of individual VMware virtual machines.  If you are interested in troubleshooting, and creating network maps, then I recommend that you try NPM now.

Download a free trial of Solarwinds’ Network Performance Monitor

Check Your Version of PowerShell with $Host

Here is simple command to check your version of Windows PowerShell.

# Windows PowerShell Version Check
Clear-Host
$Host

Name: 			Windows PowerShell ISE Host
Version: 5.0 InstanceId: d36fdafd-f9e9-4642-bc85-6dea29105f61
UI: System.Management.Automation. Internal.Host.InternalHostUserInterface
CurrentCulture: en-GB
CurrentUICulture: en-US
PrivateData: Microsoft.PowerShell.Host.ISE.ISEOptions
IsRunspacePushed: FalseRunspace: System.Management.Automation. Runspaces.LocalRunspace

What was new in PowerShell 4.0 »

Summary of PowerShell 4.0

PowerShell's OneGet provides a package management solution for the Windows platform.

 

If you like this page then please share it with your friends

 


See more Windows PowerShell sections

PowerShell Home   • Introduction  • Dreams   • 3 Key Commands   • Free Permissions Analyzer

PowerShell Real-life Examples   • PowerShell Techniques   • PowerShell Syntax   • Contact

PowerShell ISE  • PowerShell 2.0   • PowerShell v 3.0   • PowerShell v 4.0   • PowerShell v 4.0

Please email me if you have a better example script. Also please report any factual mistakes, grammatical errors or broken links, I will be happy to correct the fault.