Get‑SqlDscSetupLog - dsccommunity/SqlServerDsc GitHub Wiki

SYNOPSIS

Get SQL Server setup bootstrap log.

SYNTAX

Get-SqlDscSetupLog [[-Path] <String>] [<CommonParameters>]

DESCRIPTION

This command retrieves the SQL Server setup bootstrap log (Summary.txt) from the most recent setup operation. The log is typically located in the Setup Bootstrap\Log directory under the SQL Server installation path.

This command is useful for diagnosing SQL Server setup failures or understanding what occurred during the installation, upgrade, or rebuild operations.

EXAMPLES

EXAMPLE 1

Get-SqlDscSetupLog

Retrieves the most recent SQL Server setup log from the default location.

EXAMPLE 2

Get-SqlDscSetupLog -Path 'D:\SQLServer'

Retrieves the most recent SQL Server setup log from a custom installation path.

EXAMPLE 3

Get-SqlDscSetupLog -Verbose | Select-String -Pattern 'Error'

Retrieves the setup log and filters for lines containing 'Error'.

PARAMETERS

-Path

Specifies the root SQL Server installation path to search for the setup log file. Defaults to 'C:\Program Files\Microsoft SQL Server'.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: C:\Program Files\Microsoft SQL Server
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None. This command does not accept pipeline input.

OUTPUTS

[System.String[]]

Returns the content of the setup log file, or null if no log file is found.

NOTES

RELATED LINKS

⚠️ **GitHub.com Fallback** ⚠️