My custom Windows 10 settings

These code snippets are my personal preferences on my computer so you should probably be a little careful copy-pasting them, but in general they should work.

Power settings

Turn off the display after X minutes when plugged in

powercfg -change -monitor-timeout-ac 120

Turn off the display after X minutes when on battery

powercfg -change -monitor-timeout-dc 120

Put the computer to sleep after X minutes when plugged in

powercfg -change -standby-timeout-ac 0

Put the computer to sleep after X minutes when on battery

powercfg -change -standby-timeout-dc 0

Turn off the display after X seconds after the lock screen is activated (while on battery)

powercfg /SETDCVALUEINDEX SCHEME_CURRENT SUB_VIDEO VIDEOIDLE 7200
powercfg /SETDCVALUEINDEX SCHEME_CURRENT SUB_VIDEO VIDEOCONLOCK 7200
powercfg /setactive SCHEME_CURRENT

Turn off the display after X seconds after the lock screen is activated (while plugged in)

powercfg /SETACVALUEINDEX SCHEME_CURRENT SUB_VIDEO VIDEOIDLE 7200
powercfg /SETACVALUEINDEX SCHEME_CURRENT SUB_VIDEO VIDEOCONLOCK 7200
powercfg /setactive SCHEME_CURRENT

Start menu & taskbar:

Disable “Occasionally show suggestions on start”

reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338388Enabled" /t REG_DWORD /d "0" /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CloudContent" /V "DisableWindowsConsumerFeatures" /T "REG_DWORD" /D "0x00000001" /F 1>NUL

Turn Off Suggested Content in Settings

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338393Enabled" /t REG_DWORD /d "0" /f

Remove Search Icon from Windows 10 Taskbar

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /v "SearchboxTaskbarMode" /t REG_DWORD /d "0" /f

Remove Task View from Windows 10 Taskbar

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowTaskViewButton" /t REG_DWORD /d "0" /f

Always show all icons in the notification area

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer" /V EnableAutoTray /T REG_DWORD /D 0 /F

To Remove People Button from Taskbar

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People" /V PeopleBand /T REG_DWORD /D 0 /F

Performance options

Turn Off Animate controls and elements inside windows

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects" /v "VisualFXSetting" /t REG_DWORD /d "3" /f
reg add "HKCU\Control Panel\Desktop" /v "UserPreferencesMask" /t REG_BINARY /d "9e1e078010000000" /f

Turn Off Animate Windows when Minimizing and Maximizing

    reg add "HKCU\Control Panel\Desktop\WindowMetrics" /v MinAnimate /t REG_SZ /d 0 /f >nul 2>&1

Turn off animations in the taskbar

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "TaskbarAnimations" /t REG_DWORD /d "1" /f

Turns off “Fade or slide menus into view”, “Fade or slide ToolTips into view” and “Fade out menu items after clicking”

reg add "HKCU\Control Panel\Desktop" /v "UserPreferencesMask" /t REG_BINARY /d "9c12078010000000" /f

Disable JPEG Desktop Wallpaper Import Quality Reduction

reg add "HKCU\Control Panel\Desktop" /v "JPEGImportQuality" /t REG_DWORD /d "100" /f

Desktop

Prevent Edge shortcut from appearing on a desktop

reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer /v "DisableEdgeDesktopShortcutCreation" /t REG_DWORD /d "1" /f
del "%userprofile%\Desktop\Microsoft Edge.lnk"

