- From: Peter Loron <
>
- To:
- Subject: [chef] Re: Knife-Windows
- Date: Fri, 25 Oct 2013 21:35:59 -0700
This is the issue:
CScript Error: Execution of the Windows Script Host failed. (0x800A0007)
You need to figure out why this is failing. You may have some kind of group
policy set that is preventing execution of scripts.
-Pete
On Oct 25, 2013, at 2:00 AM,
wrote:
>
>
Thank you all for your replies!
>
>
This is what i'm i get when i'm trying to bootstrap a windows Server ( 2008
>
R2)
>
>
:~$
>
sudo knife bootstrap windows winrm 192.168.1.17 -x
>
administrator
>
[sudo] password for chef:
>
Bootstrapping Chef on 192.168.1.17
>
Enter your password:
>
192.168.1.17 "Rendering
>
'C:\Users\ADMINI~1\AppData\Local\Temp\bootstrap-20435-1382691116.bat' chunk
>
1"
>
192.168.1.17 "Rendering
>
'C:\Users\ADMINI~1\AppData\Local\Temp\bootstrap-20435-1382691116.bat' chunk
>
2"
>
192.168.1.17 "Rendering
>
'C:\Users\ADMINI~1\AppData\Local\Temp\bootstrap-20435-1382691116.bat' chunk
>
3"
>
192.168.1.17 "Rendering
>
'C:\Users\ADMINI~1\AppData\Local\Temp\bootstrap-20435-1382691116.bat' chunk
>
4"
>
192.168.1.17 "Rendering
>
'C:\Users\ADMINI~1\AppData\Local\Temp\bootstrap-20435-1382691116.bat' chunk
>
5"
>
192.168.1.17 "Rendering
>
'C:\Users\ADMINI~1\AppData\Local\Temp\bootstrap-20435-1382691116.bat' chunk
>
6"
>
192.168.1.17
>
192.168.1.17 C:\Users\Administrator>mkdir C:\chef
>
192.168.1.17 A subdirectory or file C:\chef already exists.
>
192.168.1.17
>
192.168.1.17 C:\Users\Administrator>(
>
192.168.1.17 echo.url = WScript.Arguments.Named("url")
>
192.168.1.17 echo.path = WScript.Arguments.Named("path")
>
192.168.1.17 echo.proxy = null
>
192.168.1.17 echo.Set objXMLHTTP = CreateObject("MSXML2.ServerXMLHTTP")
>
192.168.1.17 echo.Set wshShell = CreateObject( "WScript.Shell" )
>
192.168.1.17 echo.Set objUserVariables = wshShell.Environment("USER")
>
>
192.168.1.17 echo.
>
192.168.1.17 echo.'http proxy is optional
>
192.168.1.17 echo.'attempt to read from HTTP_PROXY env var first
>
192.168.1.17 echo.On Error Resume Next
>
192.168.1.17 echo.
>
192.168.1.17 echo.If NOT (objUserVariables("HTTP_PROXY") = "") Then
>
192.168.1.17 echo.proxy = objUserVariables("HTTP_PROXY")
>
192.168.1.17 echo.
>
192.168.1.17 echo.'fall back to named arg
>
192.168.1.17 echo.ElseIf NOT (WScript.Arguments.Named("proxy") = "") Then
>
192.168.1.17 echo.proxy = WScript.Arguments.Named("proxy")
>
192.168.1.17 echo.End If
>
192.168.1.17 echo.
>
192.168.1.17 echo.If NOT isNull(proxy) Then
>
192.168.1.17 echo.'setProxy method is only available on ServerXMLHTTP 6.0+
>
>
192.168.1.17 echo.Set objXMLHTTP =
>
CreateObject("MSXML2.ServerXMLHTTP.6.0")
>
192.168.1.17 echo.objXMLHTTP.setProxy 2, proxy
>
192.168.1.17 echo.End If
>
192.168.1.17 echo.
>
192.168.1.17 echo.On Error Goto 0
>
192.168.1.17 echo.
>
192.168.1.17 echo.objXMLHTTP.open "GET", url, false
>
192.168.1.17 echo.objXMLHTTP.send()
>
192.168.1.17 echo.If objXMLHTTP.Status = 200 Then
>
192.168.1.17 echo.Set objADOStream = CreateObject("ADODB.Stream")
>
192.168.1.17 echo.objADOStream.Open
>
192.168.1.17 echo.objADOStream.Type = 1
>
192.168.1.17 echo.objADOStream.Write objXMLHTTP.ResponseBody
>
192.168.1.17 echo.objADOStream.Position = 0
>
192.168.1.17 echo.Set objFSO = Createobject("Scripting.FileSystemObject")
>
192.168.1.17 echo.If objFSO.Fileexists(path) Then objFSO.DeleteFile path
>
192.168.1.17 echo.Set objFSO = Nothing
>
192.168.1.17 echo.objADOStream.SaveToFile path
>
192.168.1.17 echo.objADOStream.Close
>
192.168.1.17 echo.Set objADOStream = Nothing
>
192.168.1.17 echo.End if
>
192.168.1.17 echo.Set objXMLHTTP = Nothing
>
192.168.1.17 ) 1>C:\chef\wget.vbs
>
192.168.1.17
>
192.168.1.17 C:\Users\Administrator>cscript /nologo C:\chef\wget.vbs
>
/url:http://www.opscode.com/chef/install.msi
>
/path:C:\Users\ADMINI~1\AppData\Local\Temp\chef-client-latest.msi
>
192.168.1.17 CScript Error: Execution of the Windows Script Host failed.
>
(0x800A0007)
>
192.168.1.17
>
192.168.1.17 C:\Users\Administrator>msiexec /qb /i
>
C:\Users\ADMINI~1\AppData\Local\Temp\chef-client-latest.msi
>
192.168.1.17 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.
>
192.168.1.17
>
192.168.1.17 C:\Users\Administrator>(
>
192.168.1.17 echo.-----BEGIN RSA PRIVATE KEY-----
>
192.168.1.17
>
echo.MIIEowIBAAKCAQEAvDlDXUi6cPcuLNHyIdrMCfAFTV7YEW8CiVhrcTKhWgzzg9Ia
>
192.168.1.17
>
echo./LPHdck+9pfeisvkNDApcoUKNdZWt76jVLrIJaz4Nh+0hhBlwJqAUKIlI35QGCAk
>
192.168.1.17
>
echo.n259Eh7yr4Pm9wfr09eIQlh7yhXfX7XPHxL8p3mYSsZ7YK2WLrgJMciC7la2oG/9
>
192.168.1.17
>
echo.zpKfByDT45dH+i0M1jhS/xHWsyEGGLof2so0WbKFmOprS00skYi4c32YY0mxZdil
>
192.168.1.17
>
echo.injLKmA6czXR3TNKXP+kLNvfczngwtn62MdtKJDp5XkQFLgMXbOWzDTBy4C5ylqc
>
192.168.1.17
>
echo.4KDRBvi8MoNiRCgDZ9zYT++//8U/bBwAN4/i9QIDAQABAoIBAA67CIufan/2yFVX
>
192.168.1.17
>
echo.pPSDVB6e+zs/5fcPUgp/sgDs7nXGt7QkWFpYk46jTlssLY19QYHYFxZQVSk7ehPt
>
192.168.1.17
>
echo.RokWCR3xuIc72fv4Ao6dSNeGqRNrCkepFFSp5/3oECQuVYAVzZ4Jqy9OD3oUViP+
>
192.168.1.17
>
echo.bZRH/x/4QzPu7q71RuCnJIkR4TVXz3LPgWBy1t9F8LUq9XtEUeOrBqIrh+gFeckR
>
192.168.1.17
>
echo.fq9RE6E0LcVffTzFfbf9t3SHwM5SElzNjS2IyzBPJA0R9/M4Cs/78umXMDmfccj2
>
192.168.1.17
>
echo.RvL76oKqu+UR2ptaueYyjCvXVQK8I+E/M1GRVmRhhgHVKMNGnSjVbYDS0X1EzXgV
>
192.168.1.17
>
echo.b1rvZ+ECgYEA8ikqZ+VK/0zsNJdoi4Dyxc05NbqHL6PTJTXeQvWg0goO8e9g+OhN
>
192.168.1.17
>
echo.GZAybvLxP1cgm1kWqn7oEuzOp6PRmW2yVyHh88ICivJ88EMYi+byk96qzuFfbnoe
>
192.168.1.17
>
echo.2BYuhCbkJeXmhSoZJ9Kaf6d+Ob/xVNadaebHXdr7BVikQljNYUoC9SkCgYEAxvr+
>
192.168.1.17
>
echo.GhTK4I7Kj0U2JAe8sL/6qDa1LIwqZoYoZAReZL4nfwVcy3eT49BmvGNKDC3OtfmY
>
192.168.1.17
>
echo.gSe3nXt+ShPR+fxoCtaN/zOw3EYOxnPflbakaMHgMBa63TBRkUUNQ9cAm2T4jxj9
>
192.168.1.17
>
echo.THzY2Yw0Q32K/C+7MUPcthbnvH7JAZ+D9IJNDO0CgYEA5KQFi+8srnw8kTNb3Eu1
>
192.168.1.17
>
echo.7RjlqVsihNKTa5C++E3euDITBk9UKe97zGUfmS38pidnfAXTpssH58Z7IEFGhyzR
>
192.168.1.17
>
echo.s/8jzfkiWXq2iEtxg7Zc10znzUlxx2e6c6AN72yhAT9eNeEXu0fX5CuKvJAEFmxE
>
192.168.1.17
>
echo.WFczaeR2GgglnxclY3Rz8nECgYBZBq9t5+OleP20AFlq4XNQ+XQikueYmNXXrSqh
>
192.168.1.17
>
echo.JTs+g72UHUgZWNT4VqPAogPdUxlrXdMX5jdG5JvqdNe7q2y5fKlnhy8YPtgZfnqI
>
192.168.1.17
>
echo.t4DzxdqSaXkNwbKc9nIq6iVBYXm8PIgIEsvK+engUGlAz/JG5n/3kGP6eBdi/IXD
>
192.168.1.17
>
echo.fhEPOQKBgGclWQEWU8l5nDjrKEcF4NPjSubQGtJ2lV6m5R2M1Hw2mqwP/TKcj6It
>
192.168.1.17
>
echo.5CgzhCOUc2jkIsBUsPe30uVb5Yc552IXW18mJpwMTv5IC0N8YuqIiMa+Y48udl1Z
>
192.168.1.17 echo.j26USHEvu+k35Qhac5OItQiIdXA8DgrJyKz6wZeTpYoIj2VgRt32
>
192.168.1.17 echo.-----END RSA PRIVATE KEY-----
>
192.168.1.17 ) 1>C:\chef\validation.pem
>
192.168.1.17
>
192.168.1.17 C:\Users\Administrator>(
>
192.168.1.17 echo.log_level :info
>
192.168.1.17 echo.log_location STDOUT
>
192.168.1.17 echo.
>
192.168.1.17 echo.chef_server_url "https://192.168.1.37:443"
>
192.168.1.17 echo.validation_client_name "chef-validator"
>
192.168.1.17 echo.client_key "c:/chef/client.pem"
>
192.168.1.17 echo.validation_key "c:/chef/validation.pem"
>
192.168.1.17 echo.
>
192.168.1.17 echo.file_cache_path "c:/chef/cache"
>
192.168.1.17 echo.file_backup_path "c:/chef/backup"
>
192.168.1.17 echo.cache_options ({:path => "c:/chef/cache/checksums",
>
:skip_expires => true})
>
192.168.1.17 echo.
>
192.168.1.17 echo.# Using default node name (fqdn)
>
192.168.1.17 ) 1>C:\chef\client.rb
>
192.168.1.17 'chef-client' is not recognized as an internal or external
>
command,
>
192.168.1.17 operable program or batch file.
>
192.168.1.17
>
192.168.1.17 C:\Users\Administrator>(echo.{"run_list":[]})
>
1>C:\chef\first-boot.json
>
192.168.1.17
>
192.168.1.17 C:\Users\Administrator>SET
>
"PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\ruby\bin;C:\opscode\chef\bin;C:\opscode\chef\embedded\bin"
>
>
192.168.1.17
>
192.168.1.17 C:\Users\Administrator>chef-client -c c:/chef/client.rb -j
>
c:/chef/first-boot.json -E _default
>
>
>
Thank you in advance!
>
>
Nick Zagoreos
>
Attachment:
signature.asc
Description: Message signed with OpenPGP using GPGMail
Archive powered by MHonArc 2.6.16.