In quite a few places the command for changing the port winrm listens on look like this:
winrm set winrm/config/Listener?Address=*+Transport=HTTP @{Port="8888"}
However this does not work for me. The error I'm getting is:
Error: Invalid use of command line. Type "winrm -?" for help.
Obviously, internet can't be wrong, so that's me doing something incorrectly. The question is, how to do this correctly?