Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use winrm-elevated by default to run chef-client as a scheduled task #507

Open
hh opened this issue Oct 16, 2016 · 1 comment
Open

use winrm-elevated by default to run chef-client as a scheduled task #507

hh opened this issue Oct 16, 2016 · 1 comment

Comments

@hh
Copy link
Contributor

hh commented Oct 16, 2016

Chef-dk introduced a bug in 0.18.26 (most likely due to upgrading the versions of the winrm gems) that results in the fallowing:

    - write file C:\chef\install.ps1 on base-2012r2-2016-08-01
    [base-2012r2-2016-08-01] File C:\chef\install.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at http://go.microsoft.com/fwlink/?LinkID=135170.
                             At line:1 char:3
                             + & "C:\chef\install.ps1"
                             +   ~~~~~~~~~~~~~~~~~~~~~
                                 + CategoryInfo          : SecurityError: (:) [], PSSecurityException
                                 + FullyQualifiedErrorId : UnauthorizedAccess

See https://github.com/WinRb/winrm-elevated and probably somewhere around https://github.com/chef/chef-provisioning-aws/blob/master/lib/chef/provisioning/aws_driver/driver.rb#L1101

@hh
Copy link
Contributor Author

hh commented Oct 16, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant