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

Workflow Orchestration Tools (Stateless vs Workflow Core vs Elsa vs Step Functions vs Hangfire)

AutoMapper vs FastMapper