Last active
August 29, 2015 14:23
-
-
Save jamesallen-cm/627f076abeea333f520b to your computer and use it in GitHub Desktop.
February Preview DSCNodeBootstrap
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 | |
# manage updates from powershell | |
cinst pswindowsupdate -y | |
if($PSVersionTable.PSVersion -lt (New-Object 'Version' 5,0,10018,0)) | |
{ | |
# install WMF5.0 February | |
cinst powershell -version 5.0.10018-February2015Preview -pre -y | |
Write-Output "Restarting to complete installation" | |
Invoke-Reboot | |
} | |
else | |
{ | |
Write-output "Load nuget-anycpu.exe" | |
Get-PackageProvider -Name NuGet -ForceBootstrap | |
} | |
# install KB2883200 | |
# install KB3037315 | |
$KBList = "KB2883200", "KB3037315" | |
Get-WUInstall -Type "Software" -KBArticleID $KBList -AcceptAll |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment