C:\chef\wget.vbs(28, 1) msxml6.dll: The parameter is incorrect


#1

Has anyone hit this problem? knife bootstrap windows via winrm fails.

knife --version 11.4.0 knife bootstrap windows winrm jblaine-win.our.org -r
’role[rcf-windows-base]’ -x ‘OUR\jblaine’

jblaine-win.our.org C:\Users\jblaine.OUR>cscript /nologo
C:\chef\wget.vbs
/url:“https://www.opscode.com/chef/download?p=windows&pv=2008r2&m=x86_64” /path:"C:\Users\JBLAIN~1.MIT\AppData\Local\Temp\chef-client-latest.msi"
jblaine-win.our.org C:\chef\wget.vbs(28, 1) msxml6.dll: The parameter is
incorrect.


#2

Haven’t seen that. What version of knife-windows are you using, and what
version of Windows are you trying to bootstrap? I would expect that even
if wget.vbs fails, a retry should occur with Powershell that would not be
affected by strangeness around mxml6 and friends.

Thanks Jeff.

-Adam

-----Original Message-----
From: Jeff Blaine [mailto:jblaine@kickflop.net]
Sent: Wednesday, September 11, 2013 11:24 AM
To: chef@lists.opscode.com
Subject: [chef] C:\chef\wget.vbs(28, 1) msxml6.dll: The parameter is
incorrect.

Has anyone hit this problem? knife bootstrap windows via winrm fails.

knife --version 11.4.0 knife bootstrap windows winrm jblaine-win.our.org -r
’role[rcf-windows-base]’ -x ‘OUR\jblaine’

jblaine-win.our.org C:\Users\jblaine.OUR>cscript /nologo C:\chef\wget.vbs
/url:“https://www.opscode.com/chef/download?p=windows&pv=2008r2&m=x86_64
/path:"C:\Users\JBLAIN~1.MIT\AppData\Local\Temp\chef-client-latest.msi"
jblaine-win.our.org C:\chef\wget.vbs(28, 1) msxml6.dll: The parameter is
incorrect.


#3

On 9/11/2013 3:05 PM, Adam Edwards wrote:

Haven’t seen that. What version of knife-windows are you using, and what

0.5.12 (latest gem published)

version of Windows are you trying to bootstrap? I would expect that even

Windows 2008 R2

if wget.vbs fails, a retry should occur with Powershell that would not be
affected by strangeness around mxml6 and friends.

Thanks Jeff.

-Adam

-----Original Message-----
From: Jeff Blaine [mailto:jblaine@kickflop.net]
Sent: Wednesday, September 11, 2013 11:24 AM
To: chef@lists.opscode.com
Subject: [chef] C:\chef\wget.vbs(28, 1) msxml6.dll: The parameter is
incorrect.

Has anyone hit this problem? knife bootstrap windows via winrm fails.

knife --version 11.4.0 knife bootstrap windows winrm jblaine-win.our.org -r
’role[rcf-windows-base]’ -x ‘OUR\jblaine’

jblaine-win.our.org C:\Users\jblaine.OUR>cscript /nologo C:\chef\wget.vbs
/url:“https://www.opscode.com/chef/download?p=windows&pv=2008r2&m=x86_64
/path:"C:\Users\JBLAIN~1.MIT\AppData\Local\Temp\chef-client-latest.msi"
jblaine-win.our.org C:\chef\wget.vbs(28, 1) msxml6.dll: The parameter is
incorrect.


#4

Very odd – is there any other output after this Jeff? Also, what version
of Ruby are you using on your knife workstation? I have seen some strange
behaviors with Ruby 2.0, but haven’t been able to get a solid repro.

Thanks.

-Adam

-----Original Message-----
From: Jeff Blaine [mailto:jblaine@kickflop.net]
Sent: Wednesday, September 11, 2013 12:15 PM
To: chef@lists.opscode.com
Subject: [chef] Re: RE: C:\chef\wget.vbs(28, 1) msxml6.dll: The parameter
is incorrect.

On 9/11/2013 3:05 PM, Adam Edwards wrote:

Haven’t seen that. What version of knife-windows are you using, and
what

0.5.12 (latest gem published)

version of Windows are you trying to bootstrap? I would expect that
even

Windows 2008 R2

if wget.vbs fails, a retry should occur with Powershell that would not
be affected by strangeness around mxml6 and friends.

Thanks Jeff.

-Adam

-----Original Message-----
From: Jeff Blaine [mailto:jblaine@kickflop.net]
Sent: Wednesday, September 11, 2013 11:24 AM
To: chef@lists.opscode.com
Subject: [chef] C:\chef\wget.vbs(28, 1) msxml6.dll: The parameter is
incorrect.

