Skip to content

Uninstall‑SqlDscBIReportServer

dscbot edited this page Apr 7, 2025 · 2 revisions

SYNOPSIS

Uninstalls SQL Server Power BI Report Server.

SYNTAX

Uninstall-SqlDscBIReportServer [-MediaPath] <String> [[-LogPath] <String>] [-SuppressRestart]
 [[-Timeout] <UInt32>] [-Force] [-PassThru] [-WhatIf] [-Confirm]
 [<CommonParameters>]

DESCRIPTION

Uninstalls SQL Server Power BI Report Server using the provided setup executable.

EXAMPLES

EXAMPLE 1

Uninstall-SqlDscBIReportServer -MediaPath 'E:\PowerBIReportServer.exe'

Uninstalls Power BI Report Server.

EXAMPLE 2

Uninstall-SqlDscBIReportServer -MediaPath 'E:\PowerBIReportServer.exe' -LogPath 'C:\Logs\PowerBIReportServer_Uninstall.log'

Uninstalls Power BI Report Server and specifies a custom log path.

EXAMPLE 3

Uninstall-SqlDscBIReportServer -MediaPath 'E:\PowerBIReportServer.exe' -Force

Uninstalls Power BI Report Server without prompting for confirmation.

EXAMPLE 4

$exitCode = Uninstall-SqlDscBIReportServer -MediaPath 'E:\PowerBIReportServer.exe' -PassThru

Uninstalls Power BI Report Server and returns the setup exit code.

PARAMETERS

-Force

If specified the command will not ask for confirmation. Same as if Confirm:$false is used.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-LogPath

Specifies the file path where to write the log files, e.g. 'C:\Logs\Uninstall.log'. By default log files are created under %TEMP%.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-MediaPath

Specifies the path where to find the SQL Server installation media. On this path the SQL Server setup executable must be found.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-PassThru

If specified the command will return the setup process exit code.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-SuppressRestart

Suppresses the restart of the computer after the uninstallation is finished. By default the computer is restarted after the uninstallation is finished.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-Timeout

Specifies how long to wait for the setup process to finish. Default value is 7200 seconds (2 hours). If the setup process does not finish before this time, an exception will be thrown.

Type: UInt32
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: 7200
Accept pipeline input: False
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
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

OUTPUTS

When PassThru is specified the function will return the setup process exit

code as System.Int32. Otherwise, the function does not generate any output.

NOTES

RELATED LINKS

Home

Commands

Resources

Usage

Clone this wiki locally