Note that Windows Server 2012 R2 Core is the “non-GUI” version of Windows Server 2012 R2 Standard. It runs a Windows command prompt when one logs into the console, that’s it.
I’m able to do this, so I know I set up winrm correctly. Node name, password and port# have been changed.
[root@chef-ws ~]# knife winrm “Mynode.domain.com” “dir” -m -x domain\Administrator -P Password -p 1234
Mynode.domain.com Volume in drive C has no label.
Mynode.domain.com Volume Volume Serial Number is EE8C-90E1
Mynode.domain.com Volume Directory of C:\Users\Administrator
Mynode.domain.com Volume
Mynode.domain.com Volume 03/03/2014 04:52 PM .
Mynode.domain.com Volume 03/03/2014 04:52 PM …
Mynode.domain.com Volume 09/18/2014 04:05 PM Contacts
Mynode.domain.com Volume 09/18/2014 04:05 PM Desktop
Mynode.domain.com Volume 09/18/2014 04:05 PM Documents
Mynode.domain.com Volume 09/18/2014 04:05 PM Downloads
Mynode.domain.com Volume 09/18/2014 04:05 PM Favorites
Mynode.domain.com Volume 09/18/2014 04:05 PM Links
Mynode.domain.com Volume 09/18/2014 04:05 PM Music
Mynode.domain.com Volume 09/18/2014 04:05 PM Pictures
Mynode.domain.com Volume 09/18/2014 04:05 PM Saved Games
Mynode.domain.com Volume 09/18/2014 04:05 PM Searches
Mynode.domain.com Volume 09/18/2014 04:05 PM Videos
Mynode.domain.com Volume 0 File(s) 0 bytes
Mynode.domain.com Volume 13 Dir(s) 51,591,532,544 bytes free
I get this during bootstrap.
root@chef-ws ~]# knife bootstrap windows winrm “Mynode.domain.com” -N “london-db1” -x domain\Administrator -P Password -p 1234
Waiting for remote response before bootstrap. Mynode.domain.com.
Mynode.domain.com Response received.
Remote node responded after 0.0 minutes.
Bootstrapping Chef on london-db1.davis.sensus.lab
Mynode.domain.com "Rendering “C:\Users\ADMINI~1\AppData\Local\Temp\bootstrap-5743-1417546598.bat” chunk 1"
Mynode.domain.com "Rendering “C:\Users\ADMINI~1\AppData\Local\Temp\bootstrap-5743-1417546598.bat” chunk 2"
Mynode.domain.com "Rendering “C:\Users\ADMINI~1\AppData\Local\Temp\bootstrap-5743-1417546598.bat” chunk 3"
Mynode.domain.com "Rendering “C:\Users\ADMINI~1\AppData\Local\Temp\bootstrap-5743-1417546598.bat” chunk 4"
Mynode.domain.com "Rendering “C:\Users\ADMINI~1\AppData\Local\Temp\bootstrap-5743-1417546598.bat” chunk 5"
Mynode.domain.com "Rendering “C:\Users\ADMINI~1\AppData\Local\Temp\bootstrap-5743-1417546598.bat” chunk 6"
Mynode.domain.com "Rendering “C:\Users\ADMINI~1\AppData\Local\Temp\bootstrap-5743-1417546598.bat” chunk 7"
Mynode.domain.com "Rendering “C:\Users\ADMINI~1\AppData\Local\Temp\bootstrap-5743-1417546598.bat” chunk 8"
Mynode.domain.com "Rendering “C:\Users\ADMINI~1\AppData\Local\Temp\bootstrap-5743-1417546598.bat” chunk 9"
Mynode.domain.com "Rendering “C:\Users\ADMINI~1\AppData\Local\Temp\bootstrap-5743-1417546598.bat” chunk 10"
Mynode.domain.com "Rendering “C:\Users\ADMINI~1\AppData\Local\Temp\bootstrap-5743-1417546598.bat” chunk 11"
Mynode.domain.com "Rendering “C:\Users\ADMINI~1\AppData\Local\Temp\bootstrap-5743-1417546598.bat” chunk 12"
Mynode.domain.com "Rendering “C:\Users\ADMINI~1\AppData\Local\Temp\bootstrap-5743-1417546598.bat” chunk 13"
Mynode.domain.com “Rendering “C:\Users\ADMINI~1\AppData\Local\Temp\bootstrap-5743-1417546598.bat” chunk 14"
Mynode.domain.com \notepad++”;"c:\Users\Administrator\Desktop\Change was unexpected at this time.
ERROR: Failed to execute command on Mynode.domain.com return code 1
Where can I get a more verbose message that I can share?
Chris