Execution Flow
The SSRS service is restarted automatically after binding. Spaces in
-Thumbprint are stripped automatically. For Power BI Report Server, specify -InstanceName PBIRS. Use -IPAddress to bind to a specific IP instead of all interfaces.Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| -ComputerName | String | Optional | SSRS server. Default: $env:COMPUTERNAME. |
| -Thumbprint | String | Required | SHA-1 thumbprint of the certificate in Cert:\LocalMachine\My. Spaces are stripped automatically. |
| -Port | Int | Optional | HTTPS port to bind. Default: 443. |
| -InstanceName | String | Optional | SSRS/PBIRS instance name. Default: MSSQLSERVER. |
| -IPAddress | String | Optional | IP address to bind. Default: all interfaces (0.0.0.0). |
| -RequireSSL | Switch | Optional | Enforce HTTPS for all SSRS connections (SetSecureConnectionLevel). |
| -Credential | PSCredential | Optional | Credential for remote WMI connection. |
| -WhatIf / -Confirm | Switch | Optional | Standard ShouldProcess support. |
Return Value
Returns a PSCustomObject with: ComputerName, InstanceName, Thumbprint, Port, RequireSSL, Status, Message.
Examples
Example 1 — Bind certificate on local SSRS
Set-sqmSsrsHttpsCertificate -Thumbprint "A1B2C3D4E5F6..."Example 2 — Remote server, enforce SSL, custom port
Set-sqmSsrsHttpsCertificate -ComputerName "SSRS01" -Thumbprint "A1B2C3..." -Port 8443 -RequireSSLExample 3 — Power BI Report Server instance
Set-sqmSsrsHttpsCertificate -Thumbprint "A1B2C3..." -InstanceName "PBIRS"