├── OpenWithNotepad++ ├── contextmenu.png ├── OpenWithNotepad++.reg ├── contextmenu_full.png ├── OpenWithNotepad++-Remove.reg └── README.md ├── OpenWithHexeditorNotepad ├── contextmenu.png ├── OpenWithHexeditorNotepad.reg ├── OpenWithHexeditorNotepad-Remove.reg └── README.md ├── OpenPowerShellCmdHereAdmin ├── cmd_ps_here.png ├── Legacy │ ├── OpenPowerShellCmdHereAdmin-Remove.reg │ └── OpenPowerShellCmdHereAdmin.reg ├── README.md ├── OpenPowerShellCmdHereAdmin-Remove.reg └── OpenPowerShellCmdHereAdmin.reg ├── README.md ├── LICENSE └── CleanWindows ├── README.md └── CleanWindows.cmd /OpenWithNotepad++/contextmenu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitsadmin/winconfig/HEAD/OpenWithNotepad++/contextmenu.png -------------------------------------------------------------------------------- /OpenWithNotepad++/OpenWithNotepad++.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitsadmin/winconfig/HEAD/OpenWithNotepad++/OpenWithNotepad++.reg -------------------------------------------------------------------------------- /OpenWithNotepad++/contextmenu_full.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitsadmin/winconfig/HEAD/OpenWithNotepad++/contextmenu_full.png -------------------------------------------------------------------------------- /OpenWithHexeditorNotepad/contextmenu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitsadmin/winconfig/HEAD/OpenWithHexeditorNotepad/contextmenu.png -------------------------------------------------------------------------------- /OpenPowerShellCmdHereAdmin/cmd_ps_here.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitsadmin/winconfig/HEAD/OpenPowerShellCmdHereAdmin/cmd_ps_here.png -------------------------------------------------------------------------------- /OpenWithNotepad++/OpenWithNotepad++-Remove.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitsadmin/winconfig/HEAD/OpenWithNotepad++/OpenWithNotepad++-Remove.reg -------------------------------------------------------------------------------- /OpenWithHexeditorNotepad/OpenWithHexeditorNotepad.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitsadmin/winconfig/HEAD/OpenWithHexeditorNotepad/OpenWithHexeditorNotepad.reg -------------------------------------------------------------------------------- /OpenWithHexeditorNotepad/OpenWithHexeditorNotepad-Remove.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitsadmin/winconfig/HEAD/OpenWithHexeditorNotepad/OpenWithHexeditorNotepad-Remove.reg -------------------------------------------------------------------------------- /OpenWithHexeditorNotepad/README.md: -------------------------------------------------------------------------------- 1 | # OpenWithHexeditorNotepad 2 | Adds the following options to the context menu: 3 | * HexEditor 4 | * Notepad 5 | 6 | And the following options to the extended context menu: 7 | * HexEditor (Administrator) 8 | * Notepad (Administrator) 9 | 10 | ## Screenshot 11 | ![HexEditor and Notepad in extended context menu](contextmenu.png) 12 | 13 | ## Prerequisites 14 | * Install HxD [1] into ```%ProgramFiles%\HxD``` 15 | * Optionally install Notepad2-Mod [2] to have a proper Notepad application 16 | 17 | 18 | [1] https://mh-nexus.de/en/hxd/ 19 | [2] https://xhmikosr.github.io/notepad2-mod/ 20 | -------------------------------------------------------------------------------- /OpenWithNotepad++/README.md: -------------------------------------------------------------------------------- 1 | # OpenWithNotepad++ 2 | If you like me prefer to keep your context menu clean from DLL extensions, and use the native Windows context menu functionality, you can use this solution. In addition, this extension adds the Notepad++ (Administrator) option. 3 | 4 | 1. Unregister the Notepad++ extension using ``regsvr32 /u "%ProgramFiles%\Notepad++\NppShell_06.dll"`` 5 | 2. Add Notepad++ to the context menu 6 | 7 | ## Screenshots 8 | **Notepad++ in extended context menu** 9 | 10 | ![Notepad++ in extended context menu](contextmenu.png) 11 | 12 | **Notepad++ in extended context menu together with Notepad and HexEditor** 13 | 14 | ![Notepad++ in extended context menu together with Notepad and HexEditor](contextmenu_full.png) 15 | 16 | ## Prerequisite 17 | * Install Notepad++ [1] 18 | 19 | 20 | [1] https://notepad-plus-plus.org/ 21 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Windows productivity tweaks 2 | 3 | | Tweak | Short description | 4 | | ----------------------------------------------------------- | ----------------------------------------------------------------------------- | 5 | | [OpenPowerShellCmdHereAdmin](/OpenPowerShellCmdHereAdmin) | Adds the additional PowerShell / cmd.exe options to the extended context menu | 6 | | [OpenWithHexeditorNotepad](/OpenWithHexeditorNotepad) | Adds Notepad / HxD to the context menu | 7 | | [OpenWithNotepad++](/OpenWithNotepad%2B%2B) | Adds native Notepad++ to the context menu | 8 | | [CleanWindows](/CleanWindows) | Script to cleanup and tweak Windows for use by advanced users | 9 | -------------------------------------------------------------------------------- /OpenPowerShellCmdHereAdmin/Legacy/OpenPowerShellCmdHereAdmin-Remove.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | ; Author: Arris Huijgen (@_bitsadmin) 4 | ; Website: https://github.com/bitsadmin/winconfig 5 | 6 | [HKEY_CLASSES_ROOT\Directory\Background\shell\cmd] 7 | "Icon"=- 8 | 9 | [-HKEY_CLASSES_ROOT\Directory\Background\shell\runas] 10 | 11 | [-HKEY_CLASSES_ROOT\Directory\Background\shell\wpsh] 12 | 13 | [-HKEY_CLASSES_ROOT\Directory\Background\shell\wpsh-elev] 14 | 15 | [HKEY_CLASSES_ROOT\Drive\shell\cmd] 16 | "Icon"=- 17 | 18 | [-HKEY_CLASSES_ROOT\Drive\shell\runas] 19 | 20 | [-HKEY_CLASSES_ROOT\Drive\shell\wpsh] 21 | 22 | [-HKEY_CLASSES_ROOT\Drive\shell\wpsh-elev] 23 | 24 | [HKEY_CLASSES_ROOT\Directory\shell\cmd] 25 | "Icon"=- 26 | 27 | [-HKEY_CLASSES_ROOT\Directory\shell\runas] 28 | 29 | [-HKEY_CLASSES_ROOT\Directory\shell\wpsh] 30 | 31 | [-HKEY_CLASSES_ROOT\Directory\shell\wpsh-elev] 32 | 33 | -------------------------------------------------------------------------------- /OpenPowerShellCmdHereAdmin/README.md: -------------------------------------------------------------------------------- 1 | # OpenPowerShellCmdHereAdmin 2 | Adds the following options to the extended context menu: 3 | * Open command window here 4 | * Open command window here (Administrator) 5 | * Open PowerShell window here 6 | * Open PowerShell window here (Administrator) 7 | 8 | ![Tweaked context menu](https://raw.githubusercontent.com/bitsadmin/winconfig/master/OpenPowerShellCmdHereAdmin/cmd_ps_here.png "Context menu containing cmd.exe and PowerShell") 9 | 10 | ## Installation 11 | ### Windows 10 12 | When simply importing the .reg, it will return an error because of the permissions set on the `HKCR\[Directory|Directory\Background|Drive]\shell\[cmd|Powershell]` keys which need to be updated in order to hide the default open PowerShell/command window option in the context menu. 13 | 14 | There are two options: 15 | * Modify the permissions of the key so the user you are using to import the .reg has sufficient permissions to write; 16 | * Import the .reg using regedit running with TrustedInstaller permissions [1]. 17 | 18 | Successfully tested on: 19 | * Windows Server 2016 - 1607 20 | * Windows 10 - 1709 21 | * Windows 10 - 1803 22 | * Windows 10 - 1809 23 | 24 | ### Legacy 25 | Simply import the .reg from the Legacy folder. 26 | 27 | Successfully tested on: 28 | * Windows 7 SP1 29 | * Windows 8.1 Update 1 30 | * Windows 10 - 1507 (RTM) 31 | 32 | 33 | [1] Use for example ExecTI from https://winaero.com/download.php?view.1991 34 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | BSD 3-Clause License 2 | 3 | Copyright (c) 2017, Arris Huijgen 4 | All rights reserved. 5 | 6 | Redistribution and use in source and binary forms, with or without 7 | modification, are permitted provided that the following conditions are met: 8 | 9 | * Redistributions of source code must retain the above copyright notice, this 10 | list of conditions and the following disclaimer. 11 | 12 | * Redistributions in binary form must reproduce the above copyright notice, 13 | this list of conditions and the following disclaimer in the documentation 14 | and/or other materials provided with the distribution. 15 | 16 | * Neither the name of the copyright holder nor the names of its 17 | contributors may be used to endorse or promote products derived from 18 | this software without specific prior written permission. 19 | 20 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 21 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 23 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 24 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 26 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 27 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 28 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | -------------------------------------------------------------------------------- /OpenPowerShellCmdHereAdmin/OpenPowerShellCmdHereAdmin-Remove.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | ; Author: Arris Huijgen (@_bitsadmin) 4 | ; Website: https://github.com/bitsadmin/winconfig 5 | 6 | [HKEY_CLASSES_ROOT\Directory\shell\cmd] 7 | "ShowBasedOnVelocityId"=- 8 | "HideBasedOnVelocityId"=dword:00639bc8 9 | 10 | [HKEY_CLASSES_ROOT\Directory\shell\Powershell] 11 | "HideBasedOnVelocityId"=- 12 | "ShowBasedOnVelocityId"=dword:00639bc8 13 | 14 | [-HKEY_CLASSES_ROOT\Directory\shell\cmd2] 15 | 16 | [-HKEY_CLASSES_ROOT\Directory\shell\runas] 17 | 18 | [-HKEY_CLASSES_ROOT\Directory\shell\wpsh] 19 | 20 | [-HKEY_CLASSES_ROOT\Directory\shell\wpsh-elev] 21 | 22 | [HKEY_CLASSES_ROOT\Directory\Background\shell\cmd] 23 | "ShowBasedOnVelocityId"=- 24 | "HideBasedOnVelocityId"=dword:00639bc8 25 | 26 | [HKEY_CLASSES_ROOT\Directory\Background\shell\Powershell] 27 | "HideBasedOnVelocityId"=- 28 | "ShowBasedOnVelocityId"=dword:00639bc8 29 | 30 | [-HKEY_CLASSES_ROOT\Directory\Background\shell\cmd2] 31 | 32 | [-HKEY_CLASSES_ROOT\Directory\Background\shell\runas] 33 | 34 | [-HKEY_CLASSES_ROOT\Directory\Background\shell\wpsh] 35 | 36 | [-HKEY_CLASSES_ROOT\Directory\Background\shell\wpsh-elev] 37 | 38 | [HKEY_CLASSES_ROOT\Drive\shell\cmd] 39 | "ShowBasedOnVelocityId"=- 40 | "HideBasedOnVelocityId"=dword:00639bc8 41 | 42 | [HKEY_CLASSES_ROOT\Drive\shell\Powershell] 43 | "HideBasedOnVelocityId"=- 44 | "ShowBasedOnVelocityId"=dword:00639bc8 45 | 46 | [-HKEY_CLASSES_ROOT\Drive\shell\cmd2] 47 | 48 | [-HKEY_CLASSES_ROOT\Drive\shell\runas] 49 | 50 | [-HKEY_CLASSES_ROOT\Drive\shell\wpsh] 51 | 52 | [-HKEY_CLASSES_ROOT\Drive\shell\wpsh-elev] 53 | 54 | -------------------------------------------------------------------------------- /CleanWindows/README.md: -------------------------------------------------------------------------------- 1 | # CleanWindows 2 | Script to cleanup and tweak Windows for use by advanced users. Settings include: 3 | * Power settings to maximum performance, no screensaver etc 4 | * Desktop icons: Computer / User Files / Recycle Bin 5 | * Blank Internet Explorer start page and empty bookmarks 6 | * Windows 10: Cleanup Start menu and disable/hide consumer features 7 | * Note that this script does not disable Windows 10 spying, use tools like O&O ShutUp10 [1] or Destroy-Windows-10-Spying [2] 8 | 9 | **Installation** 10 | Simply run the CleanWindows.cmd script with elevated privileges. 11 | 12 | **Sample output** 13 | ``` 14 | -=[ All Windows versions ]=- 15 | 16 | 17 | Press any key to continue . . . 18 | 19 | [+] Never Combine Taskbar Buttons 20 | The operation completed successfully. 21 | 22 | [+] Always Show All Tray Icons 23 | The operation completed successfully. 24 | 25 | [+] Show extensions for known file types 26 | The operation completed successfully. 27 | 28 | [+] Add Desktop Icon: Computer 29 | The operation completed successfully. 30 | The operation completed successfully. 31 | The operation completed successfully. 32 | The operation completed successfully. 33 | 34 | [+] Add Desktop Icon: User Files 35 | The operation completed successfully. 36 | The operation completed successfully. 37 | The operation completed successfully. 38 | The operation completed successfully. 39 | 40 | [+] Add Desktop Icon: Recycle Bin 41 | The operation completed successfully. 42 | The operation completed successfully. 43 | The operation completed successfully. 44 | The operation completed successfully. 45 | 46 | [+] Setting Internet Explorer start page to about:blank 47 | The operation completed successfully. 48 | 49 | [+] Internet Explorer: Disabling First Run welcome screen 50 | The operation completed successfully. 51 | 52 | [+] Clearning all Internet Explorer favorites 53 | 54 | [+] Internet Explorer: Hiding Links bar 55 | The operation completed successfully. 56 | 57 | [+] Set Power Plan to 'High Performance' 58 | 59 | [+] Set cmd.exe screenbuffer height to maximum 60 | The operation completed successfully. 61 | 62 | [+] Set paint view window to 1x1 pixel 63 | The operation completed successfully. 64 | The operation completed successfully. 65 | 66 | [+] Disable confirmation for file deletion 67 | The operation completed successfully. 68 | 69 | [+] Set timezone to Amsterdam 70 | 71 | 72 | -=[ Windows 10 ]=- 73 | 74 | 75 | Press any key to continue . . . 76 | [+] Disable automatic crap apps install 77 | The operation completed successfully. 78 | The operation completed successfully. 79 | 80 | [-] Microsoft Edge: Set start page to blank page 81 | Needs to be done manually for now: Settings -> Open Edge with: New tab page 82 | [+] Microsoft Edge: Open new tabs with a blank page 83 | The operation completed successfully. 84 | 85 | [+] Microsoft Edge: Disabling First Run welcome screen 86 | The operation completed successfully. 87 | 88 | [+] Remove Task View button 89 | The operation completed successfully. 90 | 91 | [+] Remove Search button 92 | The operation completed successfully. 93 | 94 | [+] Remove People button 95 | The operation completed successfully. 96 | 97 | [+] Open Windows Explorer to This PC 98 | The operation completed successfully. 99 | 100 | [+] Disable showing recently used files in Quick Access 101 | The operation completed successfully. 102 | 103 | [+] Remove OneDrive 104 | 105 | [+] Hide touch keyboard from system tray 106 | The operation completed successfully. 107 | 108 | [+] Hide Windows Ink Workspace from system tray 109 | The operation completed successfully. 110 | ``` 111 | 112 | [1] https://www.oo-software.com/shutup10/ 113 | 114 | [2] https://github.com/Nummer/Destroy-Windows-10-Spying/ 115 | -------------------------------------------------------------------------------- /OpenPowerShellCmdHereAdmin/Legacy/OpenPowerShellCmdHereAdmin.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | ; Author: Arris Huijgen (@_bitsadmin) 4 | ; Website: https://github.com/bitsadmin/winconfig 5 | 6 | ; Directory 7 | [HKEY_CLASSES_ROOT\Directory\shell\cmd] 8 | "Icon"="cmd.exe" 9 | 10 | [HKEY_CLASSES_ROOT\Directory\shell\runas] 11 | @="Open command window here (Administrator)" 12 | "Extended"="" 13 | "HasLUAShield"="" 14 | "NoWorkingDirectory"="" 15 | "Icon"="cmd.exe" 16 | 17 | [HKEY_CLASSES_ROOT\Directory\shell\runas\command] 18 | @="cmd.exe /s /k pushd \"%V\"" 19 | 20 | [HKEY_CLASSES_ROOT\Directory\shell\wpsh] 21 | @="Open PowerShell window here" 22 | "Extended"="" 23 | "NoWorkingDirectory"="" 24 | "Icon"="powershell.exe" 25 | 26 | [HKEY_CLASSES_ROOT\Directory\shell\wpsh\command] 27 | @="C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe -NoExit -NoProfile -Command \"Push-Location -literalPath '%V'\"" 28 | 29 | [HKEY_CLASSES_ROOT\Directory\shell\wpsh-elev] 30 | @="Open PowerShell window here (Administrator)" 31 | "Extended"="" 32 | "NoWorkingDirectory"="" 33 | "Icon"="powershell.exe" 34 | "HasLUAShield"="" 35 | 36 | [HKEY_CLASSES_ROOT\Directory\shell\wpsh-elev\command] 37 | @="C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe -NoLogo -NoProfile -NonInteractive -WindowStyle Hidden -Command \"Start-Process powershell.exe -Verb Runas -ArgumentList @('-NoExit','-NoProfile','-Command','\"\"Push-Location -literalPath ''%V''\"\"')\"" 38 | 39 | ; Background 40 | [HKEY_CLASSES_ROOT\Directory\Background\shell\cmd] 41 | "Icon"="cmd.exe" 42 | 43 | [HKEY_CLASSES_ROOT\Directory\Background\shell\runas] 44 | @="Open command window here (Administrator)" 45 | "Extended"="" 46 | "HasLUAShield"="" 47 | "NoWorkingDirectory"="" 48 | "Icon"="cmd.exe" 49 | 50 | [HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command] 51 | @="cmd.exe /s /k pushd \"%V\"" 52 | 53 | [HKEY_CLASSES_ROOT\Directory\Background\shell\wpsh] 54 | @="Open PowerShell window here" 55 | "Extended"="" 56 | "NoWorkingDirectory"="" 57 | "Icon"="powershell.exe" 58 | 59 | [HKEY_CLASSES_ROOT\Directory\Background\shell\wpsh\command] 60 | @="C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe -NoExit -NoProfile -Command \"Push-Location -literalPath '%V'\"" 61 | 62 | [HKEY_CLASSES_ROOT\Directory\Background\shell\wpsh-elev] 63 | @="Open PowerShell window here (Administrator)" 64 | "Extended"="" 65 | "NoWorkingDirectory"="" 66 | "Icon"="powershell.exe" 67 | "HasLUAShield"="" 68 | 69 | [HKEY_CLASSES_ROOT\Directory\Background\shell\wpsh-elev\command] 70 | @="C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe -NoLogo -NoProfile -NonInteractive -WindowStyle Hidden -Command \"Start-Process powershell.exe -Verb Runas -ArgumentList @('-NoExit','-NoProfile','-Command','\"\"Push-Location -literalPath ''%V''\"\"')\"" 71 | 72 | ; Drive 73 | [HKEY_CLASSES_ROOT\Drive\shell\cmd] 74 | "Icon"="cmd.exe" 75 | 76 | [HKEY_CLASSES_ROOT\Drive\shell\runas] 77 | @="Open command window here (Administrator)" 78 | "Extended"="" 79 | "HasLUAShield"="" 80 | "NoWorkingDirectory"="" 81 | "Icon"="cmd.exe" 82 | 83 | [HKEY_CLASSES_ROOT\Drive\shell\runas\command] 84 | @="cmd.exe /s /k pushd \"%V\"" 85 | 86 | [HKEY_CLASSES_ROOT\Drive\shell\wpsh] 87 | @="Open PowerShell window here" 88 | "Extended"="" 89 | "NoWorkingDirectory"="" 90 | "Icon"="powershell.exe" 91 | 92 | [HKEY_CLASSES_ROOT\Drive\shell\wpsh\command] 93 | @="C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe -NoExit -NoProfile -Command \"Push-Location -literalPath '%V'\"" 94 | 95 | [HKEY_CLASSES_ROOT\Drive\shell\wpsh-elev] 96 | @="Open PowerShell window here (Administrator)" 97 | "Extended"="" 98 | "NoWorkingDirectory"="" 99 | "Icon"="powershell.exe" 100 | "HasLUAShield"="" 101 | 102 | [HKEY_CLASSES_ROOT\Drive\shell\wpsh-elev\command] 103 | @="C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe -NoLogo -NoProfile -NonInteractive -WindowStyle Hidden -Command \"Start-Process powershell.exe -Verb Runas -ArgumentList @('-NoExit','-NoProfile','-Command','\"\"Push-Location -literalPath ''%V''\"\"')\"" 104 | 105 | -------------------------------------------------------------------------------- /OpenPowerShellCmdHereAdmin/OpenPowerShellCmdHereAdmin.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | ; Author: Arris Huijgen (@_bitsadmin) 4 | ; Website: https://github.com/bitsadmin/winconfig 5 | 6 | ; Directory 7 | [HKEY_CLASSES_ROOT\Directory\shell\cmd] 8 | "ShowBasedOnVelocityId"=- 9 | "HideBasedOnVelocityId"=dword:00639bc8 10 | 11 | [HKEY_CLASSES_ROOT\Directory\shell\cmd2] 12 | @="Open &command window here" 13 | "Extended"="" 14 | "NoWorkingDirectory"="" 15 | "Icon"="cmd.exe" 16 | 17 | [HKEY_CLASSES_ROOT\Directory\shell\cmd2\command] 18 | @="cmd.exe /s /k pushd \"%V\"" 19 | 20 | [HKEY_CLASSES_ROOT\Directory\shell\runas] 21 | @="Open co&mmand window here (Administrator)" 22 | "Extended"="" 23 | "HasLUAShield"="" 24 | "NoWorkingDirectory"="" 25 | "Icon"="cmd.exe" 26 | 27 | [HKEY_CLASSES_ROOT\Directory\shell\runas\command] 28 | @="cmd.exe /s /k pushd \"%V\"" 29 | 30 | [HKEY_CLASSES_ROOT\Directory\shell\Powershell] 31 | "ShowBasedOnVelocityId"=- 32 | "HideBasedOnVelocityId"=dword:00639bc8 33 | 34 | [HKEY_CLASSES_ROOT\Directory\shell\wpsh] 35 | @="Open Power&Shell window here" 36 | "Extended"="" 37 | "NoWorkingDirectory"="" 38 | "Icon"="powershell.exe" 39 | 40 | [HKEY_CLASSES_ROOT\Directory\shell\wpsh\command] 41 | @="powershell.exe -NoExit -NoProfile -Command \"Set-Location -literalPath '%V'\"" 42 | 43 | [HKEY_CLASSES_ROOT\Directory\shell\wpsh-elev] 44 | @="Open &PowerShell window here (Administrator)" 45 | "Extended"="" 46 | "NoWorkingDirectory"="" 47 | "Icon"="powershell.exe" 48 | "HasLUAShield"="" 49 | 50 | [HKEY_CLASSES_ROOT\Directory\shell\wpsh-elev\command] 51 | @="powershell -NoLogo -NoProfile -NonInteractive -WindowStyle Hidden -Command \"Start-Process powershell.exe -Verb Runas -ArgumentList @('-NoExit','-NoProfile','-Command','\"\"Set-Location -literalPath ''%V''\"\"')\"" 52 | 53 | ; Background 54 | [HKEY_CLASSES_ROOT\Directory\Background\shell\cmd] 55 | "ShowBasedOnVelocityId"=- 56 | "HideBasedOnVelocityId"=dword:00639bc8 57 | 58 | [HKEY_CLASSES_ROOT\Directory\Background\shell\cmd2] 59 | @="Open &command window here" 60 | "Extended"="" 61 | "NoWorkingDirectory"="" 62 | "Icon"="cmd.exe" 63 | 64 | [HKEY_CLASSES_ROOT\Directory\Background\shell\cmd2\command] 65 | @="cmd.exe /s /k pushd \"%V\"" 66 | 67 | [HKEY_CLASSES_ROOT\Directory\Background\shell\runas] 68 | @="Open co&mmand window here (Administrator)" 69 | "Extended"="" 70 | "HasLUAShield"="" 71 | "NoWorkingDirectory"="" 72 | "Icon"="cmd.exe" 73 | 74 | [HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command] 75 | @="cmd.exe /s /k pushd \"%V\"" 76 | 77 | [HKEY_CLASSES_ROOT\Directory\Background\shell\Powershell] 78 | "ShowBasedOnVelocityId"=- 79 | "HideBasedOnVelocityId"=dword:00639bc8 80 | 81 | [HKEY_CLASSES_ROOT\Directory\Background\shell\wpsh] 82 | @="Open Power&Shell window here" 83 | "Extended"="" 84 | "NoWorkingDirectory"="" 85 | "Icon"="powershell.exe" 86 | 87 | [HKEY_CLASSES_ROOT\Directory\Background\shell\wpsh\command] 88 | @="powershell.exe -NoExit -NoProfile -Command \"Set-Location -literalPath '%V'\"" 89 | 90 | [HKEY_CLASSES_ROOT\Directory\Background\shell\wpsh-elev] 91 | @="Open &PowerShell window here (Administrator)" 92 | "Extended"="" 93 | "NoWorkingDirectory"="" 94 | "Icon"="powershell.exe" 95 | "HasLUAShield"="" 96 | 97 | [HKEY_CLASSES_ROOT\Directory\Background\shell\wpsh-elev\command] 98 | @="powershell -NoLogo -NoProfile -NonInteractive -WindowStyle Hidden -Command \"Start-Process powershell.exe -Verb Runas -ArgumentList @('-NoExit','-NoProfile','-Command','\"\"Set-Location -literalPath ''%V''\"\"')\"" 99 | 100 | ; Drive 101 | [HKEY_CLASSES_ROOT\Drive\shell\cmd] 102 | "ShowBasedOnVelocityId"=- 103 | "HideBasedOnVelocityId"=dword:00639bc8 104 | 105 | [HKEY_CLASSES_ROOT\Drive\shell\cmd2] 106 | @="Open &command window here" 107 | "Extended"="" 108 | "NoWorkingDirectory"="" 109 | "Icon"="cmd.exe" 110 | 111 | [HKEY_CLASSES_ROOT\Drive\shell\cmd2\command] 112 | @="cmd.exe /s /k pushd \"%V\"" 113 | 114 | [HKEY_CLASSES_ROOT\Drive\shell\runas] 115 | @="Open co&mmand window here (Administrator)" 116 | "Extended"="" 117 | "HasLUAShield"="" 118 | "NoWorkingDirectory"="" 119 | "Icon"="cmd.exe" 120 | 121 | [HKEY_CLASSES_ROOT\Drive\shell\runas\command] 122 | @="cmd.exe /s /k pushd \"%V\"" 123 | 124 | [HKEY_CLASSES_ROOT\Drive\shell\Powershell] 125 | "ShowBasedOnVelocityId"=- 126 | "HideBasedOnVelocityId"=dword:00639bc8 127 | 128 | [HKEY_CLASSES_ROOT\Drive\shell\wpsh] 129 | @="Open Power&Shell window here" 130 | "Extended"="" 131 | "NoWorkingDirectory"="" 132 | "Icon"="powershell.exe" 133 | 134 | [HKEY_CLASSES_ROOT\Drive\shell\wpsh\command] 135 | @="powershell.exe -NoExit -NoProfile -Command \"Set-Location -literalPath '%V'\"" 136 | 137 | [HKEY_CLASSES_ROOT\Drive\shell\wpsh-elev] 138 | @="Open &PowerShell window here (Administrator)" 139 | "Extended"="" 140 | "NoWorkingDirectory"="" 141 | "Icon"="powershell.exe" 142 | "HasLUAShield"="" 143 | 144 | [HKEY_CLASSES_ROOT\Drive\shell\wpsh-elev\command] 145 | @="powershell -NoLogo -NoProfile -NonInteractive -WindowStyle Hidden -Command \"Start-Process powershell.exe -Verb Runas -ArgumentList @('-NoExit','-NoProfile','-Command','\"\"Set-Location -literalPath ''%V''\"\"')\"" 146 | 147 | -------------------------------------------------------------------------------- /CleanWindows/CleanWindows.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | echo -=[ All Windows versions ]=- 3 | echo. & echo. 4 | pause 5 | echo. & echo [+] Never Combine Taskbar Buttons 6 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /V TaskbarGlomLevel /T REG_DWORD /D 0x2 /F 7 | echo. & echo [+] Always Show All Tray Icons 8 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer" /V EnableAutoTray /T REG_DWORD /D 0x0 /F 9 | echo. & echo [+] Show extensions for known file types 10 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /V HideFileExt /T REG_DWORD /D 0x0 /F 11 | echo. & echo [+] Add Desktop Icon: Computer 12 | reg add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel /V {20D04FE0-3AEA-1069-A2D8-08002B30309D} /T REG_DWORD /D 0x0 /F 13 | reg add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu /V {20D04FE0-3AEA-1069-A2D8-08002B30309D} /T REG_DWORD /D 0x0 /F 14 | reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel /V {20D04FE0-3AEA-1069-A2D8-08002B30309D} /T REG_DWORD /D 0x0 /F 15 | reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu /V {20D04FE0-3AEA-1069-A2D8-08002B30309D} /T REG_DWORD /D 0x0 /F 16 | echo. & echo [+] Add Desktop Icon: User Files 17 | reg add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel /V {59031A47-3F72-44A7-89C5-5595FE6B30EE} /T REG_DWORD /D 0x0 /F 18 | reg add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu /V {59031A47-3F72-44A7-89C5-5595FE6B30EE} /T REG_DWORD /D 0x0 /F 19 | reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel /V {59031A47-3F72-44A7-89C5-5595FE6B30EE} /T REG_DWORD /D 0x0 /F 20 | reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu /V {59031A47-3F72-44A7-89C5-5595FE6B30EE} /T REG_DWORD /D 0x0 /F 21 | echo. & echo [+] Add Desktop Icon: Recycle Bin 22 | reg add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel /V {645FF040-5081-101B-9F08-00AA002F954E} /T REG_DWORD /D 0x0 /F 23 | reg add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu /V {645FF040-5081-101B-9F08-00AA002F954E} /T REG_DWORD /D 0x0 /F 24 | reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel /V {645FF040-5081-101B-9F08-00AA002F954E} /T REG_DWORD /D 0x0 /F 25 | reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu /V {645FF040-5081-101B-9F08-00AA002F954E} /T REG_DWORD /D 0x0 /F 26 | echo. & echo [+] Setting Internet Explorer start page to about:blank 27 | reg add "HKCU\Software\Microsoft\Internet Explorer\Main" /V "Start Page" /T REG_SZ /D "about:blank" /F 28 | echo. & echo [+] Internet Explorer: Disabling First Run welcome screen 29 | reg add "HKLM\Software\Policies\Microsoft\Internet Explorer\Main" /V "DisableFirstRunCustomize" /T REG_DWORD /D 0x1 /F 30 | echo. & echo [+] Clearning all Internet Explorer favorites 31 | del /q "%userprofile%\Favorites" 32 | for /d %%x in (%userprofile%\Favorites\*) do @rd /s /q "%%x" 33 | echo. & echo [+] Internet Explorer: Hiding Links bar 34 | reg add "HKCU\Software\Microsoft\Internet Explorer\LinksBar" /V Enabled /T REG_DWORD /D 0x0 /F 35 | echo. & echo [+] Set Power Plan to 'High Performance' 36 | for /F "tokens=4" %%i in ('powercfg -l^|find "High"') do @set guid=%%i 37 | powercfg -setactive %guid% 38 | :: TODO: Also set timeout for turning screen off to 'never' 39 | :: TODO: Also disable sleep when closing the lid 40 | :: HKLM\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes\01310eea-960f-4981-8221-0396355ea271\4f971e89-eebd-4455-a8de-9e59040e7347\5ca83367-6e45-459f-a27b-476b1d01c936 -> set ACSettingIndex and DCSettingIndex to 0 41 | echo. & echo [+] Set cmd.exe screenbuffer height to maximum 42 | reg add HKCU\Console\^%SystemRoot^%_system32_cmd.exe /V ScreenBufferSize /T REG_DWORD /D 0x7FFFFFFF /F 43 | echo. & echo [+] Set paint view window to 1x1 pixel 44 | reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Applets\Paint\View /V BMPWidth /T REG_DWORD /D 0x1 /F 45 | reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Applets\Paint\View /V BMPHeight /T REG_DWORD /D 0x1 /F 46 | echo. & echo [+] Disable confirmation for file deletion 47 | reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V ConfirmFileDelete /T REG_DWORD /D 0x0 /F 48 | echo. & echo [+] Set timezone to Amsterdam 49 | tzutil /s "W. Europe Standard Time" 50 | 51 | echo. & echo. 52 | echo -=[ Windows 10 (all versions) ]=- 53 | echo. & echo. 54 | pause 55 | echo [+] Disable automatic crap apps install 56 | reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CloudContent" /V DisableWindowsConsumerFeatures /T REG_DWORD /D 0x1 /F 57 | reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /V SilentInstalledAppsEnabled /T REG_DWORD /D 0x0 /F 58 | echo. & echo [-] Microsoft Edge: Set start page to blank page 59 | echo Needs to be done manually for now: Settings -^> Open Edge with: New tab page 60 | echo [+] Microsoft Edge: Open new tabs with a blank page 61 | reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\ServiceUI" /V NewTabPageDisplayOption /T REG_DWORD /D 0x2 /F 62 | echo. & echo [+] Microsoft Edge: Disabling First Run welcome screen 63 | reg add "HKLM\SOFTWARE\Policies\Microsoft\MicrosoftEdge\Main" /V PreventFirstRunPage /T REG_DWORD /D 0x1 /F 64 | echo. & echo [+] Remove Task View button 65 | reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /V ShowTaskViewButton /T REG_DWORD /D 0x0 /F 66 | echo. & echo [+] Remove Search button 67 | reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /V SearchboxTaskbarMode /T REG_DWORD /D 0x0 /F 68 | echo. & echo [+] Remove People button 69 | reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People" /V PeopleBand /T REG_DWORD /D 0x0 /F 70 | echo. & echo [+] Open Windows Explorer to This PC 71 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /V LaunchTo /T REG_DWORD /D 0x1 /F 72 | echo. & echo [+] Disable showing recently used files in Quick Access 73 | reg add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer /V ShowRecent /T REG_DWORD /D 0x0 /F 74 | echo. & echo [+] Remove OneDrive 75 | C:\Windows\SysWOW64\OneDriveSetup.exe /uninstall 76 | echo. & echo [+] Hide touch keyboard from system tray 77 | reg add HKCU\SOFTWARE\Microsoft\TabletTip\1.7 /V TipbandDesiredVisibility /T REG_DWORD /D 0x0 /F 78 | echo. & echo [+] Hide Windows Ink Workspace from system tray 79 | reg add HKCU\Software\Microsoft\Windows\CurrentVersion\PenWorkspace /V PenWorkspaceButtonDesiredVisibility /T REG_DWORD /D 0x0 /F 80 | echo. & echo. 81 | 82 | echo -=[ Windows 10 18H2 (RS5) (build 1809) ]=- 83 | echo. & echo. 84 | pause 85 | echo. & echo [+] Enable Clipboard History 86 | reg add "HKCU\Software\Microsoft\Clipboard" /V ShellHotKeyUsed /T REG_DWORD /D 0x1 /F 87 | reg add "HKCU\Software\Microsoft\Clipboard" /V EnableClipboardHistory /T REG_DWORD /D 0x1 /F 88 | reg add "HKCU\Software\Microsoft\Clipboard" /V PastedFromClipboardUI /T REG_DWORD /D 0x1 /F 89 | reg add "HKCU\Software\Microsoft\Clipboard" /V ClipboardTipRequired /T REG_DWORD /D 0x0 /F 90 | 91 | 92 | echo -=[ Windows 10 19H2 (build 1909) ]=- 93 | echo. & echo. 94 | pause 95 | echo. & echo [+] Hide Cortana button on task bar 96 | reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /V ShowCortanaButton /T REG_DWORD /D 0x0 /F 97 | 98 | 99 | :: TODO, Windows Explorer settings: 100 | :: Show recently used folders in Quick access - done 101 | :: View -> Navigation pane -> Show all folders <---- 102 | ::echo [+] Remove useless consumer apps 103 | :: $allowedApps = @("Microsoft.AAD.BrokerPlugin", "Microsoft.Windows.CloudExperienceHost", "Microsoft.Windows.ShellExperienceHost", "windows.immersivecontrolpanel", "Microsoft.MicrosoftEdge", "Microsoft.Windows.ContentDeliveryManager", "Microsoft.NET.Native.Framework.1.6", "Microsoft.NET.Native.Framework.1.6", "Microsoft.NET.Native.Runtime.1.6", "Microsoft.NET.Native.Runtime.1.6", "Microsoft.NET.Native.Framework.1.3", "Microsoft.NET.Native.Framework.1.3", "Microsoft.NET.Native.Runtime.1.4", "Microsoft.NET.Native.Runtime.1.4", "Microsoft.NET.Native.Runtime.1.3", "Microsoft.NET.Native.Runtime.1.3", "Windows.PrintDialog", "Microsoft.Windows.SecureAssessmentBrowser", "Microsoft.Windows.SecondaryTileExperience", "Microsoft.Windows.SecHealthUI", "Microsoft.Windows.PinningConfirmationDialog", "Microsoft.Windows.Apprep.ChxApp", "Microsoft.Windows.AssignedAccessLockApp", "Microsoft.LockApp", "Microsoft.Windows.OOBENetworkCaptivePortal", "Microsoft.PPIProjection", "1527c705-839a-4832-9118-54d4Bd6a0c89", "c5e2524a-ea46-4f67-841f-6a9465d9d515", "E2A4F912-2574-4A75-9BB0-0D023378592B", "F46D4000-FD22-4DB4-AC8E-4E1DDDE828FE", "InputApp", "Microsoft.AccountsControl", "Microsoft.Windows.ParentalControls", "Microsoft.Windows.OOBENetworkConnectionFlow", "Microsoft.ECApp", "Microsoft.CredDialogHost", "Microsoft.BioEnrollment", "Microsoft.Wallet", "Microsoft.VCLibs.140.00", "Microsoft.VCLibs.140.00", "Microsoft.Messaging", "Microsoft.WindowsMaps", "Microsoft.MSPaint", "Microsoft.VCLibs.140.00.UWPDesktop", "Microsoft.VCLibs.140.00.UWPDesktop", "Microsoft.WindowsCalculator", "Microsoft.WindowsAlarms", "Microsoft.WindowsSoundRecorder", "Microsoft.Advertising.Xaml", "Microsoft.Advertising.Xaml", "Microsoft.DesktopAppInstaller", "Microsoft.ZuneMusic", "Microsoft.OneConnect", "Microsoft.NET.Native.Runtime.1.7", "Microsoft.NET.Native.Runtime.1.7", "Microsoft.NET.Native.Framework.1.7", "Microsoft.NET.Native.Framework.1.7", "Microsoft.Windows.Photos", "Microsoft.Services.Store.Engagement", "Microsoft.Services.Store.Engagement", "Microsoft.ZuneVideo", "Microsoft.StorePurchaseApp", "Microsoft.WindowsCamera", "Microsoft.WindowsStore", "microsoft.windowscommunicationsapps", "Microsoft.Windows.Cortana", "Microsoft.Windows.HolographicFirstRun", "Microsoft.XboxGameCallableUI", "Microsoft.Windows.PeopleExperienceHost") 104 | :: Get-AppxPackage -AllUsers | ? { $_.Name -NotIn $allowedApps } | Remove-AppxPackage 105 | :: powershell.exe -Command "Get-AppxPackage -AllUsers | ? { $_.Name -notlike 'Microsoft.*' -and $_.Name -notlike 'Windows.*' -and $_.InstallLocation -notlike 'C:\Windows\SystemApps\*' } | Remove-AppxPackage" 106 | 107 | echo. 108 | echo -=[ Windows 10 - Clear start menu (beta) ]=- 109 | echo. & echo. 110 | pause 111 | echo. & echo [+] Cleaning Start menu 112 | echo ^^^^^^^^^ > C:\Users\Default\AppData\Local\Microsoft\Windows\Shell\LayoutModification.xml 113 | taskkill /f /im explorer.exe 114 | del /s /q "%LocalAppData%\Microsoft\Windows\CloudStore\*" 115 | del /s /q "%LocalAppData%\Microsoft\Windows\Caches\*" 116 | del /s /q "%LocalAppData%\Microsoft\Windows\Explorer\*" 117 | reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\CloudStore\Store" /f 118 | start "" explorer.exe 119 | 120 | pause --------------------------------------------------------------------------------