This repository has been archived by the owner on Feb 24, 2021. It is now read-only.
Initialize-TestEnvironment will fail if your box is Domain Joined machine #68
Labels
bug
The issue is a bug.
Description
Initialize-TestEnvironment will failed to change Execution policy if Box is joined to Domain.
Exception
When you run like other DSC Resource doing, you will get Security Error on L383
Reason
Issue happen when Domain Joined machine, or any other condition may apply, had restricted to change ExecutionPolicy. You can reproduce error by following on Domain Joined Box.
Proposal fix
You can avoid issue by just change execution policy to only current Process. As this function aim to remove any side-effect with Test, I propose limit to current process is much better.
The text was updated successfully, but these errors were encountered: