Agent Consent Duration
- Policy ID
- AgentConsentDuration
- Scope
- Computer Configuration
- Supported on
- At least Windows 11 Pro, Enterprise, or Education with Windows Sandbox
- Source
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
- Category
- Windows Components › Windows AI
Description
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).
Options
Registry
ComputerHKEY_LOCAL_MACHINE
- AgentConsentDurationREG_DWORD