Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

144194

October 9th, 2013 13:00

Publishing a PowerShell Script

I have a system that is giving some issues where I have to restart some services every now and then.

The issue is that these problems arise on the server during a China work time - So I am home sleeping away.

I can easily restart the services using PowerShell so I thought I would publish a PowerShell script that one of the guys can run from AppPortal.

Thought it would be easy (probably is and my brain just is not working)...  Publish path to powershell (C:\windows\.....) and use the -file "path\to\script.ps1" as the argument - However, I cannot seem to get it to work.

So, how in the heck would I do this?

15 Posts

October 17th, 2013 15:00

Hey Mike,

Is it an execution policy problem? Could you try adding "-ExecutionPolicy Unrestricted" to the command line?

Adam

No Events found!

Top