REM @echo off
echo The bat file's path is %~dp0
:: BatchGotAdmin
:-------------------------------------
REM --> Check for permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
REM --> If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (
echo Requesting administrative privileges...
goto UACPrompt
) else ( goto gotAdmin )
:UACPrompt
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
"%temp%\getadmin.vbs"
exit /B
:gotAdmin
if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" )
pushd "%CD%"
CD /D "%~dp0"
:--------------------------------------
Reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\SystemRestore" /v "DisableSR" /t REG_DWORD /d "1" /f
Reg.exe add "HKLM\SOFTWARE\ASUS\ASUS Smart Gesture" /v "AutoSetMaxPower" /t REG_DWORD /d "0" /f
REM ; Hide Onedrive on my computer (64bit)
REM reg.exe add "HKCR\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /v "System.IsPinnedToNameSpaceTree" /t REG_DWORD /d "0" /f
REM Reg.exe add "HKCR\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /v "System.IsPinnedToNameSpaceTree" /t REG_DWORD /d "0" /f
REM remove HKCU/run/onedrive from registry
REM reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run /v OneDrive /f
REM ;disable onedrive (may not work)
REM Reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows\OneDrive" /v "DisableFileSyncNGSC " /t REG_DWORD /d "1" /f
Reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SoftLandingEnabled" /t REG_DWORD /d "0" /f
REM ; Tutorial: http://www.tenforums.com/tutorials/59897-file-explorer-sync-provider-notifications-hide-show-windows-10-a.html
Reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowSyncProviderNotifications" /t REG_DWORD /d "0" /f
REM ;Remove both Search and Task View Icons from Windows 10 Taskbar
Reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /v "SearchboxTaskbarMode" /t REG_DWORD /d "0" /f
Reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowTaskViewButton" /t REG_DWORD /d "0" /f
REM ; Do not deliver updated
Reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" /v "DODownloadMode" /t REG_DWORD /d "0" /f
Reg.exe add "HKEY_USERS\S-1-5-20\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Settings" /v "DownloadMode" /t REG_DWORD /d "0" /f
REM ; Explorer quick access hide recent folders
Reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer" /v "ShowFrequent" /t REG_DWORD /d "0" /f
REM ; Start to This pc
Reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "LaunchTo" /t REG_DWORD /d "1" /f
REM ;no autoplay
Reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers" /v "DisableAutoplay" /t REG_DWORD /d "1" /f
Reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoDriveTypeAutoRun" /t REG_DWORD /d "145" /f
Reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers" /v "DisableAutoplay" /t REG_DWORD /d "1" /f
Reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlersDefaultSelection" /ve /t REG_SZ /d "" /f
Reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\UserChosenExecuteHandlers" /ve /t REG_SZ /d "" /f
REM ;show delete confirmation
Reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "ConfirmFileDelete" /t REG_DWORD /d "1" /f
Reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "ConfirmFileDelete" /t REG_SZ /d "1" /f
REM ; Disable hibernate
Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Power" /v "HibernateEnabled" /t REG_DWORD /d "0" /f
REM ;traditional CMD instead of power shell on right click start menu
Reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "DontUsePowerShellOnWinX" /t REG_DWORD /d "1" /f
REM ;intel graphics do not show tray icon
Reg.exe add "HKCU\Software\Intel\Display\igfxcui\igfxtray\TrayIcon" /v "ShowTrayIcon" /t REG_DWORD /d "0" /f
REM ; article: http://www.howtogeek.com/259946/how-to-disable-the-microsoft-consumer-experience-in-windows-10/
Reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CloudContent" /v "DisableWindowsConsumerFeatures" /t REG_DWORD /d "1" /f
Reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SystemPaneSuggestionsEnable" /t REG_DWORD /d "0" /f
Reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SystemPaneSuggestionsEnabled" /t REG_DWORD /d "0" /f
Reg.exe delete "HKCR\SystemFileAssociations\.3mf\Shell\3D Edit" /f
Reg.exe delete "HKCR\SystemFileAssociations\.bmp\Shell\3D Edit" /f
Reg.exe delete "HKCR\SystemFileAssociations\.fbx\Shell\3D Edit" /f
Reg.exe delete "HKCR\SystemFileAssociations\.gif\Shell\3D Edit" /f
Reg.exe delete "HKCR\SystemFileAssociations\.jfif\Shell\3D Edit" /f
Reg.exe delete "HKCR\SystemFileAssociations\.jpe\Shell\3D Edit" /f
Reg.exe delete "HKCR\SystemFileAssociations\.jpeg\Shell\3D Edit" /f
Reg.exe delete "HKCR\SystemFileAssociations\.jpg\Shell\3D Edit" /f
Reg.exe delete "HKCR\SystemFileAssociations\.png\Shell\3D Edit" /f
Reg.exe delete "HKCR\SystemFileAssociations\.tif\Shell\3D Edit" /f
Reg.exe delete "HKCR\SystemFileAssociations\.tiff\Shell\3D Edit" /f
:: To turn off Fast Startup
REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Power" /V HiberbootEnabled /T REG_dWORD /D 0 /F
REM remove 3D objects from "This PC"
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A} /f
REM remove whole HKCU/run from registry!!!! CAREFUL!!
REM reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run /f
REM Enable HIPM/DIPM hard disk power saving Setting
powercfg -attributes SUB_DISK 0b2d69d7-a2a1-449c-9680-f91c70521c60 -ATTRIB_HIDE
REM powercfg -attributes SUB_DISK 0b2d69d7-a2a1-449c-9680-f91c70521c60 +ATTRIB_HIDE
del "%appdata%\microsoft\windows\start menu\programs\Excel.lnk"
del "%appdata%\microsoft\windows\start menu\programs\Word.lnk"
del "%appdata%\microsoft\windows\start menu\programs\PowerPoint.lnk"
del "%appdata%\microsoft\windows\start menu\programs\Outlook.lnk"
del "%appdata%\microsoft\windows\start menu\programs\OneDrive.lnk"
rem 0 - Disable Cortana in Taskbar search
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v "CortanaEnabled" /t REG_DWORD /d 0 /f
REM *** Disable Cortana ***
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "AllowCortana" /t REG_DWORD /d 0 /f
REM *** Hide the search box from taskbar. You can still search by pressing the Win key and start typing what you're looking for ***
REM 0 = hide completely, 1 = show only icon, 2 = show long search box
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v "SearchboxTaskbarMode" /t REG_DWORD /d 0 /f
REM *** Turn OFF Sticky Keys when SHIFT is pressed 5 times ***
REM 506 = Off, 510 = On (default)
reg add "HKCU\Control Panel\Accessibility\StickyKeys" /v "Flags" /t REG_SZ /d "506" /f
REM *** Turn OFF Filter Keys when SHIFT is pressed for 8 seconds ***
REM 122 = Off, 126 = On (default)
reg add "HKEY_CURRENT_USER\Control Panel\Accessibility\Keyboard Response" /v "Flags" /t REG_SZ /d "122" /f
REM *** Show known file extensions in Explorer (We already did that, but anyway) ***
REM *** 0 = extensions are visible ***
REM *** 1 = extensions are hidden ***
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /t REG_DWORD /d 0 /f
REM Tutorial: https://www.tenforums.com/tutorials/83096-add-remove-people-bar-icon-taskbar-windows-10-a.html
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People" /V PeopleBand /T REG_DWORD /D 0 /F
REM Tutorial: http://www.tenforums.com/tutorials/48147-windows-ink-workspace-button-hide-show-taskbar-windows-10-a.html
REG ADD "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\PenWorkspace" /V PenWorkspaceButtonDesiredVisibility /T REG_DWORD /D 0 /F
REM Always show all icons in tray
REM Reg.exe Add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v EnableAutoTray /t REG_DWORD /d 0 /f
REM Do not combine taskbar buttons in Windows
REM Reg.exe Add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v TaskbarGlomLevel /t REG_DWORD /d 1 /f
REM Small taskbar icons (DOESNT WORK!!!!)
REM Reg.exe Add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v TaskbarSmallIcons /t REG_DWORD /d 0 /f
REM delete english keyboard layout
reg delete "HKEY_CURRENT_USER\Keyboard Layout\Preload" /v 2 /f
REM Windows 10/11 colored title bars
Reg.exe Add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\DWM" /v ColorPrevalence /t REG_DWORD /d 1 /f
REM Suggestions in start
Reg.exe Add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v SubscribedContent-338388Enabled /t REG_DWORD /d 0 /f
Reg.exe Add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v SubscribedContent-338389Enabled /t REG_DWORD /d 0 /f
net share c="C:" /GRANT:Everyone,FULL
net share d="D:" /GRANT:Everyone,FULL
net share e="E:" /GRANT:Everyone,FULL
net share f="F:" /GRANT:Everyone,FULL
net share g="G:" /GRANT:Everyone,FULL
net share h="H:" /GRANT:Everyone,FULL
net share i="I:" /GRANT:Everyone,FULL
net share j="J:" /GRANT:Everyone,FULL
net share k="K:" /GRANT:Everyone,FULL
net share l="L:" /GRANT:Everyone,FULL
net share m="M:" /GRANT:Everyone,FULL
net share n="N:" /GRANT:Everyone,FULL
net share o="O:" /GRANT:Everyone,FULL
net share p="P:" /GRANT:Everyone,FULL
net share q="Q:" /GRANT:Everyone,FULL
net share r="R:" /GRANT:Everyone,FULL
net share s="S:" /GRANT:Everyone,FULL
net share t="T:" /GRANT:Everyone,FULL
net share u="U:" /GRANT:Everyone,FULL
net share v="V:" /GRANT:Everyone,FULL
net share w="W:" /GRANT:Everyone,FULL
net share x="X:" /GRANT:Everyone,FULL
net share y="Y:" /GRANT:Everyone,FULL
net share z="Z:" /GRANT:Everyone,FULL
net share read_only_c="C:" /GRANT:Everyone,READ
net share read_only_d="D:" /GRANT:Everyone,READ
net share read_only_e="E:" /GRANT:Everyone,READ
net share read_only_f="F:" /GRANT:Everyone,READ
net share read_only_g="G:" /GRANT:Everyone,READ
net share read_only_h="H:" /GRANT:Everyone,READ
net share read_only_i="I:" /GRANT:Everyone,READ
net share read_only_j="J:" /GRANT:Everyone,READ
net share read_only_k="K:" /GRANT:Everyone,READ
net share read_only_l="L:" /GRANT:Everyone,READ
net share read_only_m="M:" /GRANT:Everyone,READ
net share read_only_n="N:" /GRANT:Everyone,READ
net share read_only_o="O:" /GRANT:Everyone,READ
net share read_only_p="P:" /GRANT:Everyone,READ
net share read_only_q="Q:" /GRANT:Everyone,READ
net share read_only_r="R:" /GRANT:Everyone,READ
net share read_only_s="S:" /GRANT:Everyone,READ
net share read_only_t="T:" /GRANT:Everyone,READ
net share read_only_u="U:" /GRANT:Everyone,READ
net share read_only_v="V:" /GRANT:Everyone,READ
net share read_only_w="W:" /GRANT:Everyone,READ
net share read_only_x="X:" /GRANT:Everyone,READ
net share read_only_y="Y:" /GRANT:Everyone,READ
net share read_only_z="Z:" /GRANT:Everyone,READ
reg import "%~dp0\Open With IrfanView.reg"
reg import "%~dp0\Open With MediaPlayerClassicHomeCinema.reg"
REM reg import "%~dp0\Open With Write.reg"
REM call "%~dp0\cleanStart\clean start menu pins.bat"
REM cd "%~dp0\PinToTaskbar"
REM call "PinOwnApps.bat"
REM cd "%~dp0\SetUserFTA"
REM call "Omat tiedosto kytkennat.bat"
tzutil /s "FLE Standard Time"
net start W32Time
w32tm.exe /resync /force
REM cd "%~dp0\DisableDevices\"
REM call "Poista_Laitteet.bat"
REM disable windows news and interests feed
Reg.exe Add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Feeds" /v EnableFeeds /t REG_DWORD /d 0 /f
REM disable windows notifications
Reg.exe Add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\UserProfileEngagement" /v ScoobeSystemSettingEnabled /t REG_DWORD /d 0 /f
Reg.exe Add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\PushNotifications" /v ToastEnabled /t REG_DWORD /d 0 /f
Reg.exe Add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v FeatureManagementEnabled /t REG_DWORD /d 0 /f
Reg.exe Add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v OemPreInstalledAppsEnabled /t REG_DWORD /d 0 /f
Reg.exe Add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v PreInstalledAppsEnabled /t REG_DWORD /d 0 /f
Reg.exe Add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v PreInstalledAppsEverEnabled /t REG_DWORD /d 0 /f
Reg.exe Add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v RotatingLockScreenEnabled /t REG_DWORD /d 0 /f
Reg.exe Add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v RotatingLockScreenOverlayEnabled /t REG_DWORD /d 0 /f
Reg.exe Add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v SilentInstalledAppsEnabled /t REG_DWORD /d 0 /f
Reg.exe Add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v SoftLandingEnabled /t REG_DWORD /d 0 /f
Reg.exe Add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v SubscribedContent-310093Enabled /t REG_DWORD /d 0 /f
Reg.exe Add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v SubscribedContent-338387Enabled /t REG_DWORD /d 0 /f
Reg.exe Add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v SubscribedContent-338388Enabled /t REG_DWORD /d 0 /f
Reg.exe Add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v SubscribedContent-338389Enabled /t REG_DWORD /d 0 /f
Reg.exe Add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v SubscribedContent-338393Enabled /t REG_DWORD /d 0 /f
Reg.exe Add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v SubscribedContent-353694Enabled /t REG_DWORD /d 0 /f
Reg.exe Add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v SubscribedContent-353696Enabled /t REG_DWORD /d 0 /f
Reg.exe Add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v SystemPaneSuggestionsEnabled /t REG_DWORD /d 0 /f
del c:\users\public\desktop\*.lnk
reg import "%~dp0\settings\windows dark theme.reg"
REM call "%~dp0\Settings\windows change wallpaper.bat"
reg import "%~dp0\Settings\Remove Print From Context Menu.reg"
REM remove "meet now"
Reg.exe Add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v HideSCAMeetNow /t REG_DWORD /d 1 /f
REM remove explorer right click item "Previous Versions"
Reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" /f
reg.exe Add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" /f /v {596AB062-B4D2-4215-9F74-E9109B0A8153}
REM remove "Modern Share" right click item
reg delete "HKEY_Classes_ROOT\*\shellex\ContextMenuHandlers\ModernSharing" /f
REM remove "Scan with Defender" right click item
reg delete "HKEY_CLASSES_ROOT\CLSID\{09A47860-11B0-4DA5-AFA5-26D86198A780}" /f
REM remove 'Give access to' in the context menu
reg.exe Add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" /f /v {f81e9010-6ea4-11ce-a7ff-00aa003ca9f6}
REM remove "share with Skype" from contect menu
reg.exe Add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" /f /v {776DBC8D-7347-478C-8D71-791E12EF49D8} /d "Skype"
powercfg.exe /hibernate off
REM Disable "Open File - Security Warning" Message
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /V "1806" /T "REG_DWORD" /D "00000000" /F
REG ADD "HKLM\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /V "1806" /T "REG_DWORD" /D "00000000" /F
REG ADD "HKLM\SOFTWARE\Policies\Microsoft\Internet Explorer\Security" /V "DisableSecuritySettingsCheck" /T "REG_DWORD" /D "00000001" /F
REM Block or Disable Microsoft Account in Windows 10
REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /V "NoConnectedUser" /T "REG_DWORD" /D "3" /F
REG ADD "HKLM\SOFTWARE\Microsoft\PolicyManager\default\Settings\AllowYourAccount" /V "value" /T "REG_DWORD" /D "0" /F
REM cd "%~dp0\Win10 DeBloat"
REM call "poista_kaikki_win10_apps (admin).bat"
REM Monitor timeout on AC and DC modes
REM powercfg -change -monitor-timeout-ac 4
powercfg -change -monitor-timeout-dc 4
REM Disable Require Password on Wakeup
powercfg -SETACVALUEINDEX SCHEME_BALANCED SUB_NONE CONSOLELOCK 0
powercfg -SETDCVALUEINDEX SCHEME_BALANCED SUB_NONE CONSOLELOCK 0
powercfg -SETACVALUEINDEX SCHEME_MAX SUB_NONE CONSOLELOCK 0
powercfg -SETDCVALUEINDEX SCHEME_MAX SUB_NONE CONSOLELOCK 0
powercfg -SETACVALUEINDEX SCHEME_MIN SUB_NONE CONSOLELOCK 0
powercfg -SETDCVALUEINDEX SCHEME_MIN SUB_NONE CONSOLELOCK 0
REM Disable hibernate
powercfg -h off
REM Disable closing the lid shutdown or sleep
powercfg /setdcvalueindex SCHEME_BALANCED SUB_BUTTONS LIDACTION 0
powercfg /setacvalueindex SCHEME_BALANCED SUB_BUTTONS LIDACTION 0
powercfg /setdcvalueindex SCHEME_MAX SUB_BUTTONS LIDACTION 0
powercfg /setacvalueindex SCHEME_MAX SUB_BUTTONS LIDACTION 0
powercfg /setdcvalueindex SCHEME_MIN SUB_BUTTONS LIDACTION 0
powercfg /setacvalueindex SCHEME_MIN SUB_BUTTONS LIDACTION 0
REM Disable Power Button shutdown or sleep
powercfg /setdcvalueindex SCHEME_BALANCED SUB_BUTTONS PBUTTONACTION 0
powercfg /setacvalueindex SCHEME_BALANCED SUB_BUTTONS PBUTTONACTION 0
powercfg /setdcvalueindex SCHEME_MAX SUB_BUTTONS PBUTTONACTION 0
powercfg /setacvalueindex SCHEME_MAX SUB_BUTTONS PBUTTONACTION 0
powercfg /setdcvalueindex SCHEME_MIN SUB_BUTTONS PBUTTONACTION 0
powercfg /setacvalueindex SCHEME_MIN SUB_BUTTONS PBUTTONACTION 0
REM Disable AC Sleep after timeout
powercfg /setacvalueindex SCHEME_BALANCED SUB_SLEEP STANDBYIDLE 0
powercfg /setacvalueindex SCHEME_MAX SUB_SLEEP STANDBYIDLE 0
powercfg /setacvalueindex SCHEME_MIN SUB_SLEEP STANDBYIDLE 0
REM Disable DC Sleep after timeout
powercfg /setdcvalueindex SCHEME_BALANCED SUB_SLEEP STANDBYIDLE 1000
powercfg /setdcvalueindex SCHEME_MAX SUB_SLEEP STANDBYIDLE 1000
powercfg /setdcvalueindex SCHEME_MIN SUB_SLEEP STANDBYIDLE 1000
REM HDD sleep in about 8 minutes (about 500 seconds)
powercfg /setdcvalueindex SCHEME_BALANCED SUB_DISK DISKIDLE 500
powercfg /setacvalueindex SCHEME_BALANCED SUB_DISK DISKIDLE 500
REM cd "%~dp0\SetUserFTA"
REM call "All file accosiations automatically.bat"
REM disable edge search bar on desktop
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge" /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge" /v HubsSidebarEnabled /t REG_DWORD /d 00000000 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge" /v WebWidgetAllowed /t REG_DWORD /d 00000000 /f
REM disable thumbs.db
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v DisableThumbsDBOnNetworkFolders /d 0x1 /t REG_DWORD /f
REM Windows: Disable folder type detection in explorer globally
Reg.exe delete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags" /f
Reg.exe delete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\BagMRU" /f
Reg.exe add "HKCU\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell" /v "FolderType" /t REG_SZ /d "NotSpecified" /f
REM disable the activity feed and history, seems to affect also that search bar doesn't show history
Reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows\System" /v "EnableActivityFeed" /t REG_DWORD /d "0" /f
REM disable windows 10 automatic game mode (priorizes cpu time when game detected)
Reg.exe add "HKCU\Software\Microsoft\GameBar" /v "AllowAutoGameMode" /t REG_DWORD /d "0" /f
Reg.exe add "HKCU\Software\Microsoft\GameBar" /v "AutoGameModeEnabled" /t REG_DWORD /d "0" /f
REM hide recycle bin from desktop
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v {645FF040-5081-101B-9F08-00AA002F954E} /t REG_DWORD /d 1 /f
REM add recycle bin to file explorer, !!!!! GOOD for WINDOWS 7 only
REM Reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{645FF040-5081-101B-9F08-00AA002F954E}" /f
REM remove recycle bin from file explorer
REM Reg.exe delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{645FF040-5081-101B-9F08-00AA002F954E}" /f
REM add the Recycle Bin to the navigation pane !!! DOESNT WORK because the key is protected
REM Reg.exe add "HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\ShellFolder" /v System.IsPinnedToNameSpaceTree /t REG_DWORD /d 1 /f
del %userprofile%\desktop\"Microsoft Edge.lnk"
del %userprofile%\OneDrive\desktop\"Microsoft Edge.lnk"
REM disable web search in start menu
reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer" /v "DisableSearchBoxSuggestions" /t REG_DWORD /d 1 /f
REM Disable Windows Tips and Tricks:
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v SystemPaneSuggestionsEnabled /t REG_DWORD /d 0 /f
REM Disable Cortana:
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v AllowCortana /t REG_DWORD /d 0 /f
REM Disable Telemetry:
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v AllowTelemetry /t REG_DWORD /d 0 /f
REM Disable Windows Error Reporting:
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting" /v Disabled /t REG_DWORD /d 1 /f
REM Disable Windows Update Delivery Optimization:
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" /v DODownloadMode /t REG_DWORD /d 0 /f
REM enable Potentially Unwanted App (PUA) protection
Reg.exe add "HKCU\SOFTWARE\Microsoft\Edge\SmartScreenPuaEnabled" /ve /t REG_DWORD /d "1" /f
powershell.exe -ExecutionPolicy Bypass -Command "Set-MpPreference -PUAProtection 1"
REM Edge: Hide the First-run experience and splash screen
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge" /v HideFirstRunExperience /t REG_DWORD /d 1 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "TaskbarMn" /t REG_DWORD /d 0 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "TaskbarDa" /t REG_DWORD /d 0 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /v "SearchboxTaskbarMode" /t REG_DWORD /d 0 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowTaskViewButton" /t REG_DWORD /d 0 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "TaskbarAl" /t REG_DWORD /d 0 /f
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "UseCompactMode" /t REG_DWORD /d 1 /f
REM Disable new context menu:
REM reg.exe add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve
REM Restore new context menu:
REM reg.exe delete "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" /f
REM Disable “Let’s finish setting up your device” screen in Windows 11
Reg.exe Add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v SubscribedContent-310093Enabled /t REG_DWORD /d 0 /f
REM Disable “Lets_finish_setting_up_your_device in Windows 11"
Reg.exe Add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\UserProfileEngagement" /v ScoobeSystemSettingEnabled /t REG_DWORD /d 0 /f
REM Windows 10/11 colored title bars (PLEASE RESTART)
Reg.exe Add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\DWM" /v ColorPrevalence /t REG_DWORD /d 1 /f
REM disable snipping too for print screen
reg add "HKEY_CURRENT_USER\Control Panel\Keyboard" /v PrintScreenKeyForSnippingEnabled /t REG_DWORD /d 0 /f
REM THIS HIDES ALL BUTTONS!!! How to disable Notification and Action Center in Windows 10
REM reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer" /v DisableNotificationCenter /t REG_DWORD /d 1 /f
REM remove onedrive frome xplorer (win11)
Reg.exe delete "HKCR\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f
Reg.exe delete "HKCR\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f
REM remove gallery from explorer (win11)
reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace_41040327\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c} /f
REM win11 disable lockscreen tips
Reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338387Enabled" /t REG_DWORD /d "0" /f
Reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "RotatingLockScreenOverlayEnabled" /t REG_DWORD /d "0" /f
REM disable widgets taskbar
REM ; Windows 11
Reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "TaskbarDa" /t REG_DWORD /d "0" /f
REM ; Windows 10
Reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Feeds" /v "ShellFeedsTaskbarViewMode" /t REG_DWORD /d "2" /f
REM ; Disable widgets service
Reg.exe add "HKLM\SOFTWARE\Microsoft\PolicyManager\default\NewsAndInterests\AllowNewsAndInterests" /v "value" /t REG_DWORD /d "0" /f
Reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Dsh" /v "AllowNewsAndInterests" /t REG_DWORD /d "0" /f
REM disable suggestions
REM ; Show me the Windows welcome experience after updates and occasionally when I sign in to highlight what's new and suggested
Reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-310093Enabled" /t REG_DWORD /d "0" /f
REM ; Occasionally show suggestions in Start
Reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338388Enabled" /t REG_DWORD /d "0" /f
Reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SystemPaneSuggestionsEnabled" /t REG_DWORD /d "0" /f
REM ; Show recommendations for tips, shortcuts, new apps, and more in start
Reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Start_IrisRecommendations" /t REG_DWORD /d "0" /f
REM ; Get tips, tricks, and suggestions as you use Windows
Reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338389Enabled" /t REG_DWORD /d "0" /f
Reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SoftLandingEnabled" /t REG_DWORD /d "0" /f
REM ; Show me suggested content in the Settings app
Reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338393Enabled" /t REG_DWORD /d "0" /f
Reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-353694Enabled" /t REG_DWORD /d "0" /f
Reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-353696Enabled" /t REG_DWORD /d "0" /f
REM ; Suggest ways I can finish setting up my device to get the most out of Windows
Reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\UserProfileEngagement" /v "ScoobeSystemSettingEnabled" /t REG_DWORD /d "0" /f
REM ; Sync provider ads
Reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowSyncProviderNotifications" /t REG_DWORD /d "0" /f
REM ; Automatic Installation of Suggested Apps
Reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SilentInstalledAppsEnabled" /t REG_DWORD /d "0" /f
REM ; Disable "Suggested" app notifications (Ads for MS services)
Reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.Suggested" /v "Enabled" /t REG_DWORD /d "0" /f
REM ; Disable bing in search
Reg.exe add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "DisableSearchBoxSuggestions" /t REG_DWORD /d "1" /f
REM ; Disable cortana in search
Reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "AllowCortana" /t REG_DWORD /d "0" /f
Reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "CortanaConsent" /t REG_DWORD /d "0" /f
REM disable chat taskbar
REM ; Windows 11
Reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "TaskbarMn" /t REG_DWORD /d "0" /f
REM ; Windows 10
Reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "HideSCAMeetNow" /t REG_DWORD /d "1" /f
REM ; Disable Copilot button on taskbar
Reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowCopilotButton" /t REG_DWORD /d "0" /f
REM ; Disable Copilot service for current user
Reg.exe add "HKCU\Software\Policies\Microsoft\Windows\WindowsCopilot" /v "TurnOffWindowsCopilot" /t REG_DWORD /d "1" /f
REM ; Disable Copilot service for all users
Reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsCopilot" /v "TurnOffWindowsCopilot" /t REG_DWORD /d "1" /f
REM Disable_Give_access_to_context_menu
Reg.exe delete "HKCR\*\shellex\ContextMenuHandlers\Sharing" /f
Reg.exe delete "HKCR\Directory\Background\shellex\ContextMenuHandlers\Sharing" /f
Reg.exe delete "HKCR\Directory\shellex\ContextMenuHandlers\Sharing" /f
Reg.exe delete "HKCR\Directory\shellex\CopyHookHandlers\Sharing" /f
Reg.exe delete "HKCR\Directory\shellex\PropertySheetHandlers\Sharing" /f
Reg.exe delete "HKCR\Drive\shellex\ContextMenuHandlers\Sharing" /f
Reg.exe delete "HKCR\Drive\shellex\PropertySheetHandlers\Sharing" /f
Reg.exe delete "HKCR\LibraryFolder\background\shellex\ContextMenuHandlers\Sharing" /f
Reg.exe delete "HKCR\UserLibraryFolder\shellex\ContextMenuHandlers\Sharing" /f
REM Disable_Include_in_library_from_context_menu
Reg.exe delete "HKCR\Folder\ShellEx\ContextMenuHandlers\Library Location" /f
Reg.exe delete "HKLM\SOFTWARE\Classes\Folder\ShellEx\ContextMenuHandlers\Library Location" /f
REM Disable_Share_from_context_menu
Reg.exe delete "HKCR\*\shellex\ContextMenuHandlers\ModernSharing" /f
REM disable telemetry
REM ; Let Apps use Advertising ID for Relevant Ads in Windows 10
Reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo" /v "Enabled" /t REG_DWORD /d "0" /f
REM ; Tailored experiences with diagnostic data for Current User
Reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Privacy" /v "TailoredExperiencesWithDiagnosticDataEnabled" /t REG_DWORD /d "0" /f
REM ; Online Speech Recognition
Reg.exe add "HKCU\Software\Microsoft\Speech_OneCore\Settings\OnlineSpeechPrivacy" /v "HasAccepted" /t REG_DWORD /d "0" /f
REM ; Improve Inking & Typing Recognition
Reg.exe add "HKCU\Software\Microsoft\Input\TIPC" /v "Enabled" /t REG_DWORD /d "0" /f
REM ; Inking & Typing Personalization
Reg.exe add "HKCU\Software\Microsoft\InputPersonalization" /v "RestrictImplicitInkCollection" /t REG_DWORD /d "1" /f
Reg.exe add "HKCU\Software\Microsoft\InputPersonalization" /v "RestrictImplicitTextCollection" /t REG_DWORD /d "1" /f
Reg.exe add "HKCU\Software\Microsoft\InputPersonalization\TrainedDataStore" /v "HarvestContacts" /t REG_DWORD /d "0" /f
Reg.exe add "HKCU\Software\Microsoft\Personalization\Settings" /v "AcceptedPrivacyPolicy" /t REG_DWORD /d "0" /f
REM ; Send only Required Diagnostic and Usage Data
Reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d "0" /f
REM ; Disable Let Windows improve Start and search results by tracking app launches
Reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Start_TrackProgs" /t REG_DWORD /d "0" /f
REM hide music folder
Reg.exe delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}" /f
Reg.exe delete "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}" /f
REM disable check boxes in windows explorer
REG ADD "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /V AutoCheckSelect /T REG_DWORD /D 0 /F
reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\WindowsCopilot" /v "TurnOffWindowsCopilot" /t REG_DWORD /d 1 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsCopilot" /v "TurnOffWindowsCopilot" /t REG_DWORD /d 1 /f
pause