From a6a235c34427917647d6c739379d69bcc93274b7 Mon Sep 17 00:00:00 2001 From: abrown38 Date: Mon, 2 Sep 2024 13:34:58 +0100 Subject: [PATCH] update no proxy list --- .../roles/win_domain_controller/templates/proxy_gpo.ps1.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/roles/win_domain_controller/templates/proxy_gpo.ps1.j2 b/ansible/roles/win_domain_controller/templates/proxy_gpo.ps1.j2 index ceaf70e..f745e35 100644 --- a/ansible/roles/win_domain_controller/templates/proxy_gpo.ps1.j2 +++ b/ansible/roles/win_domain_controller/templates/proxy_gpo.ps1.j2 @@ -1,7 +1,7 @@ New-GPO -Name "Squid Proxy" -comment "Configure Client VMs to use Squid HTTP proxy" Set-GPRegistryValue -Name "Squid Proxy" -ValueName "ProxyEnable" -key "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings" -Value 1 -Type DWord Set-GPRegistryValue -Name "Squid Proxy" -ValueName "ProxyServer" -key "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings" -Value "{{ proxy_address }}" -Type String -Set-GPRegistryValue -Name "Squid Proxy" -ValueName "ProxyOverride" -key "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings" -Value "" -Type String +Set-GPRegistryValue -Name "Squid Proxy" -ValueName "ProxyOverride" -key "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings" -Value ",{{ win_project }}-choc.{{ win_project }}.loc" -Type String Set-GPRegistryValue -Name "Squid Proxy" -ValueName "Proxy" -key "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Control Panel" -Value 1 -Type DWord $DomainInfo = Get-ADDomain @@ -10,4 +10,4 @@ $workbenchOU = (Get-ADOrganizationalUnit -Identity "OU=Workbench,$DomainOU").Dis New-GPLink -Name "Squid Proxy" -Target $workbenchOU -Write-Output "THIS SCRIPT ACTUALLY RAN" | Out-File -FilePath 'C:\eidf\ProxyScript.txt' \ No newline at end of file +Write-Output "THIS SCRIPT ACTUALLY RAN" | Out-File -FilePath 'C:\eidf\ProxyScript.txt'