Has anyone hit this problem? knife bootstrap windows via winrm fails.

knife --version 11.4.0 knife bootstrap windows winrm jblaine-win.our.org -r
’role[rcf-windows-base]’ -x ‘OUR\jblaine’

jblaine-win.our.org C:\Users\jblaine.OUR>cscript /nologo
C:\chef\wget.vbs
/url:“https://www.opscode.com/chef/download?p=windows&pv=2008r2&m=x86_64
/path:"C:\Users\JBLAIN~1.MIT\AppData\Local\Temp\chef-client-latest.msi"
jblaine-win.our.org C:\chef\wget.vbs(28, 1) msxml6.dll: The parameter
is incorrect.


#5

On 9/12/2013 10:03 AM, Adam Edwards wrote:

Very odd – is there any other output after this Jeff? Also, what version

Included below.

Thanks for the follow-ups, Adam.

of Ruby are you using on your knife workstation? I have seen some strange
behaviors with Ruby 2.0, but haven’t been able to get a solid repro.

knife is from /opt/chef/bin on an 11.4 client which makes use of
/opt/chef/embedded/bin/ruby (1.9.3p286)

FWIW, I get the same msxml6.dll error if I login to the Windows box
and run C:\Chef\wget.vbs from a cmd.exe

The rest of the bootstrap output per 1st question above:

jblaine-win.our.org C:\chef\wget.vbs(28, 1) msxml6.dll: The parameter is
incorrect.
jblaine-win.our.org
jblaine-win.our.org
jblaine-win.our.org
jblaine-win.our.org C:\Users\jblaine.OUR>msiexec /qb /i
"C:\Users\JBLAIN~1.OUR\AppData\Local\Temp\chef-client-latest.msi"
jblaine-win.our.org This installation package could not be opened.
Verify that the package exists and that you can access it, or contact
the application vendor to verify that this is a valid Windows Installer
package.
jblaine-win.our.org ‘chef-client’ is not recognized as an internal or
external command,
jblaine-win.our.org operable program or batch file.
jblaine-win.our.org
jblaine-win.our.org
jblaine-win.our.org C:\Users\jblaine.OUR>(
jblaine-win.our.org echo.-----BEGIN RSA PRIVATE KEY-----

…snip…

jblaine-win.our.org echo.-----END RSA PRIVATE KEY-----
jblaine-win.our.org ) 1>C:\chef\validation.pem
jblaine-win.our.org
jblaine-win.our.org C:\Users\jblaine.OUR>(
jblaine-win.our.org echo.log_level :info
jblaine-win.our.org echo.log_location STDOUT
jblaine-win.our.org echo.
jblaine-win.our.org echo.chef_server_url "https://rcf-cm-master.our.org/"
jblaine-win.our.org echo.validation_client_name "chef-validator"
jblaine-win.our.org echo.client_key "c:/chef/client.pem"
jblaine-win.our.org echo.validation_key "c:/chef/validation.pem"
jblaine-win.our.org echo.
jblaine-win.our.org echo.file_cache_path "c:/chef/cache"
jblaine-win.our.org echo.file_backup_path "c:/chef/backup"
jblaine-win.our.org echo.cache_options ({:path =>
“c:/chef/cache/checksums”, :skip_expires => true})
jblaine-win.our.org echo.
jblaine-win.our.org echo.# Using default node name (fqdn)
jblaine-win.our.org ) 1>C:\chef\client.rb
jblaine-win.our.org
jblaine-win.our.org
C:\Users\jblaine.OUR>(echo.{“run_list”:[“role[rcf-windows-base]”]})
1>C:\chef\first-boot.json
jblaine-win.our.org
jblaine-win.our.org C:\Users\jblaine.OUR>SET
"PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Tools\WPT;C:\Tools;C:\Program
Files\TortoiseSVN\bin;C:\ruby\bin;C:\opscode\chef\bin;C:\opscode\chef\embedded\bin"
jblaine-win.our.org
jblaine-win.our.org C:\Users\jblaine.OUR>chef-client -c
c:/chef/client.rb -j c:/chef/first-boot.json -E _default
$

-----Original Message-----
From: Jeff Blaine [mailto:jblaine@kickflop.net]
Sent: Wednesday, September 11, 2013 12:15 PM
To: chef@lists.opscode.com
Subject: [chef] Re: RE: C:\chef\wget.vbs(28, 1) msxml6.dll: The parameter
is incorrect.

On 9/11/2013 3:05 PM, Adam Edwards wrote:

