Jump to content
MGH

Running powershell scripts reliability

Recommended Posts

What methods have you folks found that works RELIABILITY, for running powershell scripts from Automate? Do you use Execute Script? Or do you perhaps prefer writing the powershell commands to a PS1 file and activating it some how? The methods I've tried seem to work at times and others, it doesn't. Just wondering what you folks are doing to run Powershell scripts from Automate that seems bullet proof to you. I struggle with finding a method of running scripts reliability from Automate. 

Share this post


Link to post
Share on other sites

Use Shell script function to execute:

powershell -ExecutionPolicy Bypass -NoProfile -NoLogo -Command "& C:\Windows\Temp\Yourscript.ps1"

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...