Last active
August 30, 2016 16:29
-
-
Save joeypiccola/3aedf43f1f8f53f1780c3fe60c17fb20 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
$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