Executing remote commands
PowerShell remoting can be described as a client-server service. The client is responsible for sending requests and, beyond PowerShell itself, has no mandatory configuration. The server is responsible for receiving and processing requests and requires the remoting service to be enabled.
The term server
in this context does not describe the role of a computer in a network; it means nothing more than “a computer receiving a request.” The server is therefore the remote computer on which commands are run. The server runs the winrm
service to listen for requests.
Enabling and performing the initial configuration of the remoting service to allow a computer to receive requests can be done with a single command:
Enable-PSRemoting
The command performs the initial configuration of the remoting service and adds Windows Firewall exceptions for the Private and Domain profiles. The SkipNetworkProfileCheck
parameter can be used to enable limited...