Browse Source

Fix DNSoverHTTPS

pull/740/head 7.3.0
Dmitry Nefedov 1 month ago
parent
commit
f370e91800
  1. 12
      src/Sophia_Script_for_Windows_11/Module/Sophia.psm1
  2. 12
      src/Sophia_Script_for_Windows_11_ARM/Module/Sophia.psm1
  3. 12
      src/Sophia_Script_for_Windows_11_ARM_PowerShell_7/Module/Sophia.psm1
  4. 12
      src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Sophia.psm1
  5. 12
      src/Sophia_Script_for_Windows_11_LTSC_2024_PowerShell_7/Module/Sophia.psm1
  6. 12
      src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1

12
src/Sophia_Script_for_Windows_11/Module/Sophia.psm1

@ -9938,12 +9938,12 @@ function DNSoverHTTPS
)
# Remove all policies in order to make changes visible in UI
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient -Name DoHPolicy -Force -ErrorAction Ignore
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient -Name DohPolicySetting -Force -ErrorAction Ignore
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient -Name DotPolicySetting -Force -ErrorAction Ignore
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows NT\DNSClient -Name DoHPolicy -Type CLEAR
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows NT\DNSClient -Name DohPolicySetting -Type CLEAR
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows NT\DNSClient -Name DotPolicySetting -Type CLEAR
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" -Name DoHPolicy -Force -ErrorAction Ignore
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" -Name DohPolicySetting -Force -ErrorAction Ignore
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" -Name DotPolicySetting -Force -ErrorAction Ignore
Set-Policy -Scope Computer -Path "SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" -Name DoHPolicy -Type CLEAR
Set-Policy -Scope Computer -Path "SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" -Name DohPolicySetting -Type CLEAR
Set-Policy -Scope Computer -Path "SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" -Name DotPolicySetting -Type CLEAR
# Determining whether Hyper-V is enabled
# After enabling Hyper-V feature a virtual switch being created, so we need to use different method to isolate the proper adapter

12
src/Sophia_Script_for_Windows_11_ARM/Module/Sophia.psm1

@ -9866,12 +9866,12 @@ function DNSoverHTTPS
)
# Remove all policies in order to make changes visible in UI
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient -Name DoHPolicy -Force -ErrorAction Ignore
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient -Name DohPolicySetting -Force -ErrorAction Ignore
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient -Name DotPolicySetting -Force -ErrorAction Ignore
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows NT\DNSClient -Name DoHPolicy -Type CLEAR
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows NT\DNSClient -Name DohPolicySetting -Type CLEAR
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows NT\DNSClient -Name DotPolicySetting -Type CLEAR
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" -Name DoHPolicy -Force -ErrorAction Ignore
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" -Name DohPolicySetting -Force -ErrorAction Ignore
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" -Name DotPolicySetting -Force -ErrorAction Ignore
Set-Policy -Scope Computer -Path "SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" -Name DoHPolicy -Type CLEAR
Set-Policy -Scope Computer -Path "SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" -Name DohPolicySetting -Type CLEAR
Set-Policy -Scope Computer -Path "SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" -Name DotPolicySetting -Type CLEAR
# Determining whether Hyper-V is enabled
# After enabling Hyper-V feature a virtual switch being created, so we need to use different method to isolate the proper adapter

12
src/Sophia_Script_for_Windows_11_ARM_PowerShell_7/Module/Sophia.psm1

@ -9877,12 +9877,12 @@ function DNSoverHTTPS
)
# Remove all policies in order to make changes visible in UI
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient -Name DoHPolicy -Force -ErrorAction Ignore
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient -Name DohPolicySetting -Force -ErrorAction Ignore
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient -Name DotPolicySetting -Force -ErrorAction Ignore
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows NT\DNSClient -Name DoHPolicy -Type CLEAR
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows NT\DNSClient -Name DohPolicySetting -Type CLEAR
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows NT\DNSClient -Name DotPolicySetting -Type CLEAR
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" -Name DoHPolicy -Force -ErrorAction Ignore
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" -Name DohPolicySetting -Force -ErrorAction Ignore
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" -Name DotPolicySetting -Force -ErrorAction Ignore
Set-Policy -Scope Computer -Path "SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" -Name DoHPolicy -Type CLEAR
Set-Policy -Scope Computer -Path "SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" -Name DohPolicySetting -Type CLEAR
Set-Policy -Scope Computer -Path "SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" -Name DotPolicySetting -Type CLEAR
# Determining whether Hyper-V is enabled
# After enabling Hyper-V feature a virtual switch being created, so we need to use different method to isolate the proper adapter

