Update samy.ps1

This commit is contained in:
2026-01-25 01:40:11 -05:00
parent a871c138b7
commit 9f70f908f5

View File

@@ -5,9 +5,6 @@
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') {