How do I change Listener port in Powershell/winrm 2.0?
- Open a PowerShell window with administrative privileges.
- Run
dir WSMan:\localhost\listener\*\Port
and check the Value parameter to see what you're currently listening on. - If you'd like to change it, run
Set-Item WSMan:\localhost\listener\*\Port 8888
If you'd still like to do it with winrm
, you need to modify your command to the following --
winrm set winrm/config/Listener?Address=*+Transport=HTTP '@{Port="8888"}'