Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

Suppress Powershell Warning in agent job "WARNING: Could not obtain SQL Server Service information"

$
0
0

Hi

I get this warning running through powershell_ise but through sql agent it just errors out.

The code does everything it is supposed to and I tried everything to completely resolve the warning to no avail.

How do I supress it so sql agent wont error out running powershell code?

Thanks!

WARNING: Could not obtain SQL Server Service information. An attempt to connect to WMI on 'server_name' failed with the following error: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

Warning only present when it connects to remote servers, it doesn't produce it for local server. And it does get all info from the remote servers.


Paula


Viewing all articles
Browse latest Browse all 12963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>