Alteryx Designer Desktop Discussions

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

Using Run Command tool to execute PowerShell scirpt

john_dwyer
6 - Meteoroid

I have searched high and low trying to figure out how to output the results for a simple PowerShell script file named Admin.ps1 that contains the cmdlet Get-ADDefualtDomainPasswordPolicy from the Run Command tool to an output tool, in this case the Browse tool.  However, when I do this I get this well documented error.

 

Error 1.JPG

 

All of the solutions I've read indicate you have to identify a Read source when you have a Write Source, even if it’s not technically necessary.  So, in my workflow I made the Admin.ps1 file the read source and now workflow runs and I can see PowerShell opening and running with no error codes returned.

pic2.png

However, what appears in the Browse tool is the Cmdlet found in the Admin.ps1 file.  This is obviously not what I want.  I want to see the results from the Cmdlet.

pic3.png

If anyone can show me how to do this, you're automatically on my Christmas list.

 

 

 

10 REPLIES 10
BS_THE_ANALYST
14 - Magnetar

Glad to hear @john_dwyer

All the best,

BS

Labels