Last active
August 29, 2015 14:23
-
-
Save jamesallen-cm/f84797c8a2294203b205 to your computer and use it in GitHub Desktop.
Run this on a Pull Client to install WMF 5.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$Boxstarter.RebootOk=$true | |
# enable psremoting | |
Write-Output "Enabling PSRemoting" | |
Enable-PSRemoting -Force | |
if($PSVersionTable.PSVersion -lt (New-Object 'Version' 5,0,10105,0)) | |
{ | |
# install WMF5.0 February and April | |
cinst powershell -version 5.0.10018-February2015Preview -pre -y | |
# Write-Output "Installing the April 2015 Powershell DSC preview" | |
# cinst powershell -pre -y | |
Write-Output "Restarting to complete installation" | |
Invoke-Reboot | |
} | |
else | |
{ | |
Write-output "Load nuget-anycpu.exe" | |
Get-PackageProvider -Name NuGet -ForceBootstrap | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment