Last active
July 24, 2018 18:18
-
-
Save riipandi/fb5a620788de06032dcc49f57d290815 to your computer and use it in GitHub Desktop.
Some Windows 10 Tweaks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
cls && echo. | |
:: Edit Hosts | |
echo. && echo Patching host file | |
set host=%windir%\System32\drivers\etc\hosts | |
type nul > %host% | |
@echo 127.0.0.1 localhost >> %host% | |
@echo 127.0.0.1 %computername% >> %host% | |
for %%i in ( | |
cfs.uzone.id | |
cfs2.uzone.id | |
u-ad.info | |
cfs.u-ad.info | |
cfs2.uadexchange.com | |
) do ( @echo 0.0.0.0 %%i >> %host% ) | |
:: notepad %host% | |
echo. && pause |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
for %%I in (D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist "%%I:\\sources\install.wim" set setupdrv=%%I | |
if defined setupdrv ( | |
echo Found drive %setupdrv% | |
echo Installing .NET Framework 3.5... | |
Dism /online /enable-feature /featurename:NetFX3 /All /Source:%setupdrv%:\sources\sxs /LimitAccess | |
echo. | |
echo .NET Framework 3.5 should be installed | |
echo. | |
) else ( | |
echo No installation media found! | |
echo Insert DVD or USB flash drive and run this file once again. | |
echo. | |
) | |
pause |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
cls && echo. | |
:: Remove OneDrive | |
set x86="%SYSTEMROOT%\System32\OneDriveSetup.exe" | |
set x64="%SYSTEMROOT%\SysWOW64\OneDriveSetup.exe" | |
echo. | |
echo Closing OneDrive process. | |
taskkill /f /im OneDrive.exe > NUL 2>&1 | |
ping 127.0.0.1 -n 5 > NUL 2>&1 | |
echo Uninstalling OneDrive. | |
if exist %x64% ( | |
%x64% /uninstall | |
) else ( | |
%x86% /uninstall | |
) | |
ping 127.0.0.1 -n 10 > NUL 2>&1 | |
echo Removing OneDrive leftovers. | |
rd "%USERPROFILE%\OneDrive" /Q /S > NUL 2>&1 | |
rd "C:\OneDriveTemp" /Q /S > NUL 2>&1 | |
rd "%LOCALAPPDATA%\Microsoft\OneDrive" /Q /S > NUL 2>&1 | |
rd "%PROGRAMDATA%\Microsoft OneDrive" /Q /S > NUL 2>&1 | |
echo Removing OneDrive from the Explorer Side Panel. | |
REG DELETE "HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f > NUL 2>&1 | |
REG DELETE "HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f > NUL 2>&1 | |
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\DelegateFolders\{F5FB2C77-0E2F-4A16-A381-3E560C68BC83}" /f > NUL 2>&1 | |
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\DelegateFolders\{F5FB2C77-0E2F-4A16-A381-3E560C68BC83}" /f > NUL 2>&1 | |
pause |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
cls && echo. | |
:: Set Owner Name | |
set /p getName= Your Real Name : | |
set /p getOrgn= Organization : | |
set /p getHost= Computer Name : | |
echo. | |
IF DEFINED getName REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /V RegisteredOwner /T REG_SZ /D "%getName%" /F | |
IF DEFINED getOrgn REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /V RegisteredOrganization /T REG_SZ /D "%getOrgn%" /F | |
IF DEFINED getHost powershell "Rename-Computer -NewName %getHost%" | |
:: Some Tweaks | |
echo. && echo Tweaking Windows Configuration | |
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System" /V EnableSmartScreen /T REG_dWORD /D 1 /F | |
REG ADD "HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor" /V CompletionChar /T REG_dWORD /D 5000 /F | |
REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power" /V HiberbootEnabled /T REG_dWORD /D 0 /F | |
REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\WebClient\Parameters" /V FileSizeLimitInBytes /T REG_dWORD /D 4294967295 /F | |
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System" /V DisableLogonBackgroundImage /T REG_dWORD /D 0 /F | |
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /V shutdownwithoutlogon /T REG_dWORD /D 1 /F | |
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\BootAnimation" /V DisableStartupSound /T REG_dWORD /D 1 /F | |
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize" /V AppsUseLightTheme /T REG_dWORD /D 0 /F | |
REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /V ClearPageFileAtShutDown /T REG_dWORD /D 1 /F | |
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /V AllowCortana /T REG_dWORD /D 1 /F | |
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /V AllowTelemetry /T REG_dWORD /D 0 /F | |
REG ADD "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\MTCUVC" /V EnableMtcUvc /T REG_dWORD /D 1 /F | |
REG ADD "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\ImmersiveShell" /V UseWin32BatteryFlyout /T REG_dWORD /D 0 /F | |
REG ADD "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\ImmersiveShell" /V UseWin32TrayClockExperience /T REG_dWORD /D 1 /F | |
REG ADD "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\ImmersiveShell" /V UseActionCenterExperience /T REG_dWORD /D 0 /F | |
REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation" /V RealTimeIsUniversal /T REG_dWORD /D 0 /F | |
REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TCPIP6\Parameters" /V DisabledComponents /T REG_dWORD /D 0x000000ff /F | |
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /V UseOLEDTaskbarTransparency /T REG_dWORD /D 0 /F | |
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer" /V NoCustomizeThisFolder /T REG_dWORD /D 1 /F | |
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer" /V NoDriveTypeAutoRun /T REG_dWORD /D 0x000000ff /F | |
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" /V "{e2bf9676-5f8f-435c-97eb-11607a5bedf7}" /T REG_SZ /F | |
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" /V "{596AB062-B4D2-4215-9F74-E9109B0A8153}" /T REG_SZ /F | |
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Serialize" /V StartupDelayInMSec /T REG_dWORD /D 0 /F | |
REG ADD "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /V SubscribedContent-310093Enabled /T REG_dWORD /D 0 /F | |
REG ADD "HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer" /V DisableNotificationCenter /T REG_dWORD /D 1 /F | |
REG ADD "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /V ExtendedUIHoverTime /T REG_dWORD /D 120000 /F | |
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /V DontUsePowerShellOnWinX /T REG_dWORD /D 1 /F | |
REG ADD "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People" /V PeopleBand /T REG_dWORD /D 0 /F | |
REG ADD "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /V TaskbarSmallIcons /T REG_dWORD /D 1 /F | |
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer" /V EnableAutoTray /T REG_dWORD /D 0 /F | |
::echo. && echo Disable Automatic Updates | |
::REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /V NoAutoUpdate /T REG_dWORD /D 0 /F | |
::REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /V AUOptions /T REG_dWORD /D 2 /F | |
::REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /V ScheduledInstallDay /T REG_dWORD /D 0 /F | |
::REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /V ScheduledInstallTime /T REG_dWORD /D 3 /F | |
echo. && echo Removing Unused Context Menu | |
REG DELETE "HKEY_CLASSES_ROOT\CLSID\{09A47860-11B0-4DA5-AFA5-26D86198A780}" /F | |
REG DELETE "HKEY_CLASSES_ROOT\Folder\ShellEx\ContextMenuHandlers\Library Location" /F | |
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}" /F | |
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}" /F | |
::REG DELETE "HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers\NvCplDesktopContext" /F | |
::REG DELETE "HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers\igfxcui" /F | |
::REG DELETE "HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers\igfxDTCM" /F | |
:: Windows Subsytem Linux | |
set /p setWSL= Do you want activate Linux Subsystem? y/n : | |
if "%setWSL%" == "y" lxrun /install /y | |
echo. && pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment