SQLPS warning message

WARNING: Failed to load the ‘SQLAS’ extension: SQL Server WMI provider is not available on SERVERNAME

I was getting this error when loading SQLPS from a job.  I never did figure out the root cause.  It may have something to do with SQL Server 2008 management objects being installed along with SQL Server 2014 components.

I just suppressed the warnings using the WarningAction flag

Import-Module -Name SQLPS -DisableNameChecking  -WarningAction SilentlyContinue

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s