Policy
Agent Consent Duration
Microsoft Windows
Policy overview
Key metadata and intent for this policy.
Supported OS tags: Windows11
Specifies how long, in hours, an “Allow” consent response for agent capabilities remains valid before the user is prompted again. If this policy is enabled, the value must be from 1 (1 hour) to 8760 (1 year). The configured value is used as the default expiration time for all “Allow” consent responses for agent capabilities. If this policy is not configured, or if the value is outside the allowed range, the default is 720 hours (30 days).
Internal name
AgentConsentDuration
Policy ID
758cd26e4bac
Elements
1
Registry values
How enabled and disabled states update the registry.
No explicit registry values are set for enabled or disabled states.
Policy elements
Inputs and configuration options exposed by this policy.
| Scope | Element | Type | Registry mapping | Constraints & behavior | Copy |
|---|---|---|---|---|---|
| Computer | Consent duration (hours): ID AgentConsentDuration_Value | decimal | Path Software\Policies\Microsoft\Windows\WindowsAI Value name AgentConsentDuration Type REG_DWORD | Range: 1 to 8760 |
Consent duration (hours):
Registry mapping
Path
Software\Policies\Microsoft\Windows\WindowsAI
Value name
AgentConsentDuration
Type
REG_DWORD
Details
Range: 1 to 8760