Skip to content

Instantly share code, notes, and snippets.

@joeypiccola
Last active August 30, 2016 16:29
Show Gist options
  • Save joeypiccola/3aedf43f1f8f53f1780c3fe60c17fb20 to your computer and use it in GitHub Desktop.
Save joeypiccola/3aedf43f1f8f53f1780c3fe60c17fb20 to your computer and use it in GitHub Desktop.
$url = 'https://download.microsoft.com/download/2/C/6/2C6E1B4A-EBE5-48A6-B225-2D2058A9CEFB/Win8.1AndW2K12R2-KB3134758-x64.msu'
$file = Split-Path $url -Leaf
$path = "C:\Windows\Temp\$file"
$wc = New-Object System.Net.WebClient
$wc.DownloadFile($url,$path)
Invoke-Expression -Command "wusa.exe $path /quiet /norestart"
sleep -seconds 180
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment