How do I specify alternative WinRM port in knife bootstrap windows?


How do I specify alternative port for WinRM connection during bootstrap. It’s HTTP (not HTTPS) running on alternative port.

the -p or --winrm-port argument can be used to specify the port if you are not using the default 5985/6 ports.

Hello @Matt_Wrock

Do you know if there is a similar option or some way to configure port when we are using machine resource with Chef Provisioning AWS drivers?

Our security team is reluctant to allow 5985/6 ports.


The AWS driver has a machine_options[:winrm_port] setting for setting the port.Of course if you do set it to an alternative number that assumes either a listener has been created to listen on that port or you have mapped a port to the default port numbers.

1 Like