commands

^

Save-DbaKbUpdate

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.

Synopsis

Downloads patches from Microsoft

Description

Downloads patches from Microsoft

Syntax

Save-DbaKbUpdate
    [[-Name] <String[]>]
    [[-Path] <String>]
    [[-FilePath] <String>]
    [[-Architecture] <String>]
    [[-Language] <String>]
    [[-InputObject] <Object[]>]
    [-EnableException]
    [<CommonParameters>]

 

Examples

 

Example: 1
PS C:\> Save-DbaKbUpdate -Name KB4057119

Downloads KB4057119 to the current directory. This works for SQL Server or any other KB.

Example: 2
PS C:\> Get-DbaKbUpdate -Name KB4057119 -Simple | Out-GridView -Passthru | Save-DbaKbUpdate

Downloads the selected files from KB4057119 to the current directory.

Example: 3
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.

Example: 4
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.

Example: 5
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.

Optional Parameters

-Name

The KB name or number. For example, KB4057119 or 4057119.

Alias
Required False
Pipeline false
Default Value
-Path

The directory to save the file.

Alias
Required False
Pipeline false
Default Value .
-FilePath

The exact file name to save to, otherwise, it uses the name given by the webserver

Alias
Required False
Pipeline false
Default Value
-Architecture

Defaults to x64. Can be x64, x86, ia64 or "All"

Alias
Required False
Pipeline false
Default Value x64
Accepted Values x64,x86,ia64,All
-Language

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
-InputObject

Enables piping from Get-DbaKbUpdate

Alias
Required False
Pipeline true (ByValue)
Default Value
-EnableException

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