Haven’t seen that. What version of knife-windows are you using, and
what

0.5.12 (latest gem published)

version of Windows are you trying to bootstrap? I would expect that
even

Windows 2008 R2

if wget.vbs fails, a retry should occur with Powershell that would not
be affected by strangeness around mxml6 and friends.

Thanks Jeff.

-Adam

-----Original Message-----
From: Jeff Blaine [mailto:jblaine@kickflop.net]
Sent: Wednesday, September 11, 2013 11:24 AM
To: chef@lists.opscode.com
Subject: [chef] C:\chef\wget.vbs(28, 1) msxml6.dll: The parameter is
incorrect.

Has anyone hit this problem? knife bootstrap windows via winrm fails.

knife --version 11.4.0 knife bootstrap windows winrm jblaine-win.our.org -r
’role[rcf-windows-base]’ -x ‘OUR\jblaine’

jblaine-win.our.org C:\Users\jblaine.OUR>cscript /nologo
C:\chef\wget.vbs
/url:“https://www.opscode.com/chef/download?p=windows&pv=2008r2&m=x86_64
/path:"C:\Users\JBLAIN~1.MIT\AppData\Local\Temp\chef-client-latest.msi"
jblaine-win.our.org C:\chef\wget.vbs(28, 1) msxml6.dll: The parameter
is incorrect.


#6

Thanks for trying it on the box – that was my next question. I have to go
offsite / offline for a few hours, so it may be a while before my next
reponse. It’s possible there’s something funny about msxml on your system,
but that seems unlikely with win2k8r2. Is there anything interesting about
the account you’re running with? It should be fine as long as it’s a
member of the administrators group, but if there are any other
restrictions on the account it would be good to know.

Last question: Is this a fairly stock image of Windows? Or have you made a
few tweaks (other than enabling winrm) on the box? Are there any
interesting applications / services installed like Visual Studio or SQL
Server?

-Adam

-----Original Message-----
From: Jeff Blaine [mailto:jblaine@kickflop.net]
Sent: Thursday, September 12, 2013 8:12 AM
To: chef@lists.opscode.com
Subject: [chef] Re: RE: Re: RE: C:\chef\wget.vbs(28, 1) msxml6.dll: The
parameter is incorrect.

On 9/12/2013 10:03 AM, Adam Edwards wrote:

Very odd – is there any other output after this Jeff? Also, what
version

Included below.

Thanks for the follow-ups, Adam.

of Ruby are you using on your knife workstation? I have seen some
strange behaviors with Ruby 2.0, but haven’t been able to get a solid
repro.

knife is from /opt/chef/bin on an 11.4 client which makes use of
/opt/chef/embedded/bin/ruby (1.9.3p286)

FWIW, I get the same msxml6.dll error if I login to the Windows box and
run C:\Chef\wget.vbs from a cmd.exe

The rest of the bootstrap output per 1st question above:

jblaine-win.our.org C:\chef\wget.vbs(28, 1) msxml6.dll: The parameter is
incorrect.
jblaine-win.our.org
jblaine-win.our.org
jblaine-win.our.org
jblaine-win.our.org C:\Users\jblaine.OUR>msiexec /qb /i
"C:\Users\JBLAIN~1.OUR\AppData\Local\Temp\chef-client-latest.msi"
jblaine-win.our.org This installation package could not be opened.
Verify that the package exists and that you can access it, or contact the
application vendor to verify that this is a valid Windows Installer
package.
jblaine-win.our.org ‘chef-client’ is not recognized as an internal or
external command, jblaine-win.our.org operable program or batch file.
jblaine-win.our.org
jblaine-win.our.org
jblaine-win.our.org C:\Users\jblaine.OUR>( jblaine-win.our.org
echo.-----BEGIN RSA PRIVATE KEY-----

…snip…

jblaine-win.our.org echo.-----END RSA PRIVATE KEY-----
jblaine-win.our.org ) 1>C:\chef\validation.pem jblaine-win.our.org
jblaine-win.our.org C:\Users\jblaine.OUR>(
jblaine-win.our.org echo.log_level :info
jblaine-win.our.org echo.log_location STDOUT
jblaine-win.our.org echo.
jblaine-win.our.org echo.chef_server_url
"https://rcf-cm-master.our.org/"
jblaine-win.our.org echo.validation_client_name "chef-validator"
jblaine-win.our.org echo.client_key "c:/chef/client.pem"
jblaine-win.our.org echo.validation_key "c:/chef/validation.pem"
jblaine-win.our.org echo.
jblaine-win.our.org echo.file_cache_path "c:/chef/cache"
jblaine-win.our.org echo.file_backup_path "c:/chef/backup"
jblaine-win.our.org echo.cache_options ({:path =>
“c:/chef/cache/checksums”, :skip_expires => true}) jblaine-win.our.org
echo.
jblaine-win.our.org echo.# Using default node name (fqdn)
jblaine-win.our.org ) 1>C:\chef\client.rb jblaine-win.our.org
jblaine-win.our.org
C:\Users\jblaine.OUR>(echo.{“run_list”:[“role[rcf-windows-base]”]})
1>C:\chef\first-boot.json
jblaine-win.our.org
jblaine-win.our.org C:\Users\jblaine.OUR>SET
"PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\S
ystem32\WindowsPowerShell\v1.0;C:\Tools\WPT;C:\Tools;C:\Program
Files\TortoiseSVN\bin;C:\ruby\bin;C:\opscode\chef\bin;C:\opscode\chef\embe
dded\bin"
jblaine-win.our.org
jblaine-win.our.org C:\Users\jblaine.OUR>chef-client -c c:/chef/client.rb
-j c:/chef/first-boot.json -E _default $