Remove Default Desktop Icons (This PC, Users folder, Network, Recycle bin, Control Panel)

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /V "{20D04FE0-3AEA-1069-A2D8-08002B30309D}" /T "REG_DWORD" /D "0x00000001" /F 1>NUL
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu" /V "{20D04FE0-3AEA-1069-A2D8-08002B30309D}" /T "REG_DWORD" /D "0x00000001" /F 1>NUL
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /V "{59031a47-3f72-44a7-89c5-5595fe6b30ee}" /T "REG_DWORD" /D "0x00000001" /F 1>NUL
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu" /V "{59031a47-3f72-44a7-89c5-5595fe6b30ee}" /T "REG_DWORD" /D "0x00000001" /F 1>NUL
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /V "{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}" /T "REG_DWORD" /D "0x00000001" /F 1>NUL
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu" /V "{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}" /T "REG_DWORD" /D "0x00000001" /F 1>NUL
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /V "{645FF040-5081-101B-9F08-00AA002F954E}" /T "REG_DWORD" /D "0x00000001" /F 1>NUL
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu" /V "{645FF040-5081-101B-9F08-00AA002F954E}" /T "REG_DWORD" /D "0x00000001" /F 1>NUL
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /V "{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}" /T "REG_DWORD" /D "0x00000001" /F 1>NUL
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu" /V "{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}" /T "REG_DWORD" /D "0x00000001" /F 1>NUL

Windows Explorer

Show file extension for known file types

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /t REG_DWORD /d "0" /f

Open This Computer to My Computer

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "LaunchTo" /t REG_DWORD /d "1" /f

Turn off recent items and frequent places

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Start_TrackDocs" /t REG_DWORD /d "0" /f

Hide or Show “Frequent folders” in Quick Access for Your Account

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer" /v "ShowFrequent" /t REG_DWORD /d "0" /f

“Show all folders” in the navigation pane

reg add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced /V NavPaneShowAllFolders /T REG_DWORD /D 00000001 /F

To Remove “Cleanup” from Context Menu of Drives

reg add "HKCR\Drive\shell\Windows.CleanUp" /v "CommandStateSync" /t REG_SZ /d "" /f
reg add "HKCR\Drive\shell\Windows.CleanUp" /v "ExplorerCommandHandler" /t REG_SZ /d "{9cca66bb-9c78-4e59-a76f-a5e9990b8aa0}" /f
reg add "HKCR\Drive\shell\Windows.CleanUp" /v "Icon" /t REG_SZ /d "%%SystemRoot%%\System32\cleanmgr.exe,-104" /f
reg add "HKCR\Drive\shell\Windows.CleanUp" /v "ImpliedSelectionModel" /t REG_DWORD /d "1" /f

Turn off shortcut name extension for new shortcuts

reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /V link /T REG_Binary /D 00000000 /F
reg Delete "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\NamingTemplates" /V ShortcutNameTemplate /F

Clock, language and region:

Set region to Norwegian

