Increase console history and disable Desktop Spotlight

Create Console registry key and set ScreenBufferSize to maximize PowerShell/CMD output history. Disable Desktop Spotlight by setting EnabledState=0 and copy the default light wallpaper to the user's TranscodedWallpaper so sandboxes use a consistent wallpaper. Keys are created with -Force and values set as DWord.
main
ThioJoe 2026-03-07 12:58:42 -07:00
parent a716ce5574
commit 2ba0335cab
No known key found for this signature in database
GPG Key ID: 2E328FE64CC3898C
1 changed files with 9 additions and 0 deletions

View File

@ -39,6 +39,15 @@ try { Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope LocalMachine -Err
# Enable Clipboard History # Enable Clipboard History
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Clipboard" -Name "EnableClipboardHistory" -Value 1 -Type DWord -Force Set-ItemProperty -Path "HKCU:\Software\Microsoft\Clipboard" -Name "EnableClipboardHistory" -Value 1 -Type DWord -Force
# Increase the output history of powershell / cmd to max number of lines
New-Item -Path "HKCU:\Console" -Force | Out-Null
Set-ItemProperty -Path "HKCU:\Console" -Name "ScreenBufferSize" -Value 2147418232 -Type DWord
# Disable spotlight wallpaper, and set the wallpaper to the default light theme wallpaper
New-Item -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\DesktopSpotlight\Settings" -Force | Out-Null # Ensures the key exists
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\DesktopSpotlight\Settings" -Name "EnabledState" -Value 0 -Type DWord
Copy-Item -Path "C:\Windows\Web\Wallpaper\Windows\img0.jpg" -Destination "$env:APPDATA\Microsoft\Windows\Themes\TranscodedWallpaper" -Force # For dark theme wallpaper, use "img19.jpg" instead of img0.jpg
# ----------------------------------------------------------------------------------------- # -----------------------------------------------------------------------------------------
# ---- Add 'Open PowerShell Here' and 'Open CMD Here' to context menu ------- # ---- Add 'Open PowerShell Here' and 'Open CMD Here' to context menu -------