{"id":1245,"date":"2025-07-15T11:48:15","date_gmt":"2025-07-15T11:48:15","guid":{"rendered":"https:\/\/kourentzes.com\/konstantinos\/?p=1245"},"modified":"2025-07-14T07:42:10","modified_gmt":"2025-07-14T07:42:10","slug":"reset-gpu-settings-windows-powershell","status":"publish","type":"post","link":"https:\/\/kourentzes.com\/konstantinos\/index.php\/2025\/07\/15\/reset-gpu-settings-windows-powershell\/","title":{"rendered":"PowerShell script that resets video\/display settings (after switching GPU)"},"content":{"rendered":"\n<p>Here&#8217;s a <strong>PowerShell script<\/strong> that resets video\/display settings when switching GPUs. It focuses on:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Clearing display resolutions and refresh rates<\/strong><\/li>\n\n\n\n<li><strong>Resetting display scaling and layout<\/strong><\/li>\n\n\n\n<li><strong>Removing custom ICC profiles<\/strong><\/li>\n\n\n\n<li><strong>Flushing DirectX shader cache<\/strong><\/li>\n\n\n\n<li><strong>Clearing Nvidia\/AMD specific settings (optional)<\/strong><\/li>\n<\/ul>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>&#x26a0;&#xfe0f; This script <strong>does not reinstall drivers<\/strong> but assumes drivers for both GPUs are installed and switching is done via hardware or software (e.g., eGPU, BIOS).<\/p>\n<\/blockquote>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro padding-bottom-disabled\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#212121\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly># Run as Administrator\n\nWrite-Host \"Resetting Display Settings...\" -ForegroundColor Cyan\n\n# Reset display layout to default (primary only)\nStart-Process -FilePath \"DisplaySwitch.exe\" -ArgumentList \"\/internal\" -Wait\n\n# Remove custom display settings from registry (resolution, scaling, etc.)\n$regPaths = @(\n    \"HKCU:\\Control Panel\\Desktop\",\n    \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Display\",\n    \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\ThemeManager\"\n)\n\nforeach ($path in $regPaths) {\n    Write-Host \"Resetting registry keys in $path\"\n    try {\n        Remove-ItemProperty -Path $path -Name \"LogPixels\" -ErrorAction SilentlyContinue\n        Remove-ItemProperty -Path $path -Name \"DpiScalingVer\" -ErrorAction SilentlyContinue\n    } catch {\n        Write-Host \"Error modifying $path: $_\" -ForegroundColor Yellow\n    }\n}\n\n# Reset screen resolution via DisplaySettings (fallback)\nAdd-Type -AssemblyName System.Windows.Forms\n&#91;System.Windows.Forms.Screen&#93;::AllScreens | ForEach-Object {\n    Write-Host \"Detected monitor: $($_.DeviceName), resolution: $($_.Bounds.Width)x$($_.Bounds.Height)\"\n}\n\n# Flush DirectX Shader Cache\n$dxCache = \"$env:LOCALAPPDATA\\D3DSCache\"\nif (Test-Path $dxCache) {\n    Write-Host \"Flushing DirectX shader cache...\"\n    Remove-Item \"$dxCache\\*\" -Recurse -Force -ErrorAction SilentlyContinue\n}\n\n# Reset NVIDIA or AMD settings\nWrite-Host \"Looking for NVIDIA\/AMD profile tools...\" -ForegroundColor DarkGray\n\n# Optional: NVIDIA Control Panel settings (requires nvidiaProfileInspector or nv-cleaninstall)\n# Optional: AMD Radeon Settings (no public CLI for resets)\n\n# Clear display color profiles\n$colorProfiles = \"HKCU:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\ICM\"\nif (Test-Path $colorProfiles) {\n    Write-Host \"Removing ICC color profiles...\"\n    Remove-Item \"$colorProfiles\\*\" -Recurse -Force -ErrorAction SilentlyContinue\n}\n\n# Optional reboot prompt\n$choice = Read-Host \"Reboot now to apply all changes? (Y\/N)\"\nif ($choice -eq \"Y\") {\n    Restart-Computer\n} else {\n    Write-Host \"Changes will apply after manual restart.\" -ForegroundColor Green\n}\n<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki material-theme-darker\" style=\"background-color: #212121\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #545454; font-style: italic\"># Run as Administrator<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #82AAFF\">Write-Host<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">Resetting Display Settings...<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">-<\/span><span style=\"color: #EEFFFF\">ForegroundColor Cyan<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #545454; font-style: italic\"># Reset display layout to default (primary only)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #82AAFF\">Start-Process<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">-<\/span><span style=\"color: #EEFFFF\">FilePath <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">DisplaySwitch.exe<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">-<\/span><span style=\"color: #EEFFFF\">ArgumentList <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">\/internal<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">-<\/span><span style=\"color: #EEFFFF\">Wait<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #545454; font-style: italic\"># Remove custom display settings from registry (resolution, scaling, etc.)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #89DDFF\">$<\/span><span style=\"color: #EEFFFF\">regPaths <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #F78C6C\">@<\/span><span style=\"color: #89DDFF\">(<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">HKCU:\\Control Panel\\Desktop<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #89DDFF\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Display<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #89DDFF\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\ThemeManager<\/span><span style=\"color: #89DDFF\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #89DDFF\">)<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #89DDFF; font-style: italic\">foreach<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">($<\/span><span style=\"color: #EEFFFF\">path <\/span><span style=\"color: #89DDFF; font-style: italic\">in<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">$<\/span><span style=\"color: #EEFFFF\">regPaths<\/span><span style=\"color: #89DDFF\">)<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    <\/span><span style=\"color: #82AAFF\">Write-Host<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">Resetting registry keys in <\/span><span style=\"color: #89DDFF\">$<\/span><span style=\"color: #EEFFFF\">path<\/span><span style=\"color: #89DDFF\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    <\/span><span style=\"color: #89DDFF; font-style: italic\">try<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">        <\/span><span style=\"color: #82AAFF\">Remove-ItemProperty<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">-<\/span><span style=\"color: #EEFFFF\">Path <\/span><span style=\"color: #89DDFF\">$<\/span><span style=\"color: #EEFFFF\">path <\/span><span style=\"color: #89DDFF\">-<\/span><span style=\"color: #EEFFFF\">Name <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">LogPixels<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">-<\/span><span style=\"color: #EEFFFF\">ErrorAction SilentlyContinue<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">        <\/span><span style=\"color: #82AAFF\">Remove-ItemProperty<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">-<\/span><span style=\"color: #EEFFFF\">Path <\/span><span style=\"color: #89DDFF\">$<\/span><span style=\"color: #EEFFFF\">path <\/span><span style=\"color: #89DDFF\">-<\/span><span style=\"color: #EEFFFF\">Name <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">DpiScalingVer<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">-<\/span><span style=\"color: #EEFFFF\">ErrorAction SilentlyContinue<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    <\/span><span style=\"color: #89DDFF\">}<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF; font-style: italic\">catch<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">        <\/span><span style=\"color: #82AAFF\">Write-Host<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">Error modifying <\/span><span style=\"color: #89DDFF\">$<\/span><span style=\"color: #EEFFFF\">path<\/span><span style=\"color: #C3E88D\">: <\/span><span style=\"color: #89DDFF\">$<\/span><span style=\"color: #EEFFFF\">_<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">-<\/span><span style=\"color: #EEFFFF\">ForegroundColor Yellow<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    <\/span><span style=\"color: #89DDFF\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color: #89DDFF\">}<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #545454; font-style: italic\"># Reset screen resolution via DisplaySettings (fallback)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #82AAFF\">Add-Type<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">-<\/span><span style=\"color: #EEFFFF\">AssemblyName System.Windows.Forms<\/span><\/span>\n<span class=\"line\"><span style=\"color: #89DDFF\">&#91;<\/span><span style=\"color: #C792EA\">System.Windows.Forms.Screen<\/span><span style=\"color: #89DDFF\">&#93;<\/span><span style=\"color: #EEFFFF\">::AllScreens <\/span><span style=\"color: #89DDFF\">|<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #82AAFF\">ForEach-Object<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    <\/span><span style=\"color: #82AAFF\">Write-Host<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">Detected monitor: <\/span><span style=\"color: #89DDFF\">$($<\/span><span style=\"color: #EEFFFF\">_.DeviceName<\/span><span style=\"color: #89DDFF\">)<\/span><span style=\"color: #C3E88D\">, resolution: <\/span><span style=\"color: #89DDFF\">$($<\/span><span style=\"color: #EEFFFF\">_.Bounds.Width<\/span><span style=\"color: #89DDFF\">)<\/span><span style=\"color: #C3E88D\">x<\/span><span style=\"color: #89DDFF\">$($<\/span><span style=\"color: #EEFFFF\">_.Bounds.Height<\/span><span style=\"color: #89DDFF\">)<\/span><span style=\"color: #89DDFF\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #89DDFF\">}<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #545454; font-style: italic\"># Flush DirectX Shader Cache<\/span><\/span>\n<span class=\"line\"><span style=\"color: #89DDFF\">$<\/span><span style=\"color: #EEFFFF\">dxCache <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">&quot;$<\/span><span style=\"color: #EEFFFF\">env:LOCALAPPDATA<\/span><span style=\"color: #C3E88D\">\\D3DSCache<\/span><span style=\"color: #89DDFF\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #89DDFF; font-style: italic\">if<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">(<\/span><span style=\"color: #82AAFF\">Test-Path<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">$<\/span><span style=\"color: #EEFFFF\">dxCache<\/span><span style=\"color: #89DDFF\">)<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    <\/span><span style=\"color: #82AAFF\">Write-Host<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">Flushing DirectX shader cache...<\/span><span style=\"color: #89DDFF\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    <\/span><span style=\"color: #82AAFF\">Remove-Item<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">&quot;$<\/span><span style=\"color: #EEFFFF\">dxCache<\/span><span style=\"color: #C3E88D\">\\*<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">-<\/span><span style=\"color: #EEFFFF\">Recurse <\/span><span style=\"color: #89DDFF\">-<\/span><span style=\"color: #EEFFFF\">Force <\/span><span style=\"color: #89DDFF\">-<\/span><span style=\"color: #EEFFFF\">ErrorAction SilentlyContinue<\/span><\/span>\n<span class=\"line\"><span style=\"color: #89DDFF\">}<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #545454; font-style: italic\"># Reset NVIDIA or AMD settings<\/span><\/span>\n<span class=\"line\"><span style=\"color: #82AAFF\">Write-Host<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">Looking for NVIDIA\/AMD profile tools...<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">-<\/span><span style=\"color: #EEFFFF\">ForegroundColor DarkGray<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #545454; font-style: italic\"># Optional: NVIDIA Control Panel settings (requires nvidiaProfileInspector or nv-cleaninstall)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #545454; font-style: italic\"># Optional: AMD Radeon Settings (no public CLI for resets)<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #545454; font-style: italic\"># Clear display color profiles<\/span><\/span>\n<span class=\"line\"><span style=\"color: #89DDFF\">$<\/span><span style=\"color: #EEFFFF\">colorProfiles <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">HKCU:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\ICM<\/span><span style=\"color: #89DDFF\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #89DDFF; font-style: italic\">if<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">(<\/span><span style=\"color: #82AAFF\">Test-Path<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">$<\/span><span style=\"color: #EEFFFF\">colorProfiles<\/span><span style=\"color: #89DDFF\">)<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    <\/span><span style=\"color: #82AAFF\">Write-Host<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">Removing ICC color profiles...<\/span><span style=\"color: #89DDFF\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    <\/span><span style=\"color: #82AAFF\">Remove-Item<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">&quot;$<\/span><span style=\"color: #EEFFFF\">colorProfiles<\/span><span style=\"color: #C3E88D\">\\*<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">-<\/span><span style=\"color: #EEFFFF\">Recurse <\/span><span style=\"color: #89DDFF\">-<\/span><span style=\"color: #EEFFFF\">Force <\/span><span style=\"color: #89DDFF\">-<\/span><span style=\"color: #EEFFFF\">ErrorAction SilentlyContinue<\/span><\/span>\n<span class=\"line\"><span style=\"color: #89DDFF\">}<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #545454; font-style: italic\"># Optional reboot prompt<\/span><\/span>\n<span class=\"line\"><span style=\"color: #89DDFF\">$<\/span><span style=\"color: #EEFFFF\">choice <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #82AAFF\">Read-Host<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">Reboot now to apply all changes? (Y\/N)<\/span><span style=\"color: #89DDFF\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #89DDFF; font-style: italic\">if<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">($<\/span><span style=\"color: #EEFFFF\">choice <\/span><span style=\"color: #89DDFF\">-eq<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">Y<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #89DDFF\">)<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    <\/span><span style=\"color: #82AAFF\">Restart-Computer<\/span><\/span>\n<span class=\"line\"><span style=\"color: #89DDFF\">}<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF; font-style: italic\">else<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    <\/span><span style=\"color: #82AAFF\">Write-Host<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">Changes will apply after manual restart.<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">-<\/span><span style=\"color: #EEFFFF\">ForegroundColor Green<\/span><\/span>\n<span class=\"line\"><span style=\"color: #89DDFF\">}<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><span style=\"display:flex;align-items:flex-end;padding:10px;width:100%;justify-content:flex-end;background-color:#212121;color:#d5ffff;font-size:12px;line-height:1;position:relative\">PowerShell<\/span><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Explanation <\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Feature<\/th><th>Purpose<\/th><\/tr><\/thead><tbody><tr><td><code>DisplaySwitch.exe \/internal<\/code><\/td><td>Forces output to primary screen (e.g., after GPU swap or docking)<\/td><\/tr><tr><td>Registry cleanup<\/td><td>Resets resolution, scaling, theme display info<\/td><\/tr><tr><td>Shader cache flush<\/td><td>Avoids graphical glitches after GPU change<\/td><\/tr><tr><td>Color profile removal<\/td><td>Prevents ICC conflicts from previous GPU setups<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Consider<\/h2>\n\n\n\n<p>Reset Windows Display Calibration: <code>dccw.exe<\/code><\/p>\n\n\n\n<p>Use tools like <strong>NVCleanstall<\/strong> (NVIDIA) or <strong>AMD Cleanup Utility<\/strong> for deep driver cleanup.<\/p>\n\n\n\n<p>Automate resolution scaling with <code>Display Changer II<\/code> (third-party CLI tool)<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>DISCLAIMER<\/strong><\/h2>\n\n\n\n<p><strong>Indemnification<\/strong><br>By using this script or any accompanying documentation, you agree that the author(s), publisher(s), and distributor(s) shall not be held liable for any damages, data loss, hardware malfunction, or unintended consequences arising from its use, misuse, or modification.<\/p>\n\n\n\n<p>You assume full responsibility for evaluating the fitness of this script for your specific hardware and software configuration. You agree to indemnify, defend, and hold harmless the author(s) from and against any and all claims, liabilities, damages, losses, and expenses\u2014including legal fees\u2014arising out of or in any way connected with your use of this script or any derivative works created from it.<\/p>\n\n\n\n<p>This tool is provided <strong>&#8220;as-is&#8221;<\/strong>, without warranties or guarantees of any kind, express or implied. Always back up your system settings before proceeding with system-level changes.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Swapping your graphics card can leave behind cluttered settings and caches that cause resolution glitches, scaling issues, or color profile mismatches. This PowerShell script resets Windows display settings, flushes GPU driver remnants, and prepares your system for a clean start\u2014no matter which brand of GPU you install next.<\/p>\n","protected":false},"author":1,"featured_media":1246,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_eb_attr":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1051,5],"tags":[1058,1062,1059,1065,1068,1052,1053,1063,1064,1061,1055,1069,1054,1057,1056,1066,1067,1060,1071],"class_list":["post-1245","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powershell","category-windows-operating-system","tag-amd","tag-display-scaling","tag-display-settings","tag-driver-cleanup","tag-gaming-pc","tag-gpu","tag-graphics-card","tag-hardware-upgrade","tag-icc-profile-reset","tag-intel-gpu","tag-nvidia","tag-power-users","tag-powershell-script","tag-reset-gpu","tag-shader-cache","tag-tech-support","tag-troubleshooting","tag-windows-gpu-fix","tag-workstation-optimization"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>PowerShell script that resets video\/display settings (after switching GPU) - konstantinos.kourentzes.com<\/title>\n<meta name=\"description\" content=\"Reset your GPU display settings in Windows after changing graphics cards. This PowerShell script clears old driver caches, display scaling, color profiles, and shader data to ensure optimal performance and compatibility with any new GPU\u2014whether AMD, NVIDIA, or Intel.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kourentzes.com\/konstantinos\/index.php\/2025\/07\/15\/reset-gpu-settings-windows-powershell\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PowerShell script that resets video\/display settings (after switching GPU) - konstantinos.kourentzes.com\" \/>\n<meta property=\"og:description\" content=\"Reset your GPU display settings in Windows after changing graphics cards. This PowerShell script clears old driver caches, display scaling, color profiles, and shader data to ensure optimal performance and compatibility with any new GPU\u2014whether AMD, NVIDIA, or Intel.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kourentzes.com\/konstantinos\/index.php\/2025\/07\/15\/reset-gpu-settings-windows-powershell\/\" \/>\n<meta property=\"og:site_name\" content=\"konstantinos.kourentzes.com\" \/>\n<meta property=\"article:published_time\" content=\"2025-07-15T11:48:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/kourentzes.com\/konstantinos\/wp-content\/uploads\/2025\/07\/emperor_kk_powershell_Swapping_your_graphics_card_can_leave_b_31adcc70-e6a5-4ecb-9b61-6bd399918436_3.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"1024\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Konstantinos Kourentzes\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@kkourentzes\" \/>\n<meta name=\"twitter:site\" content=\"@kkourentzes\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Konstantinos Kourentzes\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/kourentzes.com\\\/konstantinos\\\/index.php\\\/2025\\\/07\\\/15\\\/reset-gpu-settings-windows-powershell\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kourentzes.com\\\/konstantinos\\\/index.php\\\/2025\\\/07\\\/15\\\/reset-gpu-settings-windows-powershell\\\/\"},\"author\":{\"name\":\"Konstantinos Kourentzes\",\"@id\":\"https:\\\/\\\/kourentzes.com\\\/konstantinos\\\/#\\\/schema\\\/person\\\/2693fb0ad7f7638a020431ffe372c822\"},\"headline\":\"PowerShell script that resets video\\\/display settings (after switching GPU)\",\"datePublished\":\"2025-07-15T11:48:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/kourentzes.com\\\/konstantinos\\\/index.php\\\/2025\\\/07\\\/15\\\/reset-gpu-settings-windows-powershell\\\/\"},\"wordCount\":283,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/kourentzes.com\\\/konstantinos\\\/#\\\/schema\\\/person\\\/2693fb0ad7f7638a020431ffe372c822\"},\"image\":{\"@id\":\"https:\\\/\\\/kourentzes.com\\\/konstantinos\\\/index.php\\\/2025\\\/07\\\/15\\\/reset-gpu-settings-windows-powershell\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/kourentzes.com\\\/konstantinos\\\/wp-content\\\/uploads\\\/2025\\\/07\\\/emperor_kk_powershell_Swapping_your_graphics_card_can_leave_b_31adcc70-e6a5-4ecb-9b61-6bd399918436_3.png\",\"keywords\":[\"amd\",\"display scaling\",\"display settings\",\"driver cleanup\",\"gaming pc\",\"gpu\",\"graphics card\",\"hardware upgrade\",\"icc profile reset\",\"intel gpu\",\"nvidia\",\"power users\",\"powershell script\",\"reset gpu\",\"shader cache\",\"tech support\",\"troubleshooting\",\"windows gpu fix\",\"workstation optimization\"],\"articleSection\":[\"Powershell\",\"Windows\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/kourentzes.com\\\/konstantinos\\\/index.php\\\/2025\\\/07\\\/15\\\/reset-gpu-settings-windows-powershell\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/kourentzes.com\\\/konstantinos\\\/index.php\\\/2025\\\/07\\\/15\\\/reset-gpu-settings-windows-powershell\\\/\",\"url\":\"https:\\\/\\\/kourentzes.com\\\/konstantinos\\\/index.php\\\/2025\\\/07\\\/15\\\/reset-gpu-settings-windows-powershell\\\/\",\"name\":\"PowerShell script that resets video\\\/display settings (after switching GPU) - konstantinos.kourentzes.com\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kourentzes.com\\\/konstantinos\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/kourentzes.com\\\/konstantinos\\\/index.php\\\/2025\\\/07\\\/15\\\/reset-gpu-settings-windows-powershell\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/kourentzes.com\\\/konstantinos\\\/index.php\\\/2025\\\/07\\\/15\\\/reset-gpu-settings-windows-powershell\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/kourentzes.com\\\/konstantinos\\\/wp-content\\\/uploads\\\/2025\\\/07\\\/emperor_kk_powershell_Swapping_your_graphics_card_can_leave_b_31adcc70-e6a5-4ecb-9b61-6bd399918436_3.png\",\"datePublished\":\"2025-07-15T11:48:15+00:00\",\"description\":\"Reset your GPU display settings in Windows after changing graphics cards. This PowerShell script clears old driver caches, display scaling, color profiles, and shader data to ensure optimal performance and compatibility with any new GPU\u2014whether AMD, NVIDIA, or Intel.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/kourentzes.com\\\/konstantinos\\\/index.php\\\/2025\\\/07\\\/15\\\/reset-gpu-settings-windows-powershell\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/kourentzes.com\\\/konstantinos\\\/index.php\\\/2025\\\/07\\\/15\\\/reset-gpu-settings-windows-powershell\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/kourentzes.com\\\/konstantinos\\\/index.php\\\/2025\\\/07\\\/15\\\/reset-gpu-settings-windows-powershell\\\/#primaryimage\",\"url\":\"https:\\\/\\\/kourentzes.com\\\/konstantinos\\\/wp-content\\\/uploads\\\/2025\\\/07\\\/emperor_kk_powershell_Swapping_your_graphics_card_can_leave_b_31adcc70-e6a5-4ecb-9b61-6bd399918436_3.png\",\"contentUrl\":\"https:\\\/\\\/kourentzes.com\\\/konstantinos\\\/wp-content\\\/uploads\\\/2025\\\/07\\\/emperor_kk_powershell_Swapping_your_graphics_card_can_leave_b_31adcc70-e6a5-4ecb-9b61-6bd399918436_3.png\",\"width\":1024,\"height\":1024,\"caption\":\"Swapping your graphics card can leave behind cluttered settings and caches that cause resolution glitches, scaling issues, or color profile mismatches. This PowerShell script resets Windows display settings, flushes GPU driver remnants, and prepares your system for a clean start\u2014no matter which brand of GPU you install next.\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/kourentzes.com\\\/konstantinos\\\/index.php\\\/2025\\\/07\\\/15\\\/reset-gpu-settings-windows-powershell\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/kourentzes.com\\\/konstantinos\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PowerShell script that resets video\\\/display settings (after switching GPU)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/kourentzes.com\\\/konstantinos\\\/#website\",\"url\":\"https:\\\/\\\/kourentzes.com\\\/konstantinos\\\/\",\"name\":\"kourentzes.com\\\/konstantinos\",\"description\":\"Konstantinos Kourentzes\",\"publisher\":{\"@id\":\"https:\\\/\\\/kourentzes.com\\\/konstantinos\\\/#\\\/schema\\\/person\\\/2693fb0ad7f7638a020431ffe372c822\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/kourentzes.com\\\/konstantinos\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/kourentzes.com\\\/konstantinos\\\/#\\\/schema\\\/person\\\/2693fb0ad7f7638a020431ffe372c822\",\"name\":\"Konstantinos Kourentzes\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/kourentzes.com\\\/konstantinos\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/kko.png\",\"url\":\"https:\\\/\\\/kourentzes.com\\\/konstantinos\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/kko.png\",\"contentUrl\":\"https:\\\/\\\/kourentzes.com\\\/konstantinos\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/kko.png\",\"width\":2835,\"height\":2268,\"caption\":\"Konstantinos Kourentzes\"},\"logo\":{\"@id\":\"https:\\\/\\\/kourentzes.com\\\/konstantinos\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/kko.png\"},\"description\":\"Konstantinos Kourentzes is a distinguished technologist and Enterprise Resource Planning (ERP) consultant renowned for his expertise in delivering cutting-edge technology solutions. Based in Marousi, Greece, he has a knack for seamlessly integrating data-driven systems, empowering businesses to streamline their operations and achieve peak efficiency. A fervent proponent of innovation, Konstantinos is committed to instigating revolutionary shifts within organizations. His approach revolves around delivering custom-tailored ERP solutions that seamlessly align with each business's distinctive requirements. This catalyzes enduring collaborations rooted in unwavering trust and tangible outcomes. With a background rooted in technology and a passion for optimizing business processes, Konstantinos is your go-to partner for harnessing the power of ERP systems to unlock operational excellence. Connect with Konstantinos on LinkedIn to explore how his technological insights can drive your business to new heights.\",\"sameAs\":[\"https:\\\/\\\/kourentzes.com\\\/konstantinos\",\"https:\\\/\\\/x.com\\\/kkourentzes\"],\"url\":\"https:\\\/\\\/kourentzes.com\\\/konstantinos\\\/index.php\\\/author\\\/administrator\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PowerShell script that resets video\/display settings (after switching GPU) - konstantinos.kourentzes.com","description":"Reset your GPU display settings in Windows after changing graphics cards. This PowerShell script clears old driver caches, display scaling, color profiles, and shader data to ensure optimal performance and compatibility with any new GPU\u2014whether AMD, NVIDIA, or Intel.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/kourentzes.com\/konstantinos\/index.php\/2025\/07\/15\/reset-gpu-settings-windows-powershell\/","og_locale":"en_US","og_type":"article","og_title":"PowerShell script that resets video\/display settings (after switching GPU) - konstantinos.kourentzes.com","og_description":"Reset your GPU display settings in Windows after changing graphics cards. This PowerShell script clears old driver caches, display scaling, color profiles, and shader data to ensure optimal performance and compatibility with any new GPU\u2014whether AMD, NVIDIA, or Intel.","og_url":"https:\/\/kourentzes.com\/konstantinos\/index.php\/2025\/07\/15\/reset-gpu-settings-windows-powershell\/","og_site_name":"konstantinos.kourentzes.com","article_published_time":"2025-07-15T11:48:15+00:00","og_image":[{"width":1024,"height":1024,"url":"https:\/\/kourentzes.com\/konstantinos\/wp-content\/uploads\/2025\/07\/emperor_kk_powershell_Swapping_your_graphics_card_can_leave_b_31adcc70-e6a5-4ecb-9b61-6bd399918436_3.png","type":"image\/png"}],"author":"Konstantinos Kourentzes","twitter_card":"summary_large_image","twitter_creator":"@kkourentzes","twitter_site":"@kkourentzes","twitter_misc":{"Written by":"Konstantinos Kourentzes","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kourentzes.com\/konstantinos\/index.php\/2025\/07\/15\/reset-gpu-settings-windows-powershell\/#article","isPartOf":{"@id":"https:\/\/kourentzes.com\/konstantinos\/index.php\/2025\/07\/15\/reset-gpu-settings-windows-powershell\/"},"author":{"name":"Konstantinos Kourentzes","@id":"https:\/\/kourentzes.com\/konstantinos\/#\/schema\/person\/2693fb0ad7f7638a020431ffe372c822"},"headline":"PowerShell script that resets video\/display settings (after switching GPU)","datePublished":"2025-07-15T11:48:15+00:00","mainEntityOfPage":{"@id":"https:\/\/kourentzes.com\/konstantinos\/index.php\/2025\/07\/15\/reset-gpu-settings-windows-powershell\/"},"wordCount":283,"commentCount":0,"publisher":{"@id":"https:\/\/kourentzes.com\/konstantinos\/#\/schema\/person\/2693fb0ad7f7638a020431ffe372c822"},"image":{"@id":"https:\/\/kourentzes.com\/konstantinos\/index.php\/2025\/07\/15\/reset-gpu-settings-windows-powershell\/#primaryimage"},"thumbnailUrl":"https:\/\/kourentzes.com\/konstantinos\/wp-content\/uploads\/2025\/07\/emperor_kk_powershell_Swapping_your_graphics_card_can_leave_b_31adcc70-e6a5-4ecb-9b61-6bd399918436_3.png","keywords":["amd","display scaling","display settings","driver cleanup","gaming pc","gpu","graphics card","hardware upgrade","icc profile reset","intel gpu","nvidia","power users","powershell script","reset gpu","shader cache","tech support","troubleshooting","windows gpu fix","workstation optimization"],"articleSection":["Powershell","Windows"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kourentzes.com\/konstantinos\/index.php\/2025\/07\/15\/reset-gpu-settings-windows-powershell\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kourentzes.com\/konstantinos\/index.php\/2025\/07\/15\/reset-gpu-settings-windows-powershell\/","url":"https:\/\/kourentzes.com\/konstantinos\/index.php\/2025\/07\/15\/reset-gpu-settings-windows-powershell\/","name":"PowerShell script that resets video\/display settings (after switching GPU) - konstantinos.kourentzes.com","isPartOf":{"@id":"https:\/\/kourentzes.com\/konstantinos\/#website"},"primaryImageOfPage":{"@id":"https:\/\/kourentzes.com\/konstantinos\/index.php\/2025\/07\/15\/reset-gpu-settings-windows-powershell\/#primaryimage"},"image":{"@id":"https:\/\/kourentzes.com\/konstantinos\/index.php\/2025\/07\/15\/reset-gpu-settings-windows-powershell\/#primaryimage"},"thumbnailUrl":"https:\/\/kourentzes.com\/konstantinos\/wp-content\/uploads\/2025\/07\/emperor_kk_powershell_Swapping_your_graphics_card_can_leave_b_31adcc70-e6a5-4ecb-9b61-6bd399918436_3.png","datePublished":"2025-07-15T11:48:15+00:00","description":"Reset your GPU display settings in Windows after changing graphics cards. This PowerShell script clears old driver caches, display scaling, color profiles, and shader data to ensure optimal performance and compatibility with any new GPU\u2014whether AMD, NVIDIA, or Intel.","breadcrumb":{"@id":"https:\/\/kourentzes.com\/konstantinos\/index.php\/2025\/07\/15\/reset-gpu-settings-windows-powershell\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kourentzes.com\/konstantinos\/index.php\/2025\/07\/15\/reset-gpu-settings-windows-powershell\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kourentzes.com\/konstantinos\/index.php\/2025\/07\/15\/reset-gpu-settings-windows-powershell\/#primaryimage","url":"https:\/\/kourentzes.com\/konstantinos\/wp-content\/uploads\/2025\/07\/emperor_kk_powershell_Swapping_your_graphics_card_can_leave_b_31adcc70-e6a5-4ecb-9b61-6bd399918436_3.png","contentUrl":"https:\/\/kourentzes.com\/konstantinos\/wp-content\/uploads\/2025\/07\/emperor_kk_powershell_Swapping_your_graphics_card_can_leave_b_31adcc70-e6a5-4ecb-9b61-6bd399918436_3.png","width":1024,"height":1024,"caption":"Swapping your graphics card can leave behind cluttered settings and caches that cause resolution glitches, scaling issues, or color profile mismatches. This PowerShell script resets Windows display settings, flushes GPU driver remnants, and prepares your system for a clean start\u2014no matter which brand of GPU you install next."},{"@type":"BreadcrumbList","@id":"https:\/\/kourentzes.com\/konstantinos\/index.php\/2025\/07\/15\/reset-gpu-settings-windows-powershell\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kourentzes.com\/konstantinos\/"},{"@type":"ListItem","position":2,"name":"PowerShell script that resets video\/display settings (after switching GPU)"}]},{"@type":"WebSite","@id":"https:\/\/kourentzes.com\/konstantinos\/#website","url":"https:\/\/kourentzes.com\/konstantinos\/","name":"kourentzes.com\/konstantinos","description":"Konstantinos Kourentzes","publisher":{"@id":"https:\/\/kourentzes.com\/konstantinos\/#\/schema\/person\/2693fb0ad7f7638a020431ffe372c822"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kourentzes.com\/konstantinos\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/kourentzes.com\/konstantinos\/#\/schema\/person\/2693fb0ad7f7638a020431ffe372c822","name":"Konstantinos Kourentzes","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kourentzes.com\/konstantinos\/wp-content\/uploads\/2022\/02\/kko.png","url":"https:\/\/kourentzes.com\/konstantinos\/wp-content\/uploads\/2022\/02\/kko.png","contentUrl":"https:\/\/kourentzes.com\/konstantinos\/wp-content\/uploads\/2022\/02\/kko.png","width":2835,"height":2268,"caption":"Konstantinos Kourentzes"},"logo":{"@id":"https:\/\/kourentzes.com\/konstantinos\/wp-content\/uploads\/2022\/02\/kko.png"},"description":"Konstantinos Kourentzes is a distinguished technologist and Enterprise Resource Planning (ERP) consultant renowned for his expertise in delivering cutting-edge technology solutions. Based in Marousi, Greece, he has a knack for seamlessly integrating data-driven systems, empowering businesses to streamline their operations and achieve peak efficiency. A fervent proponent of innovation, Konstantinos is committed to instigating revolutionary shifts within organizations. His approach revolves around delivering custom-tailored ERP solutions that seamlessly align with each business's distinctive requirements. This catalyzes enduring collaborations rooted in unwavering trust and tangible outcomes. With a background rooted in technology and a passion for optimizing business processes, Konstantinos is your go-to partner for harnessing the power of ERP systems to unlock operational excellence. Connect with Konstantinos on LinkedIn to explore how his technological insights can drive your business to new heights.","sameAs":["https:\/\/kourentzes.com\/konstantinos","https:\/\/x.com\/kkourentzes"],"url":"https:\/\/kourentzes.com\/konstantinos\/index.php\/author\/administrator\/"}]}},"_links":{"self":[{"href":"https:\/\/kourentzes.com\/konstantinos\/index.php\/wp-json\/wp\/v2\/posts\/1245","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kourentzes.com\/konstantinos\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kourentzes.com\/konstantinos\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kourentzes.com\/konstantinos\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kourentzes.com\/konstantinos\/index.php\/wp-json\/wp\/v2\/comments?post=1245"}],"version-history":[{"count":1,"href":"https:\/\/kourentzes.com\/konstantinos\/index.php\/wp-json\/wp\/v2\/posts\/1245\/revisions"}],"predecessor-version":[{"id":1247,"href":"https:\/\/kourentzes.com\/konstantinos\/index.php\/wp-json\/wp\/v2\/posts\/1245\/revisions\/1247"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kourentzes.com\/konstantinos\/index.php\/wp-json\/wp\/v2\/media\/1246"}],"wp:attachment":[{"href":"https:\/\/kourentzes.com\/konstantinos\/index.php\/wp-json\/wp\/v2\/media?parent=1245"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kourentzes.com\/konstantinos\/index.php\/wp-json\/wp\/v2\/categories?post=1245"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kourentzes.com\/konstantinos\/index.php\/wp-json\/wp\/v2\/tags?post=1245"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}