ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. 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