Absent Member.. Sandy21 Absent Member..
Absent Member..
1180 views

Passing values to powershell script

Jump to solution

Hi,

 

Im using  "PowerShell Script" operation in Library/Operations/Power Shell path in one of my flow in Operations Orchestration 9.0. 

 

My requirement is to pass some values dynamically to the powershell script. 

 

The only inputs this operation is using are script name, username and password.

 

Do anyone know how to pass values to a powershell script using OO workflow?

 

Regards

Sandy.

Labels (1)
0 Likes
1 Solution

Accepted Solutions
Absent Member.. Steve_Drummond Absent Member..
Absent Member..

Re: Passing values to powershell script

Jump to solution

'script' can either be an actual Powershell script or a file path to a Powershell script file. In the former you can inline OO variables within the code via ${varname} and in the latter you could call HelloWorld.ps ${varname} or HelloWorld.ps -input1 ${varname} depending on how your script is written.

0 Likes
3 Replies
Absent Member.. ademir Absent Member..
Absent Member..

Re: Passing values to powershell script

Jump to solution

Hi,

 

You can add input on an operation and then use it.

 

0 Likes
Absent Member.. Steve_Drummond Absent Member..
Absent Member..

Re: Passing values to powershell script

Jump to solution

'script' can either be an actual Powershell script or a file path to a Powershell script file. In the former you can inline OO variables within the code via ${varname} and in the latter you could call HelloWorld.ps ${varname} or HelloWorld.ps -input1 ${varname} depending on how your script is written.

0 Likes
Absent Member.. Sandy21 Absent Member..
Absent Member..

Re: Passing values to powershell script

Jump to solution

Thanks a lot for the reply.. tried the second one and it is working :)...

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.