reg add "HKCU\Control Panel\International" /V "Locale" /T "REG_SZ" /D "00000414" /F 1>NUL
reg add "HKCU\Control Panel\International" /V "LocaleName" /T "REG_SZ" /D "nb-NO" /F 1>NUL
reg add "HKCU\Control Panel\International" /V "s1159" /T "REG_SZ" /D "a.m." /F 1>NUL
reg add "HKCU\Control Panel\International" /V "s2359" /T "REG_SZ" /D "p.m." /F 1>NUL
reg add "HKCU\Control Panel\International" /V "sCountry" /T "REG_SZ" /D "Norway" /F 1>NUL
reg add "HKCU\Control Panel\International" /V "sCurrency" /T "REG_SZ" /D "kr" /F 1>NUL
reg add "HKCU\Control Panel\International" /V "sDate" /T "REG_SZ" /D "." /F 1>NUL
reg add "HKCU\Control Panel\International" /V "sDecimal" /T "REG_SZ" /D "," /F 1>NUL
reg add "HKCU\Control Panel\International" /V "sGrouping" /T "REG_SZ" /D "3;0" /F 1>NUL
reg add "HKCU\Control Panel\International" /V "sLanguage" /T "REG_SZ" /D "NOR" /F 1>NUL
reg add "HKCU\Control Panel\International" /V "sList" /T "REG_SZ" /D ";" /F 1>NUL
reg add "HKCU\Control Panel\International" /V "sLongDate" /T "REG_SZ" /D "dddd d. MMMM yyyy" /F 1>NUL
reg add "HKCU\Control Panel\International" /V "sMonDecimalSep" /T "REG_SZ" /D "," /F 1>NUL
reg add "HKCU\Control Panel\International" /V "sMonGrouping" /T "REG_SZ" /D "3;0" /F 1>NUL
reg add "HKCU\Control Panel\International" /V "sMonThousandSep" /T "REG_SZ" /D " " /F 1>NUL
reg add "HKCU\Control Panel\International" /V "sNativeDigits" /T "REG_SZ" /D "0123456789" /F 1>NUL
reg add "HKCU\Control Panel\International" /V "sNegativeSign" /T "REG_SZ" /D "-" /F 1>NUL
reg add "HKCU\Control Panel\International" /V "sPositiveSign" /T "REG_SZ" /D "" /F 1>NUL
reg add "HKCU\Control Panel\International" /V "sShortDate" /T "REG_SZ" /D "dd.MM.yyyy" /F 1>NUL
reg add "HKCU\Control Panel\International" /V "sThousand" /T "REG_SZ" /D " " /F 1>NUL
reg add "HKCU\Control Panel\International" /V "sTime" /T "REG_SZ" /D ":" /F 1>NUL
reg add "HKCU\Control Panel\International" /V "sTimeFormat" /T "REG_SZ" /D "HH:mm:ss" /F 1>NUL
reg add "HKCU\Control Panel\International" /V "sShortTime" /T "REG_SZ" /D "HH:mm" /F 1>NUL
reg add "HKCU\Control Panel\International" /V "sYearMonth" /T "REG_SZ" /D "MMMM yyyy" /F 1>NUL
reg add "HKCU\Control Panel\International" /V "iCalendarType" /T "REG_SZ" /D "1" /F 1>NUL
reg add "HKCU\Control Panel\International" /V "iCountry" /T "REG_SZ" /D "47" /F 1>NUL
reg add "HKCU\Control Panel\International" /V "iCurrDigits" /T "REG_SZ" /D "2" /F 1>NUL
reg add "HKCU\Control Panel\International" /V "iCurrency" /T "REG_SZ" /D "2" /F 1>NUL
reg add "HKCU\Control Panel\International" /V "iDate" /T "REG_SZ" /D "1" /F 1>NUL
reg add "HKCU\Control Panel\International" /V "iDigits" /T "REG_SZ" /D "2" /F 1>NUL
reg add "HKCU\Control Panel\International" /V "NumShape" /T "REG_SZ" /D "1" /F 1>NUL
reg add "HKCU\Control Panel\International" /V "iFirstDayOfWeek" /T "REG_SZ" /D "0" /F 1>NUL
reg add "HKCU\Control Panel\International" /V "iFirstWeekOfYear" /T "REG_SZ" /D "2" /F 1>NUL
reg add "HKCU\Control Panel\International" /V "iLZero" /T "REG_SZ" /D "1" /F 1>NUL
reg add "HKCU\Control Panel\International" /V "iMeasure" /T "REG_SZ" /D "0" /F 1>NUL
reg add "HKCU\Control Panel\International" /V "iNegCurr" /T "REG_SZ" /D "9" /F 1>NUL
reg add "HKCU\Control Panel\International" /V "iNegNumber" /T "REG_SZ" /D "1" /F 1>NUL
reg add "HKCU\Control Panel\International" /V "iPaperSize" /T "REG_SZ" /D "9" /F 1>NUL
reg add "HKCU\Control Panel\International" /V "iTime" /T "REG_SZ" /D "1" /F 1>NUL
reg add "HKCU\Control Panel\International" /V "iTimePrefix" /T "REG_SZ" /D "0" /F 1>NUL
reg add "HKCU\Control Panel\International" /V "iTLZero" /T "REG_SZ" /D "1" /F 1>NUL
reg add "HKCU\Control Panel\International\Geo" /V "Nation" /T "REG_SZ" /D "177" /F 1>NUL
reg add "HKCU\Control Panel\International\Geo" /V "Name" /T "REG_SZ" /D "NO" /F 1>NUL
reg add "HKCU\Control Panel\International\Time" /V "{E4BF4B44-164B-4057-BABB-0C6642EA3072}" /T "REG_BINARY" /D "444BBFE44B165740BABB0C6642EA307244554B4244255F3D415843234A415A2456392141512D4E1A0000000000000000E50B7C9900000000000000000000000049E3105EFB1F7E688B6422D415A4CAFE" /F 1>NUL
reg add "HKCU\Control Panel\International\Time" /V "{283FB47A-1099-45EF-ADC5-C4E0B2734166}" /T "REG_BINARY" /D "7AB43F289910EF45ADC5C4E0B273416640534B53562558424D445F2341485B265F39522E414B581A000000000000000032C440A5000000000000000000000000A01CD45265263B269968066D93182BBF" /F 1>NUL
reg add "HKCU\Control Panel\International\Time" /V "{5964C3FC-B6BE-46BA-8BB9-362011412E37}" /T "REG_BINARY" /D "FCC36459BEB6BA468BB9362011412E37403D304C56253F523D5E3B23594845584A395D50225F431A0000000000000000237679E0000000000000000000000000EAA04B4821F52C4797818E58805E72F8" /F 1>NUL
reg add "HKCU\Control Panel\International\Time" /V "{BE6763EE-3973-438F-9C79-EA26DADDC536}" /T "REG_BINARY" /D "EE6367BE73398F439C79EA26DADDC536464F53483F253A3C5C4F5823485D292A47394D5724542E1A00000000000000000FE98F8F0000000000000000000000002FAA3A12373B957CE3C93B68C5398498" /F 1>NUL
reg add "HKCU\Control Panel\International\Time" /V "{A0ECCAB1-F96F-4BCA-AD91-7100E5D7FE58}" /T "REG_BINARY" /D "B1CAECA06FF9CA4BAD917100E5D7FE584E4F525654253C4E48345D23554243264739445B55595F1A00000000000000009B83B6CD00000000000000000000000005539A555474D1CA45DF3D42FCDC0C6B" /F 1>NUL
reg add "HKCU\Control Panel\International\Time" /V "{40916F93-D956-420C-B07D-07E8F78F3E14}" /T "REG_BINARY" /D "936F914056D90C42B07D07E8F78F3E1453533C5633255B5233594623574045475F3956425F524E1A00000000000000004B141FC4000000000000000000000000AF350A9000FEB0751981E78D825F7C30" /F 1>NUL
reg add "HKCU\Control Panel\International\Time" /V "{04ED3151-A794-4FA9-95EE-DBBDC05AAE7E}" /T "REG_BINARY" /D "5131ED0494A7A94F95EEDBBDC05AAE7E503C4750452541333D5646233D4154425039525744485E1A0000000000000000A7B0008300000000000000000000000072973D49F87378E33CC0A56400E5A4F1" /F 1>NUL
reg add "HKCU\Control Panel\International\Time" /V "{339FA1D5-707F-4CE4-8291-B2AF27C34A74}" /T "REG_BINARY" /D "D5A19F337F70E44C8291B2AF27C34A740000000000000000000000000000000000000000000000000000000000000000930CBFA014A9D301F893291A07000C002922CD8FFEE9FB41B1BCE3D64BBBFC61" /F 1>NUL
reg add "HKCU\Control Panel\International\Time" /V "{3B1FF86E-D781-4BE6-8AF2-4BC2ADB8EC5D}" /T "REG_BINARY" /D "6EF81F3B81D7E64B8AF24BC2ADB8EC5D4B454D3051254A46383E3823375E524325394F235B21521A00000000000000003B0E7A94000000000000000000000000410BDC0F5ACF3823CCFC24B7D33640AA" /F 1>NUL
reg add "HKCU\Control Panel\International\Time" /V "{63BD90AC-77E6-4B12-A5D3-E7DCB6EF4F1A}" /T "REG_BINARY" /D "AC90BD63E677124BA5D3E7DCB6EF4F1A4D5C5C4331254A424E464F2342465526553946425C5F531A00000000000000003D51D6C800000000000000000000000087F9E69E2900FFCE8FB40100FDA2EE5A" /F 1>NUL
reg add "HKCU\Control Panel\International\User Profile" /V "Languages" /T "REG_MULTI_SZ" /D "en-US\0" /F 1>NUL
reg add "HKCU\Control Panel\International\User Profile" /V "ShowAutoCorrection" /T "REG_DWORD" /D "0x00000001" /F 1>NUL
reg add "HKCU\Control Panel\International\User Profile" /V "ShowTextPrediction" /T "REG_DWORD" /D "0x00000001" /F 1>NUL
reg add "HKCU\Control Panel\International\User Profile" /V "ShowCasing" /T "REG_DWORD" /D "0x00000001" /F 1>NUL
reg add "HKCU\Control Panel\International\User Profile" /V "ShowShiftLock" /T "REG_DWORD" /D "0x00000001" /F 1>NUL
reg add "HKCU\Control Panel\International\User Profile" /V "UserLocaleFromLanguageProfileOptOut" /T "REG_DWORD" /D "0x00000001" /F 1>NUL
reg add "HKCU\Control Panel\International\User Profile\en-US" /V "CachedLanguageName" /T "REG_SZ" /D "@Winlangdb.dll,-1121" /F 1>NUL
reg add "HKCU\Control Panel\International\User Profile\en-US" /V "0409:00000414" /T "REG_DWORD" /D "0x00000001" /F 1>NUL
reg add "HKCU\Control Panel\International\User Profile System Backup" /V "Languages" /T "REG_MULTI_SZ" /D "en-US\0" /F 1>NUL
reg add "HKCU\Control Panel\International\User Profile System Backup" /V "ShowAutoCorrection" /T "REG_DWORD" /D "0x00000001" /F 1>NUL
reg add "HKCU\Control Panel\International\User Profile System Backup" /V "ShowTextPrediction" /T "REG_DWORD" /D "0x00000001" /F 1>NUL
reg add "HKCU\Control Panel\International\User Profile System Backup" /V "ShowCasing" /T "REG_DWORD" /D "0x00000001" /F 1>NUL
reg add "HKCU\Control Panel\International\User Profile System Backup" /V "ShowShiftLock" /T "REG_DWORD" /D "0x00000001" /F 1>NUL
reg add "HKCU\Control Panel\International\User Profile System Backup\en-US" /V "CachedLanguageName" /T "REG_SZ" /D "@Winlangdb.dll,-1121" /F 1>NUL
reg add "HKCU\Control Panel\International\User Profile System Backup\en-US" /V "0409:00000414" /T "REG_DWORD" /D "0x00000001" /F 1>NUL
reg add "HKCU\Control Panel\International\User Profile System Backup\en-US" /V "0409:00000409" /T "REG_DWORD" /D "0x00000002" /F 1>NUL
reg add "HKCU\Control Panel\International\User Profile System Backup\nb" /V "0414:00000414" /T "REG_DWORD" /D "0x00000001" /F 1>NUL

Context menu

Remove default extensions in the “new file” menu

reg delete "HKCR\.accdb\Access.Application.16\ShellNew" /f
reg delete "HKCR\.mdb\ShellNew" /f
reg delete "HKCR\.bmp\ShellNew" /f
reg delete "HKCR\.docx\Word.Document.12\ShellNew" /f
reg delete "HKCR\.xlsx\Excel.Sheet.12\ShellNew" /v "FileName" /t REG_SZ /d "C:\Program Files\Microsoft Office\Root\VFS\Windows\ShellNew\excel12.xlsx" /f
reg delete "HKCR\.pptx\PowerPoint.Show.12\ShellNew" /f
reg delete "HKCR\.pub\Publisher.Document.16\ShellNew" /f
reg delete "HKCR\.rtf\ShellNew" /f
reg delete "HKCR\.zip\CompressedFolder\ShellNew" /f
reg delete "HKCR\.zip\ShellNew" /f
reg delete "HKEY_CLASSES_ROOT\.contact\ShellNew" /F 1>NUL

Add custom formats to the “new file” menu

reg add "HKCR\.ahk" /ve /t REG_SZ /d "ahk" /f
reg add "HKCR\.ahk\ShellNew" /v "FileName" /t REG_SZ /d "Template.ahk" /f
reg add "HKCR\ahk" /ve /t REG_SZ /d "AutoHotkey script" /f
reg add "HKCR\.bat" /ve /t REG_SZ /d "batfile" /f
reg add "HKCR\.bat\ShellNew" /v "FileName" /t REG_SZ /d "Template.bat" /f
reg add "HKCR\bat" /ve /t REG_SZ /d "Windows batch file" /f
reg add "HKCR\.css" /ve /t REG_SZ /d "css" /f
reg add "HKCR\.css\ShellNew" /v "FileName" /t REG_SZ /d "Template.css" /f
reg add "HKCR\css" /ve /t REG_SZ /d "Cascading style Sheet" /f
reg add "HKCR\.html" /ve /t REG_SZ /d "html" /f
reg add "HKCR\.html\ShellNew" /v "FileName" /t REG_SZ /d "Template.html" /f
reg add "HKCR\html" /ve /t REG_SZ /d "HTML file" /f
reg add "HKCR\.md" /ve /t REG_SZ /d "markdown" /f
reg add "HKCR\.md\ShellNew" /v "NullFile" /t REG_SZ /d "" /f
reg add "HKCR\markdown" /ve /t REG_SZ /d "Markdown file" /f
reg add "HKCR\.ps1" /ve /t REG_SZ /d "ps1" /f
reg add "HKCR\.ps1\ShellNew" /v "FileName" /t REG_SZ /d "Template.ps1" /f
reg add "HKCR\ps1" /ve /t REG_SZ /d "PowerShell script" /f
reg add "HKCR\.py" /ve /t REG_SZ /d "py" /f
reg add "HKCR\.py\ShellNew" /v "FileName" /t REG_SZ /d "Template.py" /f
reg add "HKCR\py" /ve /t REG_SZ /d "Python file" /f
reg add "HKCR\.reg" /ve /t REG_SZ /d "reg" /f
reg add "HKCR\.reg\ShellNew" /v "FileName" /t REG_SZ /d "Template.reg" /f
reg add "HKCR\reg" /ve /t REG_SZ /d "Registry file" /f
reg add "HKCR\.scss" /ve /t REG_SZ /d "scss" /f
reg add "HKCR\.scss\ShellNew" /v "FileName" /t REG_SZ /d "Template.scss" /f
reg add "HKCR\scss" /ve /t REG_SZ /d "Syntactically Awesome Style Sheet" /f
reg add "HKCR\.txt" /ve /t REG_SZ /d "txt" /f
reg add "HKCR\.txt\ShellNew" /v "FileName" /t REG_SZ /d "Template.txt" /f
reg add "HKCR\txt" /ve /t REG_SZ /d "Text Document" /f

