mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
$ErrorActionPreference='Stop' for AllUsersAllHosts
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user