w10install/wimscripts/SetupComplete.cmd

15 lines
627 B
Batchfile
Raw Normal View History

2020-12-24 14:58:04 +01:00
@echo off
set SCRIPTS=%WINDIR%\Setup\scripts
2020-12-23 14:46:12 +01:00
2020-12-24 14:58:04 +01:00
rem Disable Windows Hi Animation ...
2020-12-23 14:46:12 +01:00
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v EnableFirstLogonAnimation /t REG_DWORD /d 0 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v EnableFirstLogonAnimation /t REG_DWORD /d 0 /f
2020-12-24 14:58:04 +01:00
rem allow execution of any powershell script ...
powershell -Command ^
"if (Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope LocalMachine) { 'POWERSHELL: Execution Policy set to ALL' }"
rem call powershell stuff ...
powershell %SCRIPTS%\SetupComplete.ps1