This tutorial will show you how to clear the camera last accessed history by apps for your account in Windows 11.
If your device comes with a camera light, the light will turn on when the camera (webcam) is in use.
If your system doesn’t have a camera light, you’ll get a notification to let you know when the camera (webcam) turns on or off.
You can also look in Settings > Privacy & security > Camera to see which apps are currently using your camera or have recently or previously accessed your camera. If an app had accessed your camera, it will have a last accessed time stamp to let you know when.
If wanted, you can clear the camera last accessed history by Windows apps (Microsoft Store apps) and desktop apps.
Reference:
Windows camera, microphone, and privacy - Microsoft Support
Find out how to change privacy settings for your camera and microphone in Windows.

EXAMPLE: Camera last accessed history by apps
Settings > Privacy & security > Camera
Here's How:
1 Click/tap on the download button below to download the Clear_camera_last_accessed_history_for_current_user.zip file.
Download
(Contents of BAT file for reference)
Code:
@echo off
:: Clear Microsoft Store apps last accessed history
Powershell -Command "Get-Item -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\webcam\* | Remove-ItemProperty -Name LastUsedTimeStart -ErrorAction SilentlyContinue"
Powershell -Command "Get-Item -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\webcam\* | Remove-ItemProperty -Name LastUsedTimeStop -ErrorAction SilentlyContinue"
:: Clear desktop apps last accessed history
Powershell -Command "Get-Item -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\webcam\NonPackaged\* | Remove-Item -Recurse -Force"
2 Save the ZIP file to your desktop.
3 Unblock the ZIP file.
4 Extract the BAT file from the ZIP file.
5 Run the BAT file.
6 You will now see a command prompt quickly flash open and close to run the commands to clear the camera (webcam) last accessed by apps history.
7 You can now delete the BAT file if you like.
That's it,
Shawn Brink
Attachments
Last edited: