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