-----Original Message-----
From: Jeff Blaine [mailto:jblaine@kickflop.net]
Sent: Wednesday, September 11, 2013 12:15 PM
To: chef@lists.opscode.com
Subject: [chef] Re: RE: C:\chef\wget.vbs(28, 1) msxml6.dll: The
parameter is incorrect.

On 9/11/2013 3:05 PM, Adam Edwards wrote:

Haven’t seen that. What version of knife-windows are you using, and
what

0.5.12 (latest gem published)

version of Windows are you trying to bootstrap? I would expect that
even

Windows 2008 R2

if wget.vbs fails, a retry should occur with Powershell that would
not be affected by strangeness around mxml6 and friends.

Thanks Jeff.

-Adam

-----Original Message-----
From: Jeff Blaine [mailto:jblaine@kickflop.net]
Sent: Wednesday, September 11, 2013 11:24 AM
To: chef@lists.opscode.com
Subject: [chef] C:\chef\wget.vbs(28, 1) msxml6.dll: The parameter is
incorrect.

Has anyone hit this problem? knife bootstrap windows via winrm fails.

knife --version 11.4.0 knife bootstrap windows winrm jblaine-win.our.org -r
’role[rcf-windows-base]’ -x ‘OUR\jblaine’

jblaine-win.our.org C:\Users\jblaine.OUR>cscript /nologo
C:\chef\wget.vbs

/url:“https://www.opscode.com/chef/download?p=windows&pv=2008r2&m=x86_64

/path:"C:\Users\JBLAIN~1.MIT\AppData\Local\Temp\chef-client-latest.msi"
jblaine-win.our.org C:\chef\wget.vbs(28, 1) msxml6.dll: The parameter
is incorrect.


#7

For the archives:

This error is shown when you’re behind an HTTP proxy but did not
specify --bootstrap-proxy to knife.

Ideally, IMO, this should be improved to show something less cryptic
via the .VBS code.

On 9/12/2013 11:20 AM, Adam Edwards wrote:

Thanks for trying it on the box – that was my next question. I have to go
offsite / offline for a few hours, so it may be a while before my next
reponse. It’s possible there’s something funny about msxml on your system,
but that seems unlikely with win2k8r2. Is there anything interesting about
the account you’re running with? It should be fine as long as it’s a
member of the administrators group, but if there are any other
restrictions on the account it would be good to know.

Last question: Is this a fairly stock image of Windows? Or have you made a
few tweaks (other than enabling winrm) on the box? Are there any
interesting applications / services installed like Visual Studio or SQL
Server?

-Adam

-----Original Message-----
From: Jeff Blaine [mailto:jblaine@kickflop.net]
Sent: Thursday, September 12, 2013 8:12 AM
To: chef@lists.opscode.com
Subject: [chef] Re: RE: Re: RE: C:\chef\wget.vbs(28, 1) msxml6.dll: The
parameter is incorrect.

On 9/12/2013 10:03 AM, Adam Edwards wrote:

Very odd – is there any other output after this Jeff? Also, what
version

Included below.

Thanks for the follow-ups, Adam.

of Ruby are you using on your knife workstation? I have seen some
strange behaviors with Ruby 2.0, but haven’t been able to get a solid
repro.

knife is from /opt/chef/bin on an 11.4 client which makes use of
/opt/chef/embedded/bin/ruby (1.9.3p286)

FWIW, I get the same msxml6.dll error if I login to the Windows box and
run C:\Chef\wget.vbs from a cmd.exe

