commands

^

Save-DbaKbUpdate

Author Chrissy LeMaire (@cl), netnerds.net
Availability Windows, Linux, macOS

 

Synopsis

Downloads patches from Microsoft

Description

Downloads patches from Microsoft

Syntax

Save-DbaKbUpdate
    [[-Name] <String[]>]
    [[-Path] <String>]
    [[-FilePath] <String>]
    [[-Architecture] <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.

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

 

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.