title: SqlService WMI query in PowerShell returns nothing
body: <p>I'm trying to run a simple <a href="https://technet.microsoft.com/en-us/library/hh849824.aspx" rel="nofollow">Get-WmiObject</a> call in PowerShell.</p>
  
  <pre><code>Get-WmiObject -computerName $srv -namespace root\Microsoft\SqlServer\ComputerManagement -class SqlService
  </code></pre>
  
  <p>When running under an account that has administrator rights to the remote server I get <strong>no</strong> response. The command does complete, but no data is shown. When running this command under an account that does not have rights to the server I get an "Access Denied" message.</p>
  
  <p>When I run this on the remote server directly I get "Invalid namespace", but the server is definitely our <a href="http://en.wikipedia.org/wiki/Microsoft_SQL_Server#SQL_Server_2008" rel="nofollow">SQL Server 2008</a>.</p>
  
  <p>Why doesn't this kind of script return the object as expected?</p>