Thursday, August 16, 2018

How to enable "Allow Deployment operations in special profiles policy" ?

In my previous post, the Blank UWP project created using Microsoft Visual Studio Community 2017 version 15.7.5 - the Build operation succeeded although there was the following error in the MainPage.xaml page:

" The pacakge deployment operation is blocked by the 'Allow Deployment operations in special profiles policy"

In order to unblock this policy, the following procedure was employed on a Windows 10 Professional Laptop(DELL):

In Search charm type in Local Group Policy. Click Edit group policy.


 Local Group Policy Editor is displayed.


Click Administrative Templates.  Click Windows Components and click App Package Deployment.


Now choose to Enabled if it is not already. Note: After a new Windows Update it was in disabled state.


Click OK.

Allow Deployment operations in special profiles policy
This policy setting allows you to manage the deployment of Windows Store apps when the user is signed in using a special profile. Special profiles are the following user profiles, where changes are discarded after the user signs off:

Roaming user profiles to which the "Delete cached copies of roaming profiles" Group Policy setting applies
Mandatory user profiles and super-mandatory profiles, which are created by an administrator
Temporary user profiles, which are created when an error prevents the correct profile from loading
User profiles for the Guest account and members of the Guests group

If you enable this policy setting, Group Policy allows deployment operations (adding, registering, staging, updating, or removing an app package) of Windows Store apps when using a special profile.
If you disable or do not configure this policy setting, Group Policy blocks deployment operations of Windows Store apps when using a special profile.

Also there are more policy related items for the Apps.