-
-
Notifications
You must be signed in to change notification settings - Fork 838
Open
Labels
bugs lifetriage requiredNew issue that has not been reviewed by maintainersNew issue that has not been reviewed by maintainers
Description
Verified issue does not already exist?
I have searched and found no existing issue
What error did you receive?
When using PowerShell ISE:
PS C:\Users\initialAdmin> Enable-DbaAgHadr -SqlInstance $sqlInstance[1, 2] -Force
WARNING: [14:07:51][Stop-DbaService] Multi-threaded execution returned an error | The client cannot connect to the destination specified in the request. Verify that the service on the destination is running and is a
ccepting requests. Consult the logs and documentation for the WS-Management service running on the destination, most commonly IIS or WinRM. If the destination is the WinRM service, run the following command on the d
estination to analyze and configure the WinRM service: "winrm quickconfig".
WARNING: [14:08:15][Stop-DbaService] Multi-threaded execution returned an error | The client cannot connect to the destination specified in the request. Verify that the service on the destination is running and is a
ccepting requests. Consult the logs and documentation for the WS-Management service running on the destination, most commonly IIS or WinRM. If the destination is the WinRM service, run the following command on the d
estination to analyze and configure the WinRM service: "winrm quickconfig".
ComputerName InstanceName SqlInstance IsHadrEnabled
------------ ------------ ----------- -------------
SQL2022 SQLInstance2 SQL2022\SQLInstance2 True
SQL2022 SQLInstance3 SQL2022\SQLInstance3 True
PS C:\Users\initialAdmin> $null = Set-DbaNetworkConfiguration -SqlInstance $sqlInstance[1] -StaticPortForIPAll 14333 -RestartService
WARNING: [14:10:02][Set-DbaNetworkConfiguration] A restart of the service for instance SQLInstance2 on SQL2022 failed (The client cannot connect to the destination specified in the request. Verify that the service o
n the destination is running and is accepting requests. Consult the logs and documentation for the WS-Management service running on the destination, most commonly IIS or WinRM. If the destination is the WinRM servic
e, run the following command on the destination to analyze and configure the WinRM service: "winrm quickconfig".). Restart of instance is necessary for the new settings to take effect.
When using powershell.exe:
PS C:\Users\initialAdmin> Set-DbaNetworkConfiguration -SqlInstance SQL2022\SQLInstance2 -StaticPortForIPAll 14338 -RestartService -Confirm:$false Get-RunspaceData : The client cannot connect to the destination specified in the request. Verify that the service on the destination is running and is accepting requests. Consult the logs and documentation for the WS-Management service running on the destination, most commonly IIS or WinRM. If the destination is the WinRM service, run the following command on the destination to analyze and configure the WinRM service: "winrm quickconfig". At line:98264 char:13 + Get-RunspaceData -wait + ~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ConnectionError: (Win32_Service: ...?SQLINSTANCE2"):CimInstance) [Write-Error], CimException + FullyQualifiedErrorId : HRESULT 0x80338012,Get-RunspaceData Get-RunspaceData : The client cannot connect to the destination specified in the request. Verify that the service on the destination is running and is accepting requests. Consult the logs and documentation for the WS-Management service running on the destination, most commonly IIS or WinRM. If the destination is the WinRM service, run the following command on the destination to analyze and configure the WinRM service: "winrm quickconfig". At line:98264 char:13 + Get-RunspaceData -wait + ~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ConnectionError: (Win32_Service: ...?SQLINSTANCE2"):CimInstance) [Write-Error], CimException + FullyQualifiedErrorId : HRESULT 0x80338012,Get-RunspaceData
Get-RunspaceData : The client cannot connect to the destination specified in the request. Verify that the service on the destination is running and is accepting requests. Consult
the logs and documentation for the WS-Management service running on the destination, most commonly IIS or WinRM. If the destination is the WinRM service, run the following command
on the destination to analyze and configure the WinRM service: "winrm quickconfig".
At line:98264 char:13
+ Get-RunspaceData -wait
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ConnectionError: (Win32_Service: ...?SQLINSTANCE2"):CimInstance) [Write-Error], CimException
+ FullyQualifiedErrorId : HRESULT 0x80338012,Get-RunspaceData
Get-RunspaceData : The client cannot connect to the destination specified in the request. Verify that the service on the destination is running and is accepting requests. Consult
the logs and documentation for the WS-Management service running on the destination, most commonly IIS or WinRM. If the destination is the WinRM service, run the following command
on the destination to analyze and configure the WinRM service: "winrm quickconfig".
At line:98264 char:13
+ Get-RunspaceData -wait
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ConnectionError: (Win32_Service: ...?SQLINSTANCE2"):CimInstance) [Write-Error], CimException
+ FullyQualifiedErrorId : HRESULT 0x80338012,Get-RunspaceData
ComputerName : SQL2022
InstanceName : SQLInstance2
SqlInstance : SQL2022\SQLInstance2
Changes : {Changed TcpPort for IPAll to 14338}
RestartNeeded : True
Restarted : True
When using pwsh (7.5.2):
PS C:\Users\initialAdmin> Set-DbaNetworkConfiguration -SqlInstance SQL2022\SQLInstance2 -StaticPortForIPAll 14339 -RestartService -Confirm:$false
Write-Error:
Line |
98264 | Get-RunspaceData -wait
| ~~~~~~~~~~~~~~~~~~~~~~
| The client cannot connect to the destination specified in the request. Verify that the service on the destination is running and is accepting requests. Consult the logs and documentation for the WS-Management service running on the destination, most commonly IIS or WinRM. If the destination is the WinRM service, run the following command on the destination to analyze and configure the WinRM service: "winrm quickconfig".
Write-Error:
Line |
98264 | Get-RunspaceData -wait
| ~~~~~~~~~~~~~~~~~~~~~~
| The client cannot connect to the destination specified in the request. Verify that the service on the destination is running and is accepting requests. Consult the logs and documentation for the WS-Management service running on the destination, most commonly IIS or WinRM. If the destination is the WinRM service, run the following command on the destination to analyze and configure the WinRM service: "winrm quickconfig".
Write-Error:
Line |
98264 | Get-RunspaceData -wait
| ~~~~~~~~~~~~~~~~~~~~~~
| The client cannot connect to the destination specified in the request. Verify that the service on the destination is running and is accepting requests. Consult the logs and documentation for the WS-Management service running on the destination, most commonly IIS or WinRM. If the destination is the WinRM service, run the following command on the destination to analyze and configure the WinRM service: "winrm quickconfig".
Write-Error:
Line |
98264 | Get-RunspaceData -wait
| ~~~~~~~~~~~~~~~~~~~~~~
| The client cannot connect to the destination specified in the request. Verify that the service on the destination is running and is accepting requests. Consult the logs and documentation for the WS-Management service running on the destination, most commonly IIS or WinRM. If the destination is the WinRM service, run the following command on the destination to analyze and configure the WinRM service: "winrm quickconfig".
ComputerName : SQL2022
InstanceName : SQLInstance2
SqlInstance : SQL2022\SQLInstance2
Changes : {Changed TcpPort for IPAll to 14339}
RestartNeeded : True
Restarted : True
Metadata
Metadata
Assignees
Labels
bugs lifetriage requiredNew issue that has not been reviewed by maintainersNew issue that has not been reviewed by maintainers