Enable PowerShell remoting on windows machine

Use following command to enable remoting on window machine:-

Enable-PSRemoting -force
Set-Item wsman:\localhost\client\auth\CredSSP -value true -force
Enable-WSManCredSSP -force -role server
set-item wsman:localhost\client\trustedhosts -value * -force
set-item wsman:\localhost\listener\listener*\port -value 80 -force
restart-Service winrm
winrm get winrm/config
winrm enumerate winrm/config/listener

Set-ExecutionPolicy RemoteSigned

Comments

Popular posts from this blog

FastEndpoint vs Minimal APIs vs Controller

Kick start 2021 😃😃

Work with Raspberry PI Zero W