Install-DbaFirstResponderKit

  • Good morning all

    Who can help me please find a solution to install Install- DbaFirstResponderKit

    attached the error message that appears during the installation operation (see screen print)

    thanks for your help

    $servers=Get-Content C:\BACKUP\server.txt
    $database = 'maintenance'
    foreach($server in $servers)
    {

    $server = New-Object Microsoft.SqlServer.Management.Smo.Server -ArgumentList $server

    $dbcheck = $server.Databases | Where-Object { $_.Name -eq $database }

    if ($null -eq $dbcheck){
    $db = New-Object -TypeName Microsoft.SqlServer.Management.Smo.Database -Argumentlist $server, $database
    $db.Create()
    }
    Else {
    Install-DbaWhoIsActive -SqlInstance $server -database $database
    Install-DbaFirstResponderKit -SqlInstance $server -Database $database
    Install-DbaSqlWatch -SqlInstance $server
    Install-DbaMaintenanceSolution -SqlInstance $server -Database $database -ReplaceExisting

    }

    }

    Sans titre

    Attachments:
    You must be logged in to view attached files.
  • What version of DBATools do you have installed?

    Should be 1.0.114, you should be keeping this up to date.

    With everything that's going on with the BLM movement, terms like master have been renamed to main, so you need to either update DBATools to pick up these changes or go and change the PS1 file for the function to be $branch = "main" instead of $branch = "master" and modify the validation string above it also.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply