Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows Server 2012 R2, Windows 8.1 or Windows RT 8.1
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System |
|---|
| Value name | MSAOptional |
|---|
| Enabled writes | 1 (REG_DWORD) |
|---|
| Disabled writes | 0 (REG_DWORD) |
|---|
What it does (vendor explanation)
This policy setting lets you control whether Microsoft accounts are optional for packaged Microsoft Store apps that require an account to sign in. This policy only affects packaged Microsoft Store apps that support it.
If you enable this policy setting, packaged Microsoft Store apps that typically require a Microsoft account to sign in will allow users to sign in with an enterprise account instead.
If you disable or do not configure this policy setting, users will need to sign in with a Microsoft account.
Group Policy path: Computer Configuration > Administrative Templates > Windows Components > App runtime > Allow Microsoft accounts to be optional
PowerShell equivalent (generated from the template)
New-Item -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'MSAOptional' -Value 1 -PropertyType DWord -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
Installed software and uninstallLanguage, region and inputADMX: AppXRuntime.admx · policy name AppxRuntimeMicrosoftAccountsOptional
Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows Server 2016, Windows 10
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System |
|---|
| Value name | BlockHostedAppAccessWinRT |
|---|
| Enabled writes | 1 (REG_DWORD) |
|---|
| Disabled writes | 0 (REG_DWORD) |
|---|
What it does (vendor explanation)
This policy setting controls whether Universal Windows apps with Windows Runtime API access directly from web content can be launched.
If you enable this policy setting, Universal Windows apps which declare Windows Runtime API access in ApplicationContentUriRules section of the manifest cannot be launched; Universal Windows apps which have not declared Windows Runtime API access in the manifest are not affected.
If you disable or do not configure this policy setting, all Universal Windows apps can be launched.
This policy should not be enabled unless recommended by Microsoft as a security response because it can cause severe app compatibility issues.
Group Policy path: Computer Configuration > Administrative Templates > Windows Components > App runtime > Block launching Universal Windows apps with Windows Runtime API access from hosted content.
PowerShell equivalent (generated from the template)
New-Item -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'BlockHostedAppAccessWinRT' -Value 1 -PropertyType DWord -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
Installed software and uninstallLanguage, region and inputADMX: AppXRuntime.admx · policy name AppxRuntimeBlockHostedAppAccessWinRT
Machine and user Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows Server 2012, Windows 8 or Windows RT
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Associations |
|---|
| Registry key | HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Associations |
|---|
| Value name | BlockProtocolElevation |
|---|
| Enabled writes | 1 (REG_DWORD) |
|---|
| Disabled writes | 0 (REG_DWORD) |
|---|
What it does (vendor explanation)
This policy setting lets you control whether packaged Microsoft Store apps can open URIs using the default desktop app for a URI scheme. Because desktop apps run at a higher integrity level than packaged Microsoft Store apps, there is a risk that a URI scheme launched by a packaged Microsoft Store app might compromise the system by launching a desktop app.
If you enable this policy setting, packaged Microsoft Store apps cannot open URIs in the default desktop app for a URI scheme; they can open URIs only in other packaged Microsoft Store apps.
If you disable or do not configure this policy setting, packaged Microsoft Store apps can open URIs in the default desktop app for a URI scheme.
Note: Enabling this policy setting does not block packaged Microsoft Store apps from opening the default desktop app for the http, https, and mailto URI schemes. The handlers for these URI schemes are hardened against URI-based vulnerabilities from untrusted sources, reducing the associated risk.
Group Policy path: Computer or User Configuration > Administrative Templates > Windows Components > App runtime > Block launching desktop apps associated with a URI scheme
PowerShell equivalent (generated from the template)
New-Item -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Associations' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Associations' -Name 'BlockProtocolElevation' -Value 1 -PropertyType DWord -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
Installed software and uninstallLanguage, region and inputADMX: AppXRuntime.admx · policy name AppxRuntimeBlockProtocolElevation
Machine and user Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows Server 2012, Windows 8 or Windows RT
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Associations |
|---|
| Registry key | HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Associations |
|---|
| Value name | BlockFileElevation |
|---|
| Enabled writes | 1 (REG_DWORD) |
|---|
| Disabled writes | 0 (REG_DWORD) |
|---|
What it does (vendor explanation)
This policy setting lets you control whether packaged Microsoft Store apps can open files using the default desktop app for a file type. Because desktop apps run at a higher integrity level than packaged Microsoft Store apps, there is a risk that a packaged Microsoft Store app might compromise the system by opening a file in the default desktop app for a file type.
If you enable this policy setting, packaged Microsoft Store apps cannot open files in the default desktop app for a file type; they can open files only in other packaged Microsoft Store apps.
If you disable or do not configure this policy setting, packaged Microsoft Store apps can open files in the default desktop app for a file type.
Group Policy path: Computer or User Configuration > Administrative Templates > Windows Components > App runtime > Block launching desktop apps associated with a file.
PowerShell equivalent (generated from the template)
New-Item -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Associations' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Associations' -Name 'BlockFileElevation' -Value 1 -PropertyType DWord -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
Installed software and uninstallLanguage, region and inputADMX: AppXRuntime.admx · policy name AppxRuntimeBlockFileElevation
Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows Server 2012 R2, Windows 8.1 or Windows RT 8.1
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Packages\Applications |
|---|
| Value name | EnableDynamicContentUriRules |
|---|
| Enabled writes | 1 (REG_DWORD) |
|---|
| Disabled writes | 0 (REG_DWORD) |
|---|
| Option | Value | Type | Allowed values |
|---|
| Content URI Rules: | Software\Microsoft\Windows\CurrentVersion\Policies\Packages\Applications\ContentUriRules\(list subkey) | REG_SZ (one value per entry) | One value per list entry |
What it does (vendor explanation)
This policy setting lets you turn on Content URI Rules to supplement the static Content URI Rules that were defined as part of the app manifest and apply to all packaged Microsoft Store apps that use the enterpriseAuthentication capability on a computer.
If you enable this policy setting, you can define additional Content URI Rules that all packaged Microsoft Store apps that use the enterpriseAuthentication capability on a computer can use.
If you disable or don't set this policy setting, packaged Microsoft Store apps will only use the static Content URI Rules.
Group Policy path: Computer Configuration > Administrative Templates > Windows Components > App runtime > Turn on dynamic Content URI Rules for packaged Microsoft Store apps
PowerShell equivalent (generated from the template)
New-Item -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Packages\Applications' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Packages\Applications' -Name 'EnableDynamicContentUriRules' -Value 1 -PropertyType DWord -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
Installed software and uninstallLanguage, region and inputADMX: AppXRuntime.admx · policy name AppxRuntimeApplicationContentUriRules