The rest of the bootstrap output per 1st question above:

jblaine-win.our.org C:\chef\wget.vbs(28, 1) msxml6.dll: The parameter is
incorrect.
jblaine-win.our.org
jblaine-win.our.org
jblaine-win.our.org
jblaine-win.our.org C:\Users\jblaine.OUR>msiexec /qb /i
"C:\Users\JBLAIN~1.OUR\AppData\Local\Temp\chef-client-latest.msi"
jblaine-win.our.org This installation package could not be opened.
Verify that the package exists and that you can access it, or contact the
application vendor to verify that this is a valid Windows Installer
package.
jblaine-win.our.org ‘chef-client’ is not recognized as an internal or
external command, jblaine-win.our.org operable program or batch file.
jblaine-win.our.org
jblaine-win.our.org
jblaine-win.our.org C:\Users\jblaine.OUR>( jblaine-win.our.org
echo.-----BEGIN RSA PRIVATE KEY-----

…snip…

jblaine-win.our.org echo.-----END RSA PRIVATE KEY-----
jblaine-win.our.org ) 1>C:\chef\validation.pem jblaine-win.our.org
jblaine-win.our.org C:\Users\jblaine.OUR>(
jblaine-win.our.org echo.log_level :info
jblaine-win.our.org echo.log_location STDOUT
jblaine-win.our.org echo.
jblaine-win.our.org echo.chef_server_url
"https://rcf-cm-master.our.org/"
jblaine-win.our.org echo.validation_client_name "chef-validator"
jblaine-win.our.org echo.client_key "c:/chef/client.pem"
jblaine-win.our.org echo.validation_key "c:/chef/validation.pem"
jblaine-win.our.org echo.
jblaine-win.our.org echo.file_cache_path "c:/chef/cache"
jblaine-win.our.org echo.file_backup_path "c:/chef/backup"
jblaine-win.our.org echo.cache_options ({:path =>
“c:/chef/cache/checksums”, :skip_expires => true}) jblaine-win.our.org
echo.
jblaine-win.our.org echo.# Using default node name (fqdn)
jblaine-win.our.org ) 1>C:\chef\client.rb jblaine-win.our.org
jblaine-win.our.org
C:\Users\jblaine.OUR>(echo.{“run_list”:[“role[rcf-windows-base]”]})
1>C:\chef\first-boot.json
jblaine-win.our.org
jblaine-win.our.org C:\Users\jblaine.OUR>SET
"PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\S
ystem32\WindowsPowerShell\v1.0;C:\Tools\WPT;C:\Tools;C:\Program
Files\TortoiseSVN\bin;C:\ruby\bin;C:\opscode\chef\bin;C:\opscode\chef\embe
dded\bin"
jblaine-win.our.org
jblaine-win.our.org C:\Users\jblaine.OUR>chef-client -c c:/chef/client.rb
-j c:/chef/first-boot.json -E _default $

-----Original Message-----
From: Jeff Blaine [mailto:jblaine@kickflop.net]
Sent: Wednesday, September 11, 2013 12:15 PM
To: chef@lists.opscode.com
Subject: [chef] Re: RE: C:\chef\wget.vbs(28, 1) msxml6.dll: The
parameter is incorrect.

On 9/11/2013 3:05 PM, Adam Edwards wrote:

Haven’t seen that. What version of knife-windows are you using, and
what

0.5.12 (latest gem published)

version of Windows are you trying to bootstrap? I would expect that
even

Windows 2008 R2

if wget.vbs fails, a retry should occur with Powershell that would
not be affected by strangeness around mxml6 and friends.

Thanks Jeff.

-Adam

-----Original Message-----
From: Jeff Blaine [mailto:jblaine@kickflop.net]
Sent: Wednesday, September 11, 2013 11:24 AM
To: chef@lists.opscode.com
Subject: [chef] C:\chef\wget.vbs(28, 1) msxml6.dll: The parameter is
incorrect.

Has anyone hit this problem? knife bootstrap windows via winrm fails.

knife --version 11.4.0 knife bootstrap windows winrm jblaine-win.our.org -r
’role[rcf-windows-base]’ -x ‘OUR\jblaine’

jblaine-win.our.org C:\Users\jblaine.OUR>cscript /nologo
C:\chef\wget.vbs

/url:“https://www.opscode.com/chef/download?p=windows&pv=2008r2&m=x86_64

/path:"C:\Users\JBLAIN~1.MIT\AppData\Local\Temp\chef-client-latest.msi"
jblaine-win.our.org C:\chef\wget.vbs(28, 1) msxml6.dll: The parameter
is incorrect.