chef / knife-windows

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

knife winrm not working #428

Closed huamichaelchen closed 6 years ago

huamichaelchen commented 7 years ago

Hi, Recently I'm trying to run knife winrm command to do some chef deployment through bamboo. However, I'm getting this error all of sudden.

Here are some version info that could be helpful :)

FATAL: Cannot find subcommand for: 'winrm role:victoria AND chef_environment:dev13 del /Q C:\chef\cache\*.zip & del /Q C:\chef\cache\*.md5 & del /Q C:\chef\cache\*.msi & del /Q C:\chef\cache\*.exe & del /Q C:\chef\cache\*.gz & del /Q C:\chef\cache\*.conf -x SOMEUSER -P SOMEPASSWORD -t ssl -p 5986 -f C:\work\SOME.pem --config C:\work\.chef\knife-12.rb' FATAL: Cannot find subcommand for: 'winrm role:SOMEROLE AND chef_environment:dev13 chef-client -x SOMEUSER -P SOMEPASSWORD -t ssl -p 5986 -f C:\work\SOME.pem --config C:\work\.chef\knife-12.rb'

cheeseplus commented 6 years ago

This appears to be an env issue, not really one with the knife-windows code. If this condition still exists please open a new issue with current versions of the software.