12
src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Sophia.psm1

@ -8743,12 +8743,12 @@ function DNSoverHTTPS
)
# Remove all policies in order to make changes visible in UI
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient -Name DoHPolicy -Force -ErrorAction Ignore
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient -Name DohPolicySetting -Force -ErrorAction Ignore
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient -Name DotPolicySetting -Force -ErrorAction Ignore
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows NT\DNSClient -Name DoHPolicy -Type CLEAR
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows NT\DNSClient -Name DohPolicySetting -Type CLEAR
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows NT\DNSClient -Name DotPolicySetting -Type CLEAR
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" -Name DoHPolicy -Force -ErrorAction Ignore
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" -Name DohPolicySetting -Force -ErrorAction Ignore
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" -Name DotPolicySetting -Force -ErrorAction Ignore
Set-Policy -Scope Computer -Path "SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" -Name DoHPolicy -Type CLEAR
Set-Policy -Scope Computer -Path "SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" -Name DohPolicySetting -Type CLEAR
Set-Policy -Scope Computer -Path "SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" -Name DotPolicySetting -Type CLEAR
# Determining whether Hyper-V is enabled
# After enabling Hyper-V feature a virtual switch being created, so we need to use different method to isolate the proper adapter

12
src/Sophia_Script_for_Windows_11_LTSC_2024_PowerShell_7/Module/Sophia.psm1

@ -8743,12 +8743,12 @@ function DNSoverHTTPS
)
# Remove all policies in order to make changes visible in UI
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient -Name DoHPolicy -Force -ErrorAction Ignore
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient -Name DohPolicySetting -Force -ErrorAction Ignore
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient -Name DotPolicySetting -Force -ErrorAction Ignore
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows NT\DNSClient -Name DoHPolicy -Type CLEAR
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows NT\DNSClient -Name DohPolicySetting -Type CLEAR
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows NT\DNSClient -Name DotPolicySetting -Type CLEAR
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" -Name DoHPolicy -Force -ErrorAction Ignore
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" -Name DohPolicySetting -Force -ErrorAction Ignore
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" -Name DotPolicySetting -Force -ErrorAction Ignore
Set-Policy -Scope Computer -Path "SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" -Name DoHPolicy -Type CLEAR
Set-Policy -Scope Computer -Path "SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" -Name DohPolicySetting -Type CLEAR
Set-Policy -Scope Computer -Path "SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" -Name DotPolicySetting -Type CLEAR
# Determining whether Hyper-V is enabled
# After enabling Hyper-V feature a virtual switch being created, so we need to use different method to isolate the proper adapter

12
src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1

@ -9950,12 +9950,12 @@ function DNSoverHTTPS
)
# Remove all policies in order to make changes visible in UI
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient -Name DoHPolicy -Force -ErrorAction Ignore
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient -Name DohPolicySetting -Force -ErrorAction Ignore
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient -Name DotPolicySetting -Force -ErrorAction Ignore
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows NT\DNSClient -Name DoHPolicy -Type CLEAR
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows NT\DNSClient -Name DohPolicySetting -Type CLEAR
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows NT\DNSClient -Name DotPolicySetting -Type CLEAR
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" -Name DoHPolicy -Force -ErrorAction Ignore
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" -Name DohPolicySetting -Force -ErrorAction Ignore
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" -Name DotPolicySetting -Force -ErrorAction Ignore
Set-Policy -Scope Computer -Path "SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" -Name DoHPolicy -Type CLEAR
Set-Policy -Scope Computer -Path "SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" -Name DohPolicySetting -Type CLEAR
Set-Policy -Scope Computer -Path "SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" -Name DotPolicySetting -Type CLEAR
# Determining whether Hyper-V is enabled
# After enabling Hyper-V feature a virtual switch being created, so we need to use different method to isolate the proper adapter

Loading…
Cancel
Save