-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate.cmd
19 lines (15 loc) · 988 Bytes
/
update.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
@echo off
title Wiki Conversion Updater
REM Execution Policy
REM Read more here: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_execution_policies
REM powershell.exe -executionpolicy bypass -file "update.ps1"
powershell.exe -file "update.ps1"
if errorlevel 1 (
echo ^<bergerb^> You probably have not set your Execution Policy. Be careful when executing scripts from the internet.
echo ^<bergerb^> Please verify my scripts, to be sure that I am not doing anything sketchy :^)
echo ^<bergerb^> The easiest way is to add "-executionpolicy bypass" to the command above
echo ^<bergerb^> Or set your Execution Policy with an elevated Powershell-Prompt "Set-ExecutionPolicy RemoteSigned"
echo ^<bergerb^> AND make sure the .ps1 scripts are not Security-Download-Blocked (File Properties, check "Unblock"^)
echo ^<bergerb^> https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_execution_policies
pause
)