From 9ac21e06cf453e2ec606aa2fcf0b9364d81bfa60 Mon Sep 17 00:00:00 2001 From: Chris Long Date: Tue, 23 Jun 2020 23:22:35 -0700 Subject: [PATCH] Update VM tools --- Azure/Terraform/files/winrm.ps1 | 1 + Packer/scripts/vm-guest-tools.bat | 4 ++-- ci/manual_machine_bootstrap.sh | 4 ++-- ci/manual_machine_bootstrap_vmware.sh | 10 +++++----- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/Azure/Terraform/files/winrm.ps1 b/Azure/Terraform/files/winrm.ps1 index 2aee1c8..27f214b 100644 --- a/Azure/Terraform/files/winrm.ps1 +++ b/Azure/Terraform/files/winrm.ps1 @@ -15,6 +15,7 @@ powershell.exe -c "winrm set winrm/config/service '@{AllowUnencrypted=\`"true\`" powershell.exe -c "winrm set winrm/config/service/auth '@{Basic=\`"true\`"}'" powershell.exe -c "winrm set winrm/config/client/auth '@{Basic=\`"true\`"}'" powershell.exe -c "winrm set winrm/config/listener?Address=*+Transport=HTTP '@{Port=\`"5985\`"}'" +powershell.exe -c "winrm set winrm/config/client '@{TrustedHosts=\`"*\`"}'" netsh advfirewall firewall set rule group="Windows Remote Administration" new enable=yes netsh advfirewall firewall set rule name="Windows Remote Management (HTTP-In)" new enable=yes action=allow remoteip=any reg add HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce /v StartWinRM /t REG_SZ /f /d "cmd.exe /c 'sc config winrm start= auto & sc start winrm'" diff --git a/Packer/scripts/vm-guest-tools.bat b/Packer/scripts/vm-guest-tools.bat index e4fb851..ce982f8 100755 --- a/Packer/scripts/vm-guest-tools.bat +++ b/Packer/scripts/vm-guest-tools.bat @@ -17,7 +17,7 @@ if exist "C:\Users\vagrant\windows.iso" ( ) if not exist "C:\Windows\Temp\windows.iso" ( - powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; (New-Object System.Net.WebClient).DownloadFile('https://softwareupdate.vmware.com/cds/vmw-desktop/ws/15.5.2/15785246/windows/packages/tools-windows.tar', 'C:\Windows\Temp\vmware-tools.tar')"