SandboxStartup.ps1 - Add line to enable clipboard history

main
ThioJoe 2025-11-15 17:48:38 -07:00
parent 487c0afa55
commit c33a3c70b7
No known key found for this signature in database
GPG Key ID: 2E328FE64CC3898C
1 changed files with 3 additions and 0 deletions

View File

@ -32,6 +32,9 @@ CiTool.exe --refresh --json | Out-Null # Refreshes policy. Use json output param
# Change execution policy for powershell to allow running scripts. Normally it shows an error about a more specific policy (Process level Bypass policy), but it doesn't matter so we hide it via try/catch # Change execution policy for powershell to allow running scripts. Normally it shows an error about a more specific policy (Process level Bypass policy), but it doesn't matter so we hide it via try/catch
try { Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope LocalMachine -ErrorAction Stop | Out-Null } catch {} try { Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope LocalMachine -ErrorAction Stop | Out-Null } catch {}
# Enable Clipboard History
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Clipboard" -Name "EnableClipboardHistory" -Value 1 -Type DWord -Force
# ----------------------------------------------------------------------------------------- # -----------------------------------------------------------------------------------------
# ---- Add 'Open PowerShell Here' and 'Open CMD Here' to context menu ------- # ---- Add 'Open PowerShell Here' and 'Open CMD Here' to context menu -------