But, when I execute the following command in PowerShell:
Get-Service -Name "MSSQL$SQLEXPRESS"
There is an error found below:
Get-Service : Cannot find any service with service name 'MSSQL'.
At line:1 char:12
+ Get-Service <<<< -Name "MSSQL$SQLEXPRESS"
The solution is: using "*" instead of "$"
No comments:
Post a Comment