# Knife bootstrap windows winrm 192.168.2.121 -x Administrator -P demo69 -N node2.example.com

**URL:** <https://discourse.chef.io/t/knife-bootstrap-windows-winrm-192-168-2-121-x-administrator-p-demo69-n-node2-example-com/10150>\
**Category:** Chef Infra (archive)\
**Created:** [January 5, 2017, 8:00am UTC](https://discourse.chef.io/t/knife-bootstrap-windows-winrm-192-168-2-121-x-administrator-p-demo69-n-node2-example-com/10150 "2017-01-05T08:00:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tigerofcn](https://avatars.discourse-cdn.com/v4/letter/t/ba8739/32.png) [@tigerofcn](https://discourse.chef.io/u/tigerofcn)\
**Post date:** [January 5, 2017, 8:00am UTC](https://discourse.chef.io/t/knife-bootstrap-windows-winrm-192-168-2-121-x-administrator-p-demo69-n-node2-example-com/10150/1 "2017-01-05T08:00:50Z")

</div>

[root@chefworkstation chef-repo]# knife bootstrap windows winrm 192.168.2.121 -x Administrator -P demo69 -N [node2.example.com](http://node2.example.com)  
Node [node2.example.com](http://node2.example.com) exists, overwrite it? (Y/N) y  
Client [node2.example.com](http://node2.example.com) exists, overwrite it? (Y/N) y  
Creating new client for [node2.example.com](http://node2.example.com)  
Creating new node for [node2.example.com](http://node2.example.com)

Waiting for remote response before bootstrap.......ERROR: No response received from remote node after 2.04 minutes, giving up.  
ERROR: Exception: Unable to parse authorization header. Headers: {"Cache-Control"=\>"no-cache", "Pragma"=\>"no-cache", "Content-Type"=\>"text/html; charset=utf-8", "Proxy-Connection"=\>"Keep-Alive", "Connection"=\>"Keep-Alive", "Content-Length"=\>"750"}  
Body:

Network Error  

> | Network Error (tcp\_error)  
>   
> |
> | A communication error occurred: "Connection refused" |
> | The Web Server may be down, too busy, or experiencing other problems preventing it from responding to requests. You may wish to try again at a later time. |
> |   
> For assistance, contact your network support team. |

 (503). ERROR: WinRM::WinRMHTTPTransportError: Unable to parse authorization header. Headers: {"Cache-Control"=\>"no-cache", "Pragma"=\>"no-cache", "Content-Type"=\>"text/html; charset=utf-8", "Proxy-Connection"=\>"Keep-Alive", "Connection"=\>"Keep-Alive", "Content-Length"=\>"750"} Body: Network Error  

> | Network Error (tcp\_error)  
>   
> |
> | A communication error occurred: "Connection refused" |
> | The Web Server may be down, too busy, or experiencing other problems preventing it from responding to requests. You may wish to try again at a later time. |
> |   
> For assistance, contact your network support team. |

 (503). [root@chefworkstation chef-repo]#

---

<div class="post-metadata">

**Author:** ![nic\_chef](https://avatars.discourse-cdn.com/v4/letter/n/fbc32d/32.png) [@nic\_chef](https://discourse.chef.io/u/nic_chef)\
**Post date:** [January 5, 2017, 9:03am UTC](https://discourse.chef.io/t/knife-bootstrap-windows-winrm-192-168-2-121-x-administrator-p-demo69-n-node2-example-com/10150/2 "2017-01-05T09:03:23Z")

</div>

is the winrm service running on the windows node and WinRM port 5985 open?  
run this on the node to check if winrm is running.  
C:\Users\administrator\>Winrm quickconfig  
run this to check if port is open: telnet IP PORT

---

<div class="post-metadata">

**Author:** ![Matt\_Wrock](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/matt_wrock/32/3394_2.png) [@Matt\_Wrock](https://discourse.chef.io/u/Matt_Wrock)\
**Post date:** [January 5, 2017, 9:48am UTC](https://discourse.chef.io/t/knife-bootstrap-windows-winrm-192-168-2-121-x-administrator-p-demo69-n-node2-example-com/10150/3 "2017-01-05T09:48:43Z")

</div>

The fact that the winrm request got any response at all and that response was not a valid winrm SOAP response usually indicates there is a proxy involved here. Try setting the environment variable `HTTP_PROXY` to `http://<proxy server>:<proxy port>`. You can also set this in your knife.rb’s `http_proxy` setting.

---

<div class="post-metadata">

**Author:** ![tigerofcn](https://avatars.discourse-cdn.com/v4/letter/t/ba8739/32.png) [@tigerofcn](https://discourse.chef.io/u/tigerofcn)\
**Post date:** [January 6, 2017, 12:35am UTC](https://discourse.chef.io/t/knife-bootstrap-windows-winrm-192-168-2-121-x-administrator-p-demo69-n-node2-example-com/10150/4 "2017-01-06T00:35:23Z")

</div>

[root@chefworkstation chef-repo]# telnet 192.168.2.121 5985  
Trying 192.168.2.121…  
Connected to [node2.example.com](http://node2.example.com) (192.168.2.121).  
Escape character is ‘^]’.

is it Ok?

---

<div class="post-metadata">

**Author:** ![nic\_chef](https://avatars.discourse-cdn.com/v4/letter/n/fbc32d/32.png) [@nic\_chef](https://discourse.chef.io/u/nic_chef)\
**Post date:** [January 6, 2017, 11:06am UTC](https://discourse.chef.io/t/knife-bootstrap-windows-winrm-192-168-2-121-x-administrator-p-demo69-n-node2-example-com/10150/5 "2017-01-06T11:06:30Z")

</div>

yeah it looks like the port is open, what about the Winrm service, is it running?  
log in to the windows machine and run this on the CMD  
C:\Users\administrator\>Winrm quickconfig  
and as Matt suggested, do you have a proxy in between? if yes? than try setting the environment variable HTTP\_PROXY to http://:. You can also set this in your knife.rb’s http\_proxy setting.
