Clear DirectX recent application history
- Windows only
- Single action
- Impact: Safe
- Batch (batchfile)
- Administrator rights required
- Irreversible
Overview
This script removes the most recent application usage data stored by DirectX to enhance privacy.
DirectX is a set of Windows components that helps software (often games and multimedia applications) to work directly with video and audio hardware 1. It logs the most recent application data in the system registry 2. Attackers exploit this information to gather insights about a target's system or network 3. Forensic analysts use this information to study your behavior 4.
This script enhances your privacy by removing traces of the last DirectX applications or games you have used. It can also improve system performance by freeing up system resources.
This script deletes all registry values under the key HKCU\Software\Microsoft\Direct3D\MostRecentApplication
2 3 4.
This action may slightly impact DirectX's ability to optimize performance for recently used applications.
Tips & Tricks
All actions in this script is recommended for all users.
It helps to improve privacy without affecting stability.
This script is irreversible, meaning there is no straightforward method to restore changes once applied.
Apply Now
Choose one of three ways to apply:
How to download and run
- Download the script file by clicking on the button above.
- If warned by your browser, keep the file.
- Open the downloaded file.
- Once it's done, press any key to exit the window.
- Restart your computer for all changes to take affect.
Apply with privacy.sexy
Guided, automated application with safety checksHow to use privacy.sexy
privacy.sexy is free and open-source application that lets securely apply this action easily with optionally more advanced options.
:: Clear registry values from "HKCU\Software\Microsoft\Direct3D\MostRecentApplication"
PowerShell -ExecutionPolicy Unrestricted -Command "$rootRegistryKeyPath = 'HKCU\Software\Microsoft\Direct3D\MostRecentApplication'; function Clear-RegistryKeyValues { try { $currentRegistryKeyPath = $args[0]; Write-Output "^""Clearing registry values from `"^""$currentRegistryKeyPath`"^""."^""; $formattedRegistryKeyPath = $currentRegistryKeyPath -replace '^([^\\]+)', '$1:'; if (-Not (Test-Path -LiteralPath $formattedRegistryKeyPath)) { Write-Output "^""Skipping: Registry key not found: `"^""$formattedRegistryKeyPath`"^""."^""; return; }; $directValueNames=(Get-Item -LiteralPath $formattedRegistryKeyPath -ErrorAction Stop | Select-Object -ExpandProperty Property); if (-Not $directValueNames) { Write-Output 'Skipping: Registry key has no direct values.'; } else { foreach ($valueName in $directValueNames) { Remove-ItemProperty -LiteralPath $formattedRegistryKeyPath -Name $valueName -ErrorAction Stop; Write-Output "^""Successfully deleted value: `"^""$valueName`"^"" from `"^""$formattedRegistryKeyPath`"^""."^""; }; Write-Output "^""Successfully cleared all direct values in `"^""$formattedRegistryKeyPath`"^""."^""; }; } catch { Write-Error "^""Failed to clear registry values in `"^""$formattedRegistryKeyPath`"^"". Error: $_"^""; Exit 1; }; }; Clear-RegistryKeyValues $rootRegistryKeyPath"
How to run commands
Open Command Prompt as administrator.
Step-by-step guideClick on Start menu
- Windows 11
- Windows 10
Type cmd
- Windows 11
- Windows 10
Right click on Command Prompt and select Run as administrator
- Windows 11
- Windows 10
Click on Yes to allow the app to make changes.
- Windows 11
- Windows 10
- Windows 11
- Windows 10
- Right click on command prompt to paste it.
- Press Enter to apply remaining code.
- Copy the code above.
- Paste the code into Command Prompt.
- Press Enter to apply the code.
- Optionally, restart your computer.Some scripts requires restarting your computer to take affect.
Similar Guides
Guides below work together with this guide to protect your privacy.
- Clear recent activity
- Privacy cleanup
This action belongs to Clear recent activity. This category includes scripts that erase traces of recent user activities on Windows. These scripts enhance privacy by removing records of accessed files, used applications, and changed system settings. Clearing recent activity is crucial for protecting your privacy. Your computer keeps detailed logs ... Read more on category page ▶
This action belongs to Privacy cleanup. To maintain data confidentiality through secure privacy control, this code breaks down key components of how to privacy cleanup Windows. Important to mention, to undo and reset to previous, follow the instructions on this user configuration walks you through. With data management, we stand against the ... Read more on category page ▶