Closed lmayorga1980 closed 4 months ago
We recently started to set the execution policy to bypass
for elevated powershell commands. The default policy on windows 2008R2 is Restricted
which prevents users from running any scripts (local or remote). Windows 2012R2 changed that to RemoteSigned
.
For automation scenarios we find bypass
provides a better experience across the board by not blocking any scripts at all. That said, there is also a good argument to change this to RemoteSigned
.
At any rate, you may be able to now omit this command all together. However, if you are trying to change the machine wide default policy you can set a scope
to LocalMachine
and wrap the command in a try
to avoid the error about the local scope.
please reopen with more info if you still need help.
vagrant:
1.9.2
that ships with winrm2.1.2
I was testing the new vagrant version
1.9.2
but I am having some issue with the newer winrm gem deployed with the new vagrant.The following code works well on vagrant
1.8.x
and1.9.x
before1.9.2
that I believe ships with winrm1.8.1