Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Invoke-command against a server works from laptop, but not from another server

$
0
0

I am trying to run a powershell command against a remote server.  Basically I have a Orchestrator runbook that runs a powershell script against a remote server using the invoke-command.  The script doesn't appear to work against that remote server. But if I try running that same script on my laptop machine against that same server it works.  I don't get any kind of error...the script runs and completes but nothing happens.

I have already checked that the server I am target has remote sessions enabled via the enable-psremoting and new-pssession commands.  I just can't figure out why my script would work when run on my laptop as opposed to server-to-server?


Viewing all articles
Browse latest Browse all 21975

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>