โ08-14-2024 12:15 PM
Hello Everyone,
I was wondering if anyone has ever attempted to pass variables from a recipe into a PowerShell script. What I'm trying to accomplish is sending an email address that is gathered as the variable in the recipe to a specific PowerShell script running on a local server. I currently have the local AD connection up and running as well.
Solved! Go to Solution.
โ08-19-2024 01:19 PM - edited โ08-19-2024 01:19 PM
Hi @joshdehnke
Yes, I worked on a similar requirement where I needed to pass dynamic variable values to a powershell script. Please refer the below command.
powershell.exe script-path -email {{emailvalue}}
emailvalue will be available as a datapill and you can pass the value from your recipe.
Thanks
Pankaj
โ08-19-2024 01:19 PM - edited โ08-19-2024 01:19 PM
Hi @joshdehnke
Yes, I worked on a similar requirement where I needed to pass dynamic variable values to a powershell script. Please refer the below command.
powershell.exe script-path -email {{emailvalue}}
emailvalue will be available as a datapill and you can pass the value from your recipe.
Thanks
Pankaj