You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I saw this error when I tried to do chef-solo provision.
After some investigation, I find that C:\tmp\vagrant-chef-1\cheftask.ps1 double-quotes the windows password:
$ grep pass ./lib/vagrant-windows/scripts/cheftask.ps1.erb
schtasks /create /tn "chef-solo" /xml "<%= options[:chef_task_xml] %>" /ru "<%= options[:user] %>" /rp "<%= options[:pass] %>
If the password contains a "$", it will lead to this "Logon failure" error because powershell treats "$..." as a variable which normally results in an empty string.
So, the password should be single-quoted.
The text was updated successfully, but these errors were encountered:
I saw this error when I tried to do chef-solo provision.
After some investigation, I find that C:\tmp\vagrant-chef-1\cheftask.ps1 double-quotes the windows password:
$ grep pass ./lib/vagrant-windows/scripts/cheftask.ps1.erb
schtasks /create /tn "chef-solo" /xml "<%= options[:chef_task_xml] %>" /ru "<%= options[:user] %>" /rp "<%= options[:pass] %>
If the password contains a "$", it will lead to this "Logon failure" error because powershell treats "$..." as a variable which normally results in an empty string.
So, the password should be single-quoted.
The text was updated successfully, but these errors were encountered: