@@ -76,19 +76,19 @@ echo AllSigned --^> AS
7676echo RemoteSigned --^ > RS (recommended^ )
7777echo Unrestricted --^ > UR
7878echo Bypass --^ > BY (not recommended^ )
79- SET /P " choice = Your choice?..."
80- IF /I " %choice% " == " RT" (
79+ set /P " choice = Your choice?..."
80+ if /I " %choice% " == " RT" (
8181 goto RT
82- ) else IF /I " %choice% " == " AS" (
82+ ) else if /I " %choice% " == " AS" (
8383 goto AS
84- ) else IF /I " %choice% " == " RS" (
84+ ) else if /I " %choice% " == " RS" (
8585 goto RS
86- ) else IF /I " %choice% " == " UR" (
86+ ) else if /I " %choice% " == " UR" (
8787 goto UR
88- ) else IF /I " %choice% " == " BY" (
88+ ) else if /I " %choice% " == " BY" (
8989 goto BY
9090) else (
91- ECHO " %choice% " is not a valid choice. Please type one of the given two letter shorthands for the execution level(capitalization doesn't matter^ ).
91+ echo " %choice% " is not a valid choice. Please type one of the given two letter shorthands for the execution level(capitalization doesn't matter^ ).
9292 pause
9393 cls
9494 goto Start
@@ -98,38 +98,38 @@ IF /I "%choice%" == "RT" (
9898powershell -command " & {Set-ExecutionPolicy -ExecutionPolicy Restricted -Force}"
9999echo Success, PowerShell Execution Policy set to
100100powershell -command " & {Get-ExecutionPolicy}"
101- echo cmd will now close in 10 seconds.
101+ echo Command prompt will now close in 10 seconds.
102102timeout 10
103103exit
104104
105105:AS
106106powershell -command " & {Set-ExecutionPolicy -ExecutionPolicy AllSigned -Force}"
107107echo Success, PowerShell Execution Policy set to
108108powershell -command " & {Get-ExecutionPolicy}"
109- echo cmd will now close in 10 seconds.
109+ echo Command prompt will now close in 10 seconds.
110110timeout 10
111111exit
112112
113113:RS
114114powershell -command " & {Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Force}"
115115echo Success, PowerShell Execution Policy set to
116116powershell -command " & {Get-ExecutionPolicy}"
117- echo cmd will now close in 10 seconds.
117+ echo Command prompt will now close in 10 seconds.
118118timeout 10
119119exit
120120
121121:UR
122122powershell -command " & {Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Force}"
123123echo Success, PowerShell Execution Policy set to
124124powershell -command " & {Get-ExecutionPolicy}"
125- echo cmd will now close in 10 seconds.
125+ echo Command prompt will now close in 10 seconds.
126126timeout 10
127127exit
128128
129129:BY
130130powershell -command " & {Set-ExecutionPolicy -ExecutionPolicy Bypass -Force}"
131131echo Success, PowerShell Execution Policy set to
132132powershell -command " & {Get-ExecutionPolicy}"
133- echo cmd will now close in 10 seconds.
133+ echo Command prompt will now close in 10 seconds.
134134timeout 10
135135exit
0 commit comments