Skip to content

Instantly share code, notes, and snippets.

@jamesallen-cm
Last active August 29, 2015 14:23
Show Gist options
  • Save jamesallen-cm/627f076abeea333f520b to your computer and use it in GitHub Desktop.
Save jamesallen-cm/627f076abeea333f520b to your computer and use it in GitHub Desktop.
February Preview DSCNodeBootstrap
$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