All Apps and Add-ons

Error Invoking Commandlet Invoke-Sqlcmd

chrisboy68
Contributor

Hi, I have a simple script calling "Invoke-Sqlcmd" commandlet and I get the following error.

Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.

Any suggestions?

Thank you,

Chris

0 Karma

jcoates_splunk
Splunk Employee
Splunk Employee

that sounds like you might be using powershell2 instead of powershell? http://docs.splunk.com/Documentation/AddOns/latest/MSPowerShell/Configuration

0 Karma
Get Updates on the Splunk Community!

Splunk Enterprise Security: Your Command Center for PCI DSS Compliance

Every security professional knows the drill. The PCI DSS audit is approaching, and suddenly everyone's asking ...

Developer Spotlight with Guilhem Marchand

From Splunk Engineer to Founder: The Journey Behind TrackMe    After spending over 12 years working full time ...

Cisco Catalyst Center Meets Splunk ITSI: From 'Payments Are Down' to Root Cause in ...

The Problem: When Networks and Services Don't Talk Payment systems fail at a retail location. Customers are ...