How to debug this ?
Vagrant 1.4.3
Virtual Box 4.36
Windows 7 host
Windows Server 2008 R2 VM
remotely executing a PowerShell .ps1
[Win2k8R2] Running provisioner: shell...
The system cannot find the path specified.
An error occurred executing a remote WinRM command.
Shell: powershell
Command: $old = Get-ExecutionPolicy;
Set-ExecutionPolicy Unrestricted -force;
c:\tmp\vagrant-shell.ps1;
Set-ExecutionPolicy $old -force
Message: Command execution failed with an exit code of 1
vagrant-shell.ps1
if ((Test-Path "C:\vagrant\puppet-3.3.1.msi") -eq $false) {
$webclient = New-Object System.Net.WebClient;
$webclient.DownloadFile("https://downloads.puppetlabs.com/windows/puppet-3.3.1.msi",
"C:\vagrant\puppet-3.3.1.msi")
}
$nics = Get-WmiObject Win32_NetworkAdapterConfiguration |
Where{$_.IPEnabled -eq $true};
foreach($nic in $nics) {
$nic.SetDNSDomain('vagrant.local');
}
--
You received this message because you are subscribed to the Google Groups
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.