Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

how to run powershell scripts in nifi

avatar
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

avatar
Master 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.