< Back

Save-DbaKbUpdate

Mon Jan 13, 2020 1:39 pm

NAME Save-DbaKbUpdate



SYNOPSIS

Downloads patches from Microsoft





SYNTAX

Save-DbaKbUpdate [[-Name] <System.String[]>] [[-Path] <String>] [[-FilePath] <String>] [[-Architecture] <String>]

[[-InputObject] <Psobject>] [-EnableException <Switch>] [<CommonParameters>]





DESCRIPTION

Downloads patches from Microsoft





PARAMETERS

-Architecture [<String>]

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



Required? false

Position? named

Default value

Accept pipeline input? False

Accept wildcard characters? false



-EnableException [<Switch>]

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.



Required? false

Position? named

Default value

Accept pipeline input? False

Accept wildcard characters? false



-FilePath [<String>]

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



Required? false

Position? named

Default value

Accept pipeline input? False

Accept wildcard characters? false



-InputObject [<Psobject>]

Enables piping from Get-DbaKbUpdate



Required? false

Position? named

Default value

Accept pipeline input? False

Accept wildcard characters? false



-Name [<System.String[]>]

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



Required? false

Position? named

Default value

Accept pipeline input? False

Accept wildcard characters? false



-Path [<String>]

The directory to save the file.



Required? false

Position? named

Default value

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES





Tags: Update

Author: Chrissy LeMaire (@cl), netnerds.net



Website: https://dbatools.io

Copyright: (c) 2018 by dbatools, licensed under MIT

License: MIT https://opensource.org/licenses/MIT



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



RELATED LINKS

https://dbatools.io/Save-DbaKbUpdate