You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tiny11Coremaker.ps1
+6-4
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,14 @@
1
1
# Enable debugging
2
2
Set-PSDebug-Trace 1
3
3
4
-
# Check if PowerShell execution is restricted
5
-
if ((Get-ExecutionPolicy) -eq'Restricted') {
6
-
Write-Host"Your current PowerShell Execution Policy is set to Restricted, which prevents scripts from running. Do you want to change it to RemoteSigned? (yes/no)"
4
+
# Check if PowerShell execution is Restricted or AllSigned or Undefined
Write-Host"Your current PowerShell Execution Policy is set to $curpolicy, which prevents scripts from running. Do you want to change it to RemoteSigned? (yes/no)"
Copy file name to clipboardExpand all lines: tiny11maker.ps1
+6-4
Original file line number
Diff line number
Diff line change
@@ -14,12 +14,14 @@ if (-not $ScratchDisk) {
14
14
15
15
Write-Output"Scratch disk set to $ScratchDisk"
16
16
17
-
# Check if PowerShell execution is restricted
18
-
if ((Get-ExecutionPolicy) -eq'Restricted') {
19
-
Write-Host"Your current PowerShell Execution Policy is set to Restricted, which prevents scripts from running. Do you want to change it to RemoteSigned? (yes/no)"
17
+
# Check if PowerShell execution is Restricted or AllSigned or Undefined
Write-Host"Your current PowerShell Execution Policy is set to $curpolicy, which prevents scripts from running. Do you want to change it to RemoteSigned? (yes/no)"
0 commit comments