This commit is contained in:
2026-01-24 20:56:46 -05:00
parent 370a2e3907
commit 97f18ef1f4

View File

@@ -5,6 +5,9 @@
Full documentation: https://git.svstools.ca/.../docs/SAMY.help.md Full documentation: https://git.svstools.ca/.../docs/SAMY.help.md
#> #>
Write-Host "[SAMY] Running from: PSCommandPath='$PSCommandPath' PSScriptRoot='$PSScriptRoot'" -ForegroundColor Yellow
#region Safely bypass Restricted Execution Policy #region Safely bypass Restricted Execution Policy
if ($ExecutionContext.SessionState.LanguageMode -ne 'FullLanguage' -or if ($ExecutionContext.SessionState.LanguageMode -ne 'FullLanguage' -or
(Get-ExecutionPolicy) -eq 'Restricted') { (Get-ExecutionPolicy) -eq 'Restricted') {