Add “Open elevated command window here”

reg add "HKCR\Directory\shell\OpenCmdHereAsAdmin" /ve /t REG_SZ /d "Open elevated command window here" /f
reg delete "HKCR\Directory\shell\OpenCmdHereAsAdmin" /v "Extended" /f
reg add "HKCR\Directory\shell\OpenCmdHereAsAdmin" /v "Icon" /t REG_SZ /d "imageres.dll,-5324" /f
reg add "HKCR\Directory\shell\OpenCmdHereAsAdmin\command" /ve /t REG_SZ /d "PowerShell -windowstyle hidden -Command \"Start-Process cmd -ArgumentList '/s,/k,pushd,%%V' -Verb RunAs\"" /f
reg add "HKCR\Directory\Background\shell\OpenCmdHereAsAdmin" /ve /t REG_SZ /d "Open elevated command window here" /f
reg delete "HKCR\Directory\Background\shell\OpenCmdHereAsAdmin" /v "Extended" /f
reg add "HKCR\Directory\Background\shell\OpenCmdHereAsAdmin" /v "Icon" /t REG_SZ /d "imageres.dll,-5324" /f
reg add "HKCR\Directory\Background\shell\OpenCmdHereAsAdmin\command" /ve /t REG_SZ /d "PowerShell -windowstyle hidden -Command \"Start-Process cmd -ArgumentList '/s,/k,pushd,%%V' -Verb RunAs\"" /f
reg add "HKCR\Drive\shell\OpenCmdHereAsAdmin" /ve /t REG_SZ /d "Open elevated command window here" /f
reg delete "HKCR\Drive\shell\OpenCmdHereAsAdmin" /v "Extended" /f
reg add "HKCR\Drive\shell\OpenCmdHereAsAdmin" /v "Icon" /t REG_SZ /d "imageres.dll,-5324" /f
reg add "HKCR\Drive\shell\OpenCmdHereAsAdmin\command" /ve /t REG_SZ /d "PowerShell -windowstyle hidden -Command \"Start-Process cmd -ArgumentList '/s,/k,pushd,%%V' -Verb RunAs\"" /f
reg add "HKCR\LibraryFolder\background\shell\OpenCmdHereAsAdmin" /ve /t REG_SZ /d "Open elevated command window here" /f
reg delete "HKCR\LibraryFolder\background\shell\OpenCmdHereAsAdmin" /v "Extended" /f
reg add "HKCR\LibraryFolder\background\shell\OpenCmdHereAsAdmin" /v "Icon" /t REG_SZ /d "imageres.dll,-5324" /f
reg add "HKCR\LibraryFolder\background\shell\OpenCmdHereAsAdmin\command" /ve /t REG_SZ /d "PowerShell -windowstyle hidden -Command \"Start-Process cmd -ArgumentList '/s,/k,pushd,%%V' -Verb RunAs\"" /f

