chef / knife-windows

Plugin for Chef's knife tool for working with Windows nodes
Apache License 2.0
152 stars 110 forks source link

Allow a custom codepage to be specified and passed to the cmd shell #400

Closed mwrock closed 7 years ago

mwrock commented 7 years ago

Older Windows versions prior to 2008R2 fail on the default UTF-8 codepage (65001). This PR allows users to pass a custom codepage. Typically for en-US users, 437 should be used for 2008 R1. This PR levereges the newly released WinRM 2.1.0 which exposes codepage and other shell options for the :cmd based shell.