-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
powershell_script failing with "powershell.exe"' is not recognized as an internal or external command #2009
Comments
When When I echoed the $env:Path inside the code block, it properly prints the contents of the environment variable PATH. |
This appears to be because of the problem addressed in the pull request - #1876 We are adding a path to environment variable PATH using When this pull request is expected to be merged and a new client build will be released? |
@jdmundrawala is working on a patch to include in the Windows cookbook that will work around this issue for now. I would expect we could release that this week. |
This was fixed by #2024. Anyone experiencing any environment issues should be sure they replicate on 11.16.4 or later. |
powershell_script resource is failing with PATH issue where it doesn't find the location of powershell.exe.
Target OS: Windows 2012
Chef Client: 11.14.6
Chef Server: 11.1.0
Stacktrace:
The text was updated successfully, but these errors were encountered: