Forum Discussion
Rahul_Fadnavis
Aug 13, 2020Copper Contributor
"An attempt to connect to WMI" error in enabling always on using Enable-SqlAlwaysOn using powershell
Hello, I am getting below error while enabling the SQL Server always on using powershell. *** Enable-SqlAlwaysOn : An attempt to connect to WMI on 'XXXXXXXXXXXX' failed with following error: SQL ...
v-gudmk1820
Jan 12, 2023Copper Contributor
If you are using Import-module SqlServer then have you tried Import-Module SqlPS instead? Just to test.
Also, are you using a named instance or the default instance?
Just guessing that the problem is related to the service name MSSQL$<instancename>
Also, are you using a named instance or the default instance?
Just guessing that the problem is related to the service name MSSQL$<instancename>