Created
April 7, 2016 13:23
-
-
Save mwrock/cec683d103d0fd45e142d64184227ab9 to your computer and use it in GitHub Desktop.
wmf5 in packer
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
| if ($PSVersionTable.PSVersion.Major -le 4) | |
| { | |
| invoke-webrequest "https://download.microsoft.com/download/2/C/6/2C6E1B4A-EBE5-48A6-B225-2D2058A9CEFB/Win8.1AndW2K12R2-KB3134758-x64.msu" -outfile c:\wmf5.msu | |
| start-process wusa -ArgumentList "c:\wmf5.msu", "/quiet", "/norestart" -wait | |
| if(test-path c:\wmf5.msu){remove-item c:\wmf5.msu} | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment