Oneline of Code to Setup WMF 5, PowerShell 5 and the DSCResourcekit Print E-mail
PowerShell
Written by Darwin Sanoy   
Saturday, March 28, 2015 1:27pm

It's true that you can download and install the WMF / PowerShell 5 preview, install it and then with PowerShell-Get, install whatever DSCResourcekit modules you want - or use a command to install them all.  But that takes too long for my ADD - especially when I need a multi-machine setup to try out the walk throughs in either of the excellent Microsoft Virtual Academy classes Getting Started With PowerShell Desired State Configuration DSC or Advanced PowerShell Desired State Configuration (DSC) and Custom Resources!

 

So I put together a oneliner that will do it for me (and you).

Very Cool: if my DSCResourcekit Chocolatey package detects you are on PowerShell 5, it uses PowerShell Get to grab the absolutely latest of everything tagged DSC Resource Kit.

Please remember this is not production software and as per the Microsoft installation notes it has known issues with SCCM 2012 and Small Business Server 2011.

On lab or test machines you will need to also set the PowerShell execution policy.

On Windows 8.1 or Server 2012 R2, in an elevated CMD or PowerShell prompt, paste in the following line (one line):

powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/CSI-Windowscom/Bootstraps/master/QuickConfigPowerShell5.ps1'))"

Keep an eye on this github repository for more quick configs ;)