Update to prefer PS7 if available
This commit is contained in:
@@ -24,6 +24,11 @@ This script will test the passwords of selected domain (defined in ElysiumSettin
|
||||
# Enable verbose output
|
||||
$ErrorActionPreference = 'Stop'
|
||||
Set-StrictMode -Version Latest
|
||||
[string]$commonHelper = Join-Path -Path $PSScriptRoot -ChildPath 'Elysium.Common.ps1'
|
||||
if (-not (Test-Path -LiteralPath $commonHelper)) { throw "Common helper not found at $commonHelper" }
|
||||
. $commonHelper
|
||||
Restart-WithPwshIfAvailable -BoundParameters $PSBoundParameters -UnboundArguments $MyInvocation.UnboundArguments
|
||||
|
||||
$VerbosePreference = "SilentlyContinue"
|
||||
|
||||
$scriptRoot = $PSScriptRoot
|
||||
|
||||
Reference in New Issue
Block a user