I started to learn PowerShell. When I run
PS SQLSERVER:\sql> dir
I got this error:
WARNING: Could not obtain SQL Server Service information. An attempt to connect to WMI on 'DESKTOP-EGEQJFS' failed with the following error:
An exception occurred in SMO while trying to manage a service.
Failed to retrieve data for this request.
Invalid class
Any ideas?