< Back
Install-DbaFirstResponderKit
Post
NAME Install-DbaFirstResponderKit
SYNOPSIS
Installs or updates the First Responder Kit stored procedures.
SYNTAX
Install-DbaFirstResponderKit [-SqlInstance] <Sqlcollaborative.Dbatools.Parameter.DbaInstanceParameter[]>
[[-SqlCredential] <Pscredential>] [[-Branch] <String>] [[-Database] <System.Object>] [[-LocalFile] <String>]
[-Force <Switch>] [-EnableException <Switch>] [<CommonParameters>]
DESCRIPTION
Downloads, extracts and installs the First Responder Kit stored procedures:
sp_Blitz, sp_BlitzWho, sp_BlitzFirst, sp_BlitzIndex, sp_BlitzCache and sp_BlitzTrace, etc.
First Responder Kit links:
http://FirstResponderKit.org
https://github.com/BrentOzarULTD/SQL-Se ... ponder-Kit
PARAMETERS
-Branch [<String>]
Specifies an alternate branch of the First Responder Kit to install. (master or dev)
Required? false
Position? named
Default value
Accept pipeline input? False
Accept wildcard characters? false
-Database [<System.Object>]
Specifies the database to instal the First Responder Kit stored procedures into
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
-Force [<Switch>]
If this switch is enabled, the FRK will be downloaded from the internet even if previously cached.
Required? false
Position? named
Default value
Accept pipeline input? False
Accept wildcard characters? false
-LocalFile [<String>]
Specifies the path to a local file to install FRK from. This *should* be the zip file as distributed by the
maintainers.
If this parameter is not specified, the latest version will be downloaded and installed from
https://github.com/BrentOzarULTD/SQL-Se ... ponder-Kit
Required? false
Position? named
Default value
Accept pipeline input? False
Accept wildcard characters? false
-SqlCredential [<Pscredential>]
Login to the target instance using alternative credentials. Accepts PowerShell credentials (Get-Credential).
Windows Authentication, SQL Server Authentication, Active Directory - Password, and Active Directory -
Integrated are all supported.
For MFA support, please use Connect-DbaInstance.
Required? false
Position? named
Default value
Accept pipeline input? False
Accept wildcard characters? false
-SqlInstance [<Sqlcollaborative.Dbatools.Parameter.DbaInstanceParameter[]>]
The target SQL Server instance or instances.
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: Community, FirstResponderKit
Author: Tara Kizer, Brent Ozar Unlimited (https://www.brentozar.com/)
Website: https://dbatools.io
Copyright: (c) 2018 by dbatools, licensed under MIT
License: MIT https://opensource.org/licenses/MIT
https://www.brentozar.com/responder
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Install-DbaFirstResponderKit -SqlInstance server1 -Database master
Logs into server1 with Windows authentication and then installs the FRK in the master database.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Install-DbaFirstResponderKit -SqlInstance server1\\instance1 -Database DBA
Logs into server1\\instance1 with Windows authentication and then installs the FRK in the DBA database.
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Install-DbaFirstResponderKit -SqlInstance server1\\instance1 -Database master -SqlCredential $cred
Logs into server1\\instance1 with SQL authentication and then installs the FRK in the master database.
-------------------------- EXAMPLE 4 --------------------------
PS C:\\>Install-DbaFirstResponderKit -SqlInstance sql2016\\standardrtm, sql2016\\sqlexpress, sql2014
Logs into sql2016\\standardrtm, sql2016\\sqlexpress and sql2014 with Windows authentication and then installs the
FRK in the master database.
-------------------------- EXAMPLE 5 --------------------------
PS C:\\>$servers = "sql2016\\standardrtm", "sql2016\\sqlexpress", "sql2014"
PS C:\\> $servers | Install-DbaFirstResponderKit
Logs into sql2016\\standardrtm, sql2016\\sqlexpress and sql2014 with Windows authentication and then installs the
FRK in the master database.
-------------------------- EXAMPLE 6 --------------------------
PS C:\\>Install-DbaFirstResponderKit -SqlInstance sql2016 -Branch dev
Installs the dev branch version of the FRK in the master database on sql2016 instance.
RELATED LINKS
https://dbatools.io/Install-DbaFirstResponderKit
SYNOPSIS
Installs or updates the First Responder Kit stored procedures.
SYNTAX
Install-DbaFirstResponderKit [-SqlInstance] <Sqlcollaborative.Dbatools.Parameter.DbaInstanceParameter[]>
[[-SqlCredential] <Pscredential>] [[-Branch] <String>] [[-Database] <System.Object>] [[-LocalFile] <String>]
[-Force <Switch>] [-EnableException <Switch>] [<CommonParameters>]
DESCRIPTION
Downloads, extracts and installs the First Responder Kit stored procedures:
sp_Blitz, sp_BlitzWho, sp_BlitzFirst, sp_BlitzIndex, sp_BlitzCache and sp_BlitzTrace, etc.
First Responder Kit links:
http://FirstResponderKit.org
https://github.com/BrentOzarULTD/SQL-Se ... ponder-Kit
PARAMETERS
-Branch [<String>]
Specifies an alternate branch of the First Responder Kit to install. (master or dev)
Required? false
Position? named
Default value
Accept pipeline input? False
Accept wildcard characters? false
-Database [<System.Object>]
Specifies the database to instal the First Responder Kit stored procedures into
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
-Force [<Switch>]
If this switch is enabled, the FRK will be downloaded from the internet even if previously cached.
Required? false
Position? named
Default value
Accept pipeline input? False
Accept wildcard characters? false
-LocalFile [<String>]
Specifies the path to a local file to install FRK from. This *should* be the zip file as distributed by the
maintainers.
If this parameter is not specified, the latest version will be downloaded and installed from
https://github.com/BrentOzarULTD/SQL-Se ... ponder-Kit
Required? false
Position? named
Default value
Accept pipeline input? False
Accept wildcard characters? false
-SqlCredential [<Pscredential>]
Login to the target instance using alternative credentials. Accepts PowerShell credentials (Get-Credential).
Windows Authentication, SQL Server Authentication, Active Directory - Password, and Active Directory -
Integrated are all supported.
For MFA support, please use Connect-DbaInstance.
Required? false
Position? named
Default value
Accept pipeline input? False
Accept wildcard characters? false
-SqlInstance [<Sqlcollaborative.Dbatools.Parameter.DbaInstanceParameter[]>]
The target SQL Server instance or instances.
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: Community, FirstResponderKit
Author: Tara Kizer, Brent Ozar Unlimited (https://www.brentozar.com/)
Website: https://dbatools.io
Copyright: (c) 2018 by dbatools, licensed under MIT
License: MIT https://opensource.org/licenses/MIT
https://www.brentozar.com/responder
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Install-DbaFirstResponderKit -SqlInstance server1 -Database master
Logs into server1 with Windows authentication and then installs the FRK in the master database.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Install-DbaFirstResponderKit -SqlInstance server1\\instance1 -Database DBA
Logs into server1\\instance1 with Windows authentication and then installs the FRK in the DBA database.
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Install-DbaFirstResponderKit -SqlInstance server1\\instance1 -Database master -SqlCredential $cred
Logs into server1\\instance1 with SQL authentication and then installs the FRK in the master database.
-------------------------- EXAMPLE 4 --------------------------
PS C:\\>Install-DbaFirstResponderKit -SqlInstance sql2016\\standardrtm, sql2016\\sqlexpress, sql2014
Logs into sql2016\\standardrtm, sql2016\\sqlexpress and sql2014 with Windows authentication and then installs the
FRK in the master database.
-------------------------- EXAMPLE 5 --------------------------
PS C:\\>$servers = "sql2016\\standardrtm", "sql2016\\sqlexpress", "sql2014"
PS C:\\> $servers | Install-DbaFirstResponderKit
Logs into sql2016\\standardrtm, sql2016\\sqlexpress and sql2014 with Windows authentication and then installs the
FRK in the master database.
-------------------------- EXAMPLE 6 --------------------------
PS C:\\>Install-DbaFirstResponderKit -SqlInstance sql2016 -Branch dev
Installs the dev branch version of the FRK in the master database on sql2016 instance.
RELATED LINKS
https://dbatools.io/Install-DbaFirstResponderKit