On 4/16/2015 1:17:24 AM, Button, Steve < > wrote:
1) Some questions and a guess:What version of knife-windows are you using?I'm using knife on a Mac, and it's Chef: 11.16.2Are you really logging in as plain administrator, or are you using a domain account?Yes, plain administratorAre you running this on a Windows workstation?On a MacIf your answers are "0.8.4", "yes plain local Administrator", and "yes, windows workstation", then try this instead:
knife bootstrap windows winrm 'server.nightly.bla' -r 'app::base' -x .\administrator -P 'xyz'
That is, specify .\Administrator instead of Administrator. In 0.8.4 this triggers the use of the negotiate protocol for authentication.Tried that, same thing. But I'm not using knife-windows.2) You can also use these commands to test your remote winrm configuration:This should give you a few lines of text that doesn't look like an error (change the IP):test-wsman 192.158.5.105Run this in powershell, enter Administrator and the password on the remote machine$Credential = Get-CredentialYou'll need to trust the remote machine probably for the following tests. The output for test-wsman should be similar to the last time you ran it.winrm set winrm/config/client '@{TrustedHosts="192.168.5.105"}'test-wsman 192.168.5.105 -Authentication Basic -Credential $Credentialtest-wsman 192.168.5.105 -Authentication Negotiate -Credential $Credential3) Finally if you're still having problems, run and share the output of "winrm get winrm/config/service".... Ahhh! (slaps forehead)When running that command I notice thatAllowUnencryptedwasset to false.I'm now getting an error about my .pem file missing, but I can solve that one hopefully.Many thanks! ... and there are some useful commands you've shown me for a Linux admin, using a Mac to build Windows machines! :-)
Archive powered by MHonArc 2.6.16.