Hi

I'm trying to execute the following powershell script through an "Action" - but it does not seem to Work. "Invoke-Command -computername SERVER1 {Stop-Process -processname "NOTEPAD" -Force}"

I tried executing it directly from a Shell on the PA server - and that worked like a charm.

What am I missing?

Kind regards Karsten

asked 21 Sep '15, 04:50

KMStolten's gravatar image

KMStolten
91510
accept rate: 0%


You need to enable powershell remoting to do that:

http://www.itsupportforum.net/topic/how-to-enable-powershell-remoting/

link

answered 23 Feb '16, 21:03

Lewyh's gravatar image

Lewyh
11
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×8
×8
×5

Asked: 21 Sep '15, 04:50

Seen: 13,338 times

Last updated: 23 Feb '16, 21:03