Dmitry Nefedov
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
4 additions and
12 deletions
-
Sophia Script/Sophia Script for Windows 11/Module/Sophia.psm1
-
Sophia Script/Sophia Script for Windows 11/Sophia.ps1
|
|
@ -10768,7 +10768,7 @@ function WindowsSandbox |
|
|
|
.NOTES |
|
|
|
Machine-wide |
|
|
|
#> |
|
|
|
function DNSoverHTTPS |
|
|
|
function DNSoverHTTPS ### |
|
|
|
{ |
|
|
|
[CmdletBinding()] |
|
|
|
param |
|
|
@ -10809,7 +10809,7 @@ function DNSoverHTTPS |
|
|
|
if ((Get-CimInstance -ClassName CIM_ComputerSystem).PartOfDomain -eq $false) |
|
|
|
{ |
|
|
|
# Set the DNS servers |
|
|
|
Get-NetAdapter -Physical | Get-NetIPInterface -AddressFamily IPv4 | Get-NetIPConfiguration | Set-DnsClientServerAddress -ServerAddresses $PrimaryDNS, $SecondaryDNS |
|
|
|
Get-NetAdapter -Physical | Get-NetIPInterface -AddressFamily IPv4 | Set-DnsClientServerAddress -ServerAddresses $PrimaryDNS, $SecondaryDNS |
|
|
|
|
|
|
|
$InterfaceGuid = (Get-NetAdapter -Physical).InterfaceGuid |
|
|
|
if (-not (Test-Path -Path "HKLM:\SYSTEM\ControlSet001\Services\Dnscache\InterfaceSpecificParameters\$InterfaceGuid\DohInterfaceSettings\Doh\$PrimaryDNS")) |
|
|
@ -11081,9 +11081,6 @@ function CastToDeviceContext |
|
|
|
.EXAMPLE |
|
|
|
ShareContext -Show |
|
|
|
|
|
|
|
.NOTES |
|
|
|
Showing the "Share" item in the context menu will disable the Windows 10 File Explorer |
|
|
|
|
|
|
|
.NOTES |
|
|
|
Current user |
|
|
|
#> |
|
|
|
|
|
@ -260,13 +260,8 @@ ThisPC -Show |
|
|
|
# Скрыть "Этот компьютер" на рабочем столе (значение по умолчанию) |
|
|
|
# ThisPC -Hide |
|
|
|
|
|
|
|
<# |
|
|
|
Enable the Windows 10 File Explorer |
|
|
|
Enabling the Windows 10 File Explorer will block the "Share" item context menu |
|
|
|
|
|
|
|
Включить проводник из Windows 10 |
|
|
|
Включение проводника из Windows 10 cкроет пункт "Отправить" (поделиться) из контекстного меню |
|
|
|
#> |
|
|
|
# Enable the Windows 10 File Explorer |
|
|
|
# Включить проводник из Windows 10 |
|
|
|
Windows10FileExplorer -Enable |
|
|
|
|
|
|
|
# Disable the Windows 10 File Explorer (default value) |
|
|
|