locked
App-V Powershell Grant-AppvServerPackage Overwrites the Custom Configurations of Pre-Existing Entitlements RRS feed

  • Question

  • It appears that by using Grant-AppvServerPackage (https://msdn.microsoft.com/en-us/library/dn879384.aspx) to grant or revoke application package access, any custom configurations applied to pre-existing entitlement groups are restored back to default. Note we are still using App-V 5.0 server infrastructure.

    This Cmdlet actually overwrites all entitlements on an existing package, it does not just append a new group to the existing entitlements.

    Example:
    Application A has entitlements for Group 1, and Group 2. Group 1 has a custom dynamic configuration applied.

    1.    Run Grant-AppvServerPackage for Application A specifying Group 3 and pre-existing entitlements Group 1, and Group 2. Without specifying the pre-existing groups they are removed from the entitlements list for the application.
    2.    Access is granted for Group 1, Group 2, and Group 3 but the custom dynamic configuration for Group 1 has been restored back to default default.

    Am I going about granting or revoking application access in the proper way? There must be a way to do this without restoring all the dynamic configurations back to default.

    Also, FYI Here is the original posting I made trying to determine the best method of granting/revoking application access: https://social.technet.microsoft.com/Forums/en-US/fd58128b-2537-4b69-a920-ab4a211f456c/bulk-remove-group-permission-using-powershell?forum=mdopappv#9ef028bb-c747-4c7a-8f97-99bc87a09595 

    Found this other post that replicates the issue using the App-V 5.1 web interface. Maybe the new webinterface is just using the powershell commands causing the same bug. https://social.technet.microsoft.com/Forums/en-US/c3589fb8-90e5-46aa-8574-cea1b559e42b/appv51-help-needed-in-order-to-get-a-bug-fixed?forum=mdopappv


    If you found this post helpful, please give it a "Helpful" vote. If it answered your question, remember to mark it as an "Answer".




    Friday, October 2, 2015 1:45 PM

Answers

  • Hey all!

    I wanted to point out this issue is tied to a greater issue with group-configuration relationships that is being investigated. We appreciate your patience.


    Steve Thomas, Senior Consultant, Microsoft

    App-V/MED-V/SCVMM/Server App-V/MDOP/AppCompat

    http://blogs.technet.com/gladiatormsft/
    The App-V Team blog: http://blogs.technet.com/appv/
    The MED-V Team Blog: http://blogs.technet.com/medv
    The SCVMM Team blog: http://blogs.technet.com/scvmm/

    “This posting is provided "AS IS" with no warranties, and confers no rights. User assumes all risks.”

    Sunday, October 25, 2015 2:33 AM
  • This hotfix solves the issue when using the web GUI but from my testing the problem still exists when granting entitlements via powershell.

    If you found this post helpful, please give it a "Helpful" vote. If it answered your question, remember to mark it as an "Answer".

    • Marked as answer by David Kozera Tuesday, January 19, 2016 1:35 PM
    Friday, November 27, 2015 6:24 PM

All replies

  • Sounds like a bug, check out this topic, which describes the same issue, but by use of the GUI.
    Friday, October 2, 2015 2:24 PM
  • Looks like it is the same bug to me just recreated with the new web interface instead of with the PowerShell cmdlet.

    If you found this post helpful, please give it a "Helpful" vote. If it answered your question, remember to mark it as an "Answer".

    Friday, October 2, 2015 3:06 PM
  • Hey all!

    I wanted to point out this issue is tied to a greater issue with group-configuration relationships that is being investigated. We appreciate your patience.


    Steve Thomas, Senior Consultant, Microsoft

    App-V/MED-V/SCVMM/Server App-V/MDOP/AppCompat

    http://blogs.technet.com/gladiatormsft/
    The App-V Team blog: http://blogs.technet.com/appv/
    The MED-V Team Blog: http://blogs.technet.com/medv
    The SCVMM Team blog: http://blogs.technet.com/scvmm/

    “This posting is provided "AS IS" with no warranties, and confers no rights. User assumes all risks.”

    Sunday, October 25, 2015 2:33 AM
  • AppV5.1 Hotfix1 should solve this issue.
    • Proposed as answer by Roy Essers Tuesday, November 24, 2015 1:55 PM
    Tuesday, November 24, 2015 1:55 PM
  • Thanks for pointing this out. Looks like the bits just dropped.

    If you found this post helpful, please give it a "Helpful" vote. If it answered your question, remember to mark it as an "Answer".

    Tuesday, November 24, 2015 1:58 PM
  • This hotfix solves the issue when using the web GUI but from my testing the problem still exists when granting entitlements via powershell.

    If you found this post helpful, please give it a "Helpful" vote. If it answered your question, remember to mark it as an "Answer".

    • Marked as answer by David Kozera Tuesday, January 19, 2016 1:35 PM
    Friday, November 27, 2015 6:24 PM