Update samy.ps1
This commit is contained in:
3
samy.ps1
3
samy.ps1
@@ -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') {
|
||||||
|
|||||||
Reference in New Issue
Block a user