Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Execute Power shell script from SSIS 2012

$
0
0

Hi ,

I am using SSIS 2012 and trying to execute power shell script using Execute Process task giving the details below

Executable - C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe

Arguments - C:\Scripts\test.ps1

when executed I had got the error below -

[Execute Process Task] Error: In Executing "C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe" "C:\Scripts\test.ps1" at "", The process exit code was "1" while the expected was "0".

After searching in internet I had changed the argument like below

Arguments -  -ExecutionPolicy ByPass -command “. ‘C:\Scripts\test.ps1

Here, the task is executed without any error but there is no output.

Note : I am running the script to create csv files with data from AD.

Please help me as I am not familiar with power shell script.

Thanks in advance

Anu




Viewing all articles
Browse latest Browse all 24688

Trending Articles



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