I have a powershell script that runs a 32 bit com object so when I run it in Powershell 64x it fails but runs fine in 86x
When I run it in a Sql Server Agent job it has the same 64x failure.
Is there a way around this? Like SSIS packages?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can directly invoke the 32-bit version of PowerShell by calling it through the WOW64 path:
Using the -File command line argument you can pass the name of the script you would like to run.