When starting Powershell from SSMS (say by right-clicking a database on the server> Start Powershell), I receive the warning "Could not obtain SQL Server Service information. An attempt to connect to WMI on 'SQL' [computer name] failed with the following
error: Access is denied. (Exception from HRESULT 0x80070005 (E_ACCESSDENIED))
However, after the warnings print to the console several times, I eventually am presented with the present working directory for this database, and can run commands such as dir. I receive the same warning again, and then the command is executed successfully.
It is worth noting that when connecting to a local instance of SQLEXPRESS, and Starting Powershell, I do not receive any errors/warnings.
View Complete Post