Active Batch (Active Variable using PowerShell script)

466 Views Asked by At

Currently I am working on Active Batch job variables. how to use active variables using PowerShell script in Active Batch job. can someone Please help me?

1

There are 1 best solutions below

0
Mangopip On

You can just type the Active Batch variable, eg ${UserName} directly into the PS script:

[String]$username = '${UserName}'

Note the single quotes rather than double quotes to denote a literal string and to avoid any risk of PS evaluating your variable value.