Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/flick9000/winscript/llms.txt

Use this file to discover all available pages before exploring further.

Windows exposes a permission consent system for UWP and modern apps through the CapabilityAccessManager registry hive. Each capability has a corresponding ConsentStore key where the Value string can be set to Deny to block all apps from accessing that resource. The base path for most of these permissions is:
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\<permission>
Setting the Value entry to Deny at this path revokes system-wide access for every app using that capability. Some permissions — such as Phone, Voice Activation, and Trusted Devices — use separate policy keys outside CapabilityAccessManager and are noted below.
These registry keys govern UWP (Universal Windows Platform) and modern packaged apps. Traditional Win32 desktop applications do not consult CapabilityAccessManager and are unaffected by these settings.

Permission Reference

PermissionConsentStore Key / Registry PathRegistry Value
LocationConsentStore\locationValue = Deny
CameraConsentStore\webcamValue = Deny
MicrophoneConsentStore\microphoneValue = Deny
Documents LibraryConsentStore\documentsLibraryValue = Deny
Pictures LibraryConsentStore\picturesLibraryValue = Deny
Videos LibraryConsentStore\videosLibraryValue = Deny
Broad File SystemConsentStore\broadFileSystemAccessValue = Deny
Account InformationConsentStore\userAccountInformationValue = Deny
ContactsConsentStore\contactsValue = Deny
Call HistoryConsentStore\phoneCallHistoryValue = Deny
MessagingConsentStore\chatValue = Deny
NotificationsConsentStore\userNotificationListenerValue = Deny
EmailConsentStore\emailValue = Deny
TasksConsentStore\userDataTasksValue = Deny
DiagnosticsConsentStore\appDiagnosticsValue = Deny
CalendarConsentStore\appointmentsValue = Deny
MotionConsentStore\activityValue = Deny
RadiosConsentStore\radiosValue = Deny
RecordingsConsentStore\graphicsCaptureProgrammaticValue = Deny
Screenshot BordersConsentStore\graphicsCaptureWithoutBorderValue = Deny
AI GenerationConsentStore\systemAIModelsValue = Deny
Voice ActivationHKCU\Software\Microsoft\Speech_OneCore\Settings\VoiceActivation\UserPreferenceForAllAppsAgentActivationEnabled = 0
PhoneHKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacyLetAppsAccessPhone = 2
Trusted DevicesHKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{C1D23ACC-752B-43E5-8448-8D0E519CD6D6}Value = Deny

PowerShell Commands

Location

reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location" /v "Value" /d "Deny" /f

Camera

reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\webcam" /v "Value" /d "Deny" /t REG_SZ /f

Microphone

reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\microphone" /v "Value" /d "Deny" /t REG_SZ /f

File System

reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\documentsLibrary" /v "Value" /d "Deny" /t REG_SZ /f
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\picturesLibrary" /v "Value" /d "Deny" /t REG_SZ /f
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\videosLibrary" /v "Value" /d "Deny" /t REG_SZ /f
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\broadFileSystemAccess" /v "Value" /d "Deny" /t REG_SZ /f

Account Information

reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\userAccountInformation" /v "Value" /d "Deny" /f

Contacts

reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\contacts" /v "Value" /d "Deny" /t REG_SZ /f

Call History

reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\phoneCallHistory" /v "Value" /d "Deny" /t REG_SZ /f

Messaging

reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\chat" /v "Value" /d "Deny" /t REG_SZ /f

Notifications

reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\userNotificationListener" /v "Value" /d "Deny" /t REG_SZ /f

Email

reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\email" /v "Value" /d "Deny" /t REG_SZ /f

Tasks

reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\userDataTasks" /v "Value" /d "Deny" /t REG_SZ /f

Diagnostics

reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\appDiagnostics" /v "Value" /d "Deny" /t REG_SZ /f

Calendar

reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\appointments" /v "Value" /d "Deny" /t REG_SZ /f

Motion

reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\activity" /v "Value" /d "Deny" /f

Radios

reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\radios" /v "Value" /d "Deny" /t REG_SZ /f

Recordings

reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\graphicsCaptureProgrammatic" /v "Value" /d "Deny" /t REG_SZ /f

Screenshot Borders

reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\graphicsCaptureWithoutBorder" /v "Value" /d "Deny" /t REG_SZ /f

AI Generation

reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\systemAIModels" /v "Value" /d "Deny" /t REG_SZ /f

Voice Activation

Voice activation uses a per-user key under HKCU rather than the CapabilityAccessManager path.
reg add "HKCU\Software\Microsoft\Speech_OneCore\Settings\VoiceActivation\UserPreferenceForAllApps" /v "AgentActivationEnabled" /t REG_DWORD /d 0 /f

Phone

Phone access is controlled by the AppPrivacy policy hive. Setting LetAppsAccessPhone to 2 forces denial for all apps, with the per-app override lists cleared.
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessPhone" /t REG_DWORD /d 2 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessPhone_UserInControlOfTheseApps" /t REG_MULTI_SZ /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessPhone_ForceAllowTheseApps" /t REG_MULTI_SZ /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessPhone_ForceDenyTheseApps" /t REG_MULTI_SZ /f

Trusted Devices

Trusted Devices access is stored under DeviceAccess using a GUID-based key.
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{C1D23ACC-752B-43E5-8448-8D0E519CD6D6}" /t REG_SZ /v "Value" /d "Deny" /f

Build docs developers (and LLMs) love