pbolduc / packer-hyperv

Hyperv plugin for Packer.io
Other
13 stars 6 forks source link

Revert global settings changed during packing #6

Closed pbolduc closed 9 years ago

pbolduc commented 10 years ago

In a number of the steps, the host's environment is changed. For example, in step_set_remoting.go the PowerShell Remoting is set explicitly to the new VM's IP address. This will clobber any existing settings.

Better would be to track what was added and remove the added setting during cleanup.

pbolduc commented 9 years ago

I have removed the requirement to requiring the need to modify the ExecutionPolicy on the host. Almost all of powershell code is now executed as a script file using -ExecutionPolicy Bypass.

Trusted host list is now appended to and removed at the end. Any existing settings will be retained.