Support Questions
Find answers, ask questions, and share your expertise

how to run powershell scripts in nifi

New Contributor

I got to know that executeprocess supports running powershell scripts and commands.So I gave the command as "powershell.exe" and command argument as the path of the file.But I'm getting error like "powershell command not found". It will be really great if anyone could help me with examples on how to run powershell scripts in nifi

1 REPLY 1

Super Guru

Try using the full path to powershell.exe as the command, rather than just "powershell.exe". It looks like the JVM doesn't have access to the same PATH variable that includes the location of that executable.

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.