Is it possible to execute a ps-script on pc B from pc A using a network share?

Kiers, P (Peter) 61 Reputation points
2021-02-08T14:22:58.153+00:00

Dear Experts,

I have 2 pc's (f.e: PC a and PC b) both connected to a network. Both PC's uses the same network share folder.
Is it possible to execute a powershell scripts on PC B from PC A using the network share.

Greetings, P

Windows for business Windows Server User experience PowerShell
0 comments No comments
{count} votes

Accepted answer
  1. Michael Taylor 60,161 Reputation points
    2021-02-08T14:34:12.837+00:00

    You can execute powershell scripts remotely (doesn't matter where they reside) provided you have enabled remoting in Powershell (WinRM) and you provide the appropriate credentials to perform the operation on the remote machine or are using an account that has appropriate permissions.

    How to run remote commands is documented here.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.