mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Set StrictMode version 3.0 (#11563)
This commit is contained in:
@@ -16,7 +16,7 @@ param
|
||||
[ValidateNotNullOrEmpty()]
|
||||
[string] $Path = $PSScriptRoot
|
||||
)
|
||||
Set-StrictMode -Version Latest
|
||||
Set-StrictMode -Version 3.0
|
||||
$ErrorActionPreference = 'Stop'
|
||||
|
||||
function Test-Elevated
|
||||
|
||||
Reference in New Issue
Block a user