Add “Open elevated PowerShell window here”

reg add "HKCR\Directory\Background\shell\PowerShellAsAdmin" /V "" /D "Open PowerShell window here as administrator" /F 1>NUL
reg delete "HKCR\Directory\Background\shell\PowerShellAsAdmin" /V "Extended" /F 1>NUL
reg add "HKCR\Directory\Background\shell\PowerShellAsAdmin" /V "HasLUAShield" /T "REG_SZ" /D "" /F 1>NUL
reg add "HKCR\Directory\Background\shell\PowerShellAsAdmin" /V "Icon" /T "REG_SZ" /D "powershell.exe" /F 1>NUL
reg add "HKCR\Directory\Background\shell\PowerShellAsAdmin\command" /V "" /D "PowerShell -windowstyle hidden -Command \"Start-Process cmd -ArgumentList '/s,/k,pushd,%%V ^&^& start PowerShell ^&^& exit' -Verb RunAs\"" /F 1>NUL
reg add "HKCR\Directory\shell\PowerShellAsAdmin" /V "" /D "Open PowerShell window here as administrator" /F 1>NUL
reg delete "HKCR\Directory\shell\PowerShellAsAdmin" /V "Extended" /F 1>NUL
reg add "HKCR\Directory\shell\PowerShellAsAdmin" /V "HasLUAShield" /T "REG_SZ" /D "" /F 1>NUL
reg add "HKCR\Directory\shell\PowerShellAsAdmin" /V "Icon" /T "REG_SZ" /D "powershell.exe" /F 1>NUL
reg add "HKCR\Directory\shell\PowerShellAsAdmin\command" /V "" /D "PowerShell -windowstyle hidden -Command \"Start-Process cmd -ArgumentList '/s,/k,pushd,%%V ^&^& start PowerShell ^&^& exit' -Verb RunAs\"" /F 1>NUL
reg add "HKCR\Drive\shell\PowerShellAsAdmin" /V "" /D "Open PowerShell window here as administrator" /F 1>NUL
reg delete "HKCR\Drive\shell\PowerShellAsAdmin" /V "Extended" /F 1>NUL
reg add "HKCR\Drive\shell\PowerShellAsAdmin" /V "HasLUAShield" /T "REG_SZ" /D "" /F 1>NUL
reg add "HKCR\Drive\shell\PowerShellAsAdmin" /V "Icon" /T "REG_SZ" /D "powershell.exe" /F 1>NUL
reg add "HKCR\Drive\shell\PowerShellAsAdmin\command" /V "" /D "PowerShell -windowstyle hidden -Command \"Start-Process cmd -ArgumentList '/s,/k,pushd,%%V ^&^& start PowerShell ^&^& exit' -Verb RunAs\"" /F 1>NUL
reg add "HKCR\LibraryFolder\Background\shell\PowerShellAsAdmin" /V "" /D "Open PowerShell window here as administrator" /F 1>NUL
reg delete "HKCR\LibraryFolder\Background\shell\PowerShellAsAdmin" /V "Extended" /F 1>NUL
reg add "HKCR\LibraryFolder\Background\shell\PowerShellAsAdmin" /V "HasLUAShield" /T "REG_SZ" /D "" /F 1>NUL
reg add "HKCR\LibraryFolder\Background\shell\PowerShellAsAdmin" /V "Icon" /T "REG_SZ" /D "powershell.exe" /F 1>NUL
reg add "HKCR\LibraryFolder\Background\shell\PowerShellAsAdmin\command" /V "" /D "PowerShell -windowstyle hidden -Command \"Start-Process cmd -ArgumentList '/s,/k,pushd,%%V ^&^& start PowerShell ^&^& exit' -Verb RunAs\"" /F 1>NUL

