blob: 3d6dc96d446973f0400d03f5291cd17896241553 (
plain) (
tree)
|
|
rem intro
@echo off
title Windows 10 Prep Script
pushd "%~dp0"
cls
echo.
echo :: Windows 10 Prep Script
echo.
echo Please review and be aware of what this script does before running it.
echo There is no uninstaller, and backups won't be created.
echo.
rem check permissions
net session >nul 2>&1
if %errorLevel% == 0 (
echo You won't be prompted any further.
echo Press [enter] to begin.
echo.
set /p=
) else (
echo This script requires administrator rights.
echo Press any key to exit
pause >nul
exit
)
rem Process
<NUL set /p=:: System Tweaks...
call :system_tweaks > nul
echo done
<NUL set /p=:: Registry Tweaks...
call :registry_tweaks > nul
echo done
<NUL set /p=:: Removing Software...
call :remove_software > nul
echo done
<NUL set /p=:: Installing Software...
call :install_software > nul
echo done
<NUL set /p=:: Clean Up...
call :cleanup > nul
echo done
rem complete
echo.
echo :: Script complete
echo.
echo Restart whenever you fancy.
echo Press [enter] to exit.
echo.
set /p=
:eof
exit
:system_tweaks
rem enable f8 boot menu
bcdedit /set {default} bootmenupolicy legacy
rem enable admin account
net user Administrator /active:yes
rem label system drive
label %systemdrive%System
rem disable hibernation, removing hiberfil.sys
powercfg -h off
rem change ntp server addresses and resync time
w32tm /config /syncfromflags:manual /manualpeerlist:"0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org 3.pool.ntp.org"
w32tm /resync /no
|