summaryrefslogblamecommitdiffstats
path: root/win10-prep.bat
blob: 6835464b43d2c20133c6f20f57c37136e9859387 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12


         
                            







                                                                               












                                                       

           
                               
                         

                                 
                           

                                   
                           

                                     
                            

                          
                   
          

            
     





                                    
    

















                                                                                                                 
                                     













                                                                                                          












                                                                                                                           















                                                                                                                                                                                                                              
                                                                                                                                        
                            
                                                                                                                                                                                                                                                                                                                                               
                                                    
                                                                                                          
                                                                                                                      

                                                                                                                       
                                                                                                                   
                                                                                                                                         
                                                                                                              

                                                                                                                  
                                                             


                                                                                                  






                                                                                                                             


































                                                                                                                                                                      
                                                                                                                        


                                                                                                                        
                                                                                                                           
                                                                                                            
                                                                                                                                       
                                                                  

                                                                                                                               










                                                                                             


                                                                                                    





                                                                                                             







                                                                                                                            




                                                                                                                 










                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
                                                                                                                        



                                                                                                                                               

                                                                                                              

                                                                                        






























                                                                                                                                             








                                                                                                                                                                     



                                                                                                                      





                                                                                                                                                    



                                              

                                                                              



                                                                                               
                                                                                                           


                                                                                         








                                                                                                                                               



                                                                                      







                                                                                                             

                                                                                                         
                      















                                                                                                                              





































                                                                                                                                                                                                        
                                                                                               








                                                                                                                                         
                                                            




                                                                             
                                                      












                                                                                                                                                                


                                                                                               








                                                                                            
                    
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 /nowait
rem don't require signin after wakeup
powercfg /SETDCVALUEINDEX SCHEME_CURRENT SUB_NONE CONSOLELOCK 0
powercfg /SETACVALUEINDEX SCHEME_CURRENT SUB_NONE CONSOLELOCK 0
rem batch file shortcuts
echo cls