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!

New Year. New Skills. New Course Releases from Splunk Education

A new year often inspires reflection—and reinvention. Whether your goals include strengthening your security ...

Splunk and TLS: It doesn't have to be too hard

Overview Creating a TLS cert for Splunk usage is pretty much standard openssl.  To make life better, use an ...

Faster Insights with AI, Streamlined Cloud-Native Operations, and More New Lantern ...

Splunk Lantern is a Splunk customer success center that provides practical guidance from Splunk experts on key ...