In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

PowerShell Script Won't Run

MonBrazier
8 - Asteroid

Hi everyone

 

I have a PowerShell script that add a specific file to a zip folder in a specified directory.

 

The script works perfectly when running in PowerShell itself... however, when running in Alteryx, the script does nothing - and I mean nothing!

There's no error, and it doesn't actually do what the script is meant to do.... what am I doing wrong???

 

This is what is (essentially) contained in the ps1 file:

Compress-Archive -LiteralPath '& "\\--network drive full path--\test.txt"' -DestinationPath '& "\\--destination network drive full path\testing.zip"'

 

Attached is the run command tool set up - let me know what you think!

Format of the command argument in run command tool:

 

'& "\\--network drive full path--\PowerShellScript.ps1"'

 

0 REPLIES 0
Labels
Top Solution Authors