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?