Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
rohit1804
Contributor III
Contributor III

How to write powershell script in talend DI

I want to write powershell script in talend DI. Can you please guide me how to write it ?

Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hi @rohit bannagare​ 

No a dedicated component for writing powershell script, I think you can write the powershell script on a tJavaRow or tJava component, store the whole script content as string variable for used later, write the script string as a *.ps1 file using tFileOutputDelimited if needed, call a powershell script file using tSystem component.

 

Regards

Shong

 

View solution in original post

2 Replies
gjeremy1617088143
Master
Master

Hi you have to use tSystem component to run the console of your computer, and by this way you can run powershell and a script in command line with it,

you can also create the poweshell script into a pst file and then execute it via tSystem component.

https://help.talend.com/r/en-US/7.2/system/tsystem-standard-properties

Anonymous
Not applicable

Hi @rohit bannagare​ 

No a dedicated component for writing powershell script, I think you can write the powershell script on a tJavaRow or tJava component, store the whole script content as string variable for used later, write the script string as a *.ps1 file using tFileOutputDelimited if needed, call a powershell script file using tSystem component.

 

Regards

Shong