fix runonce script for .Renviron

This commit is contained in:
abrown38 committed 2025-06-09 12:33:18 +01:00
1 parent f4dfc67e55
commit cb7abdfaf6
10 files changed
+40 -19

No files matched your search

@@ -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 "<local>,{{ win_project }}-choc.{{ win_project }}.loc" -Type String
Set-GPRegistryValue -Name "Squid Proxy" -ValueName "ProxyOverride" -key "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings" -Value "<local>,{{ win_project }}-choc.{{ win_project }}.loc,{{ win_project }}-wsus.{{ 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