chef / knife-windows

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

Any plans to add elevated shell to bootstrap command #415

Closed jugatsu closed 7 years ago

jugatsu commented 7 years ago

Are there any plans to add elevated shell to knife bootstrap windows winrm commad? It would be super useful.

ak@ak-pc:~$ knife bootstrap windows winrm -m 192.168.55.10 -x vagrant --winrm-shell elevated WARNING: No knife configuration file found WARNING: The cmd shell is the only valid winrm-shell for 'knife bootstrap windows winrm'. Switching to the cmd shell.

mwrock commented 7 years ago

Not in the immediate future. The challenge is that a lot of the code involved in bootstrap must work for both winrm and ssh. The powershell and elevated shells cannot currently be used over an ssh transport. That may change as Microsoft's SSH support progresses but right now bootstraop needs to remain cmd.

jugatsu commented 7 years ago

OK.