Author | Chrissy LeMaire (@cl), netnerds.net |
Availability | Windows, Linux, macOS |
Want to see the source code for this command? Check out Save-DbaKbUpdate on GitHub.
Want to see the Bill Of Health for this command? Check out Save-DbaKbUpdate.
Downloads patches from Microsoft
Downloads patches from Microsoft
Save-DbaKbUpdate
[[-Name] <String[]>]
[[-Path] <String>]
[[-FilePath] <String>]
[[-Architecture] <String>]
[[-Language] <String>]
[[-InputObject] <Object[]>]
[-EnableException]
[<CommonParameters>]
PS C:\> Save-DbaKbUpdate -Name KB4057119
Downloads KB4057119 to the current directory. This works for SQL Server or any other KB.
PS C:\> Get-DbaKbUpdate -Name KB4057119 -Simple | Out-GridView -Passthru | Save-DbaKbUpdate
Downloads the selected files from KB4057119 to the current directory.
PS C:\> Save-DbaKbUpdate -Name KB4057119, 4057114 -Path C:\temp
Downloads KB4057119 and the x64 version of KB4057114 to C:\temp. This works for SQL Server or any other KB.
PS C:\> Save-DbaKbUpdate -Name KB4057114 -Architecture All -Path C:\temp
Downloads the x64 version of KB4057114 and the x86 version of KB4057114 to C:\temp. This works for SQL Server or any other KB.
PS C:\> Save-DbaKbUpdate -Name KB5003279 -Language enu -Path C:\temp
Downloads only the english version of KB5003279, which is the Service Pack 3 for SQL Server 2016, to C:\temp.
The KB name or number. For example, KB4057119 or 4057119.
Alias | |
Required | False |
Pipeline | false |
Default Value |
The directory to save the file.
Alias | |
Required | False |
Pipeline | false |
Default Value | . |
The exact file name to save to, otherwise, it uses the name given by the webserver
Alias | |
Required | False |
Pipeline | false |
Default Value |
Defaults to x64. Can be x64, x86, ia64 or "All"
Alias | |
Required | False |
Pipeline | false |
Default Value | x64 |
Accepted Values | x64,x86,ia64,All |
Cumulative Updates come in one file for all languages, but Service Packs have a file for every language.
If you want to download only a specific language, use this parameter.
You have to use the three letter code that is part of the filename, e. g. "enu" for english or "deu" for german.
Alias | |
Required | False |
Pipeline | false |
Default Value |
Enables piping from Get-DbaKbUpdate
Alias | |
Required | False |
Pipeline | true (ByValue) |
Default Value |
By default, when something goes wrong we try to catch it, interpret it and give you a friendly warning message.
This avoids overwhelming you with "sea of red" exceptions, but is inconvenient because it basically disables advanced scripting.
Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch.
Alias | |
Required | False |
Pipeline | false |
Default Value | False |