$ErrorActionPreference='Stop' for AllUsersAllHosts

This commit is contained in:
Aleksandr Chebotov
2020-10-02 10:59:05 +03:00
parent 42d210e4e7
commit 0cd68997b6
14 changed files with 5 additions and 26 deletions

View File

@@ -30,6 +30,9 @@ function Disable-UserAccessControl {
Write-Host "User Access Control (UAC) has been disabled."
}
# Enable $ErrorActionPreference='Stop' for AllUsersAllHosts
Add-Content -Path $profile.AllUsersAllHosts -Value '$ErrorActionPreference="Stop"'
# Set TLS1.2
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor "Tls12"