Bitlocker

Enable XTS-AES 256-bit encryption for all drives

reg add "HKLM\SOFTWARE\Policies\Microsoft\FVE" /V "EncryptionMethodWithXtsOs" /T "REG_DWORD" /D "0x00000007" /F 1>NUL
reg add "HKLM\SOFTWARE\Policies\Microsoft\FVE" /V "EncryptionMethodWithXtsFdv" /T "REG_DWORD" /D "0x00000007" /F 1>NUL
reg add "HKLM\SOFTWARE\Policies\Microsoft\FVE" /V "EncryptionMethodWithXtsRdv" /T "REG_DWORD" /D "0x00000007" /F 1>NUL

Require additional authentication at startup: TPM + startup key

reg add "HKLM\SOFTWARE\Policies\Microsoft\FVE" /V "UseAdvancedStartup" /T "REG_DWORD" /D "0x00000001" /F 1>NUL
reg add "HKLM\SOFTWARE\Policies\Microsoft\FVE" /V "EnableBDEWithNoTPM" /T "REG_DWORD" /D "0x00000001" /F 1>NUL
reg add "HKLM\SOFTWARE\Policies\Microsoft\FVE" /V "UseTPM" /T "REG_DWORD" /D "0x00000002" /F 1>NUL
reg add "HKLM\SOFTWARE\Policies\Microsoft\FVE" /V "UseTPMPIN" /T "REG_DWORD" /D "0x00000002" /F 1>NUL
reg add "HKLM\SOFTWARE\Policies\Microsoft\FVE" /V "UseTPMKey" /T "REG_DWORD" /D "0x00000002" /F 1>NUL
reg add "HKLM\SOFTWARE\Policies\Microsoft\FVE" /V "UseTPMKeyPIN" /T "REG_DWORD" /D "0x00000002" /F 1>NUL

Name computer

set /p newname="Enter your computer name: "
FOR /F "tokens=* USEBACKQ" %%F IN (`hostname`) DO (
SET oldname=%%F
)
WMIC computersystem where caption="%oldname%" rename "%newname%"

Close and restart explorer.exe

taskkill /f /im explorer.exe & start explorer.exe

Restart computer

timeout /t 10 /nobreak
shutdown.exe /r /t 00

exit

My fav bg color in Windows 10: #214054
“Windows Blue” bg color #05335c


Sources:

https://www.sordum.org/downloads/?reg-converter

https://www.askvg.com/how-to-remove-search-and-task-view-icons-from-windows-10-taskbar

http://www.thewindowsclub.com/enable-console-lock-display-timeout-windows-8

https://docs.microsoft.com/en-us/windows/configuration/configure-windows-10-taskbar

https://superuser.com/questions/395818/how-to-change-keyboard-layout-via-command-line-cmd-exe-on-windows-xp-7