SOLVED

MSIX AppAttach - Register App - Administrative rights needed

%3CLINGO-SUB%20id%3D%22lingo-sub-2219769%22%20slang%3D%22en-US%22%3EMSIX%20Register%20App%20-%20Administrative%20rights%20needed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2219769%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20everyone%2C%3C%2FP%3E%3CP%3Ei%20am%20trying%20to%20register%20applications%20via%20PowerShell%20on%20a%20per%20user%20basis.%20Staging%20as%20admin%20works%20fine.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3ERegistering%20per%20user%20fails%20with%20the%20following%20message%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CUL%3E%3CLI%3E%3CEM%3EAdd-AppxPackage%20%3A%20Deployment%20failed%20with%20HRESULT%3A%200x80073CF6%2C%20Package%20could%20not%20be%20registered.%3C%2FEM%3E%3C%2FLI%3E%3CLI%3E%3CEM%3EAppxManifest.xml(23%2C9584)%3A%20error%200x80073D28%3A%20Cannot%20register%20the%20GoogleChrome_68.46.66.0_x64__74vyvr5aw93s6%20package.%26nbsp%3B%3C%2FEM%3E%3CEM%3EAdministrator%20privileges%20required%20to%20install%20packaged%20service%3C%2FEM%3E%3C%2FLI%3E%3CLI%3E%3CEM%3ENOTE%3A%20For%20additional%20information%2C%20look%20for%20%5BActivityId%5D%20a7377816-941e-0000-25f7-7609e61bd701%20in%20the%20Event%20Log%20or%20use%26nbsp%3B%3C%2FEM%3E%3CEM%3Ethe%20command%20line%20Get-AppPackageLog%20-ActivityID%20a7377816-941e-0000-25f7-7609e61bd701%3C%2FEM%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%3CSTRONG%3EThe%20log%20gives%20the%20following%20information%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CUL%3E%3CLI%3E%3CEM%3E3%2F18%2F2021%2011%3A56%3A29%20AM%20573%20Setting%20Sync%20Enabled%20status%2C%20package%20family%20name%20GoogleChrome_74vyvr5aw93s6%2C%20enabled%20false.%3C%2FEM%3E%3C%2FLI%3E%3CLI%3E%3CEM%3E3%2F18%2F2021%2011%3A56%3A29%20AM%2010000%20About%20to%20service%20package%20GoogleChrome_68.46.66.0_x64__74vyvr5aw93s6.%20Setting%20the%20package%20state%20to%20disabled%20returned%20with%200x0.%3C%2FEM%3E%3C%2FLI%3E%3CLI%3E%3CEM%3E3%2F18%2F2021%2011%3A56%3A29%20AM%2010000%20About%20to%20service%20package%20GoogleChrome_68.46.66.0_x64__74vyvr5aw93s6.%20Setting%20the%20package%20state%20to%20disabled%20returned%20with%200x0.%3C%2FEM%3E%3C%2FLI%3E%3CLI%3E%3CEM%3E3%2F18%2F2021%2011%3A56%3A29%20AM%209626%20AppxManifest.xml(23%2C9584)%3A%20PackagedServiceDEH%20successfully%20parsed%20manifest%20for%20package%20GoogleChrome_68.46.66.0_x64__74vyvr5aw93s6%20install%3C%2FEM%3E%3C%2FLI%3E%3CLI%3E%3CEM%3E3%2F18%2F2021%2011%3A56%3A29%20AM%209626%20AppxManifest.xml(23%2C8619)%3A%20PackagedServiceDEH%20successfully%20parsed%20manifest%20for%20package%20GoogleChrome_68.46.66.0_x64__74vyvr5aw93s6%20install%3C%2FEM%3E%3C%2FLI%3E%3CLI%3E%3CEM%3E3%2F18%2F2021%2011%3A56%3A29%20AM%209626%20AppxManifest.xml(23%2C7415)%3A%20PackagedServiceDEH%20successfully%20parsed%20manifest%20for%20package%20GoogleChrome_68.46.66.0_x64__74vyvr5aw93s6%20install%3C%2FEM%3E%3C%2FLI%3E%3CLI%3E%3CEM%3E3%2F18%2F2021%2011%3A56%3A29%20AM%209621%20AppxManifest.xml(23%2C9584)%3A%20error%200x80073D28%3A%20Cannot%20register%20the%20GoogleChrome_68.46.66.0_x64__74vyvr5aw93s6%20package.%20Administrator%20privileges%20required%20to%20install%20packaged%20service%3C%2FEM%3E%3C%2FLI%3E%3CLI%3E%3CEM%3E3%2F18%2F2021%2011%3A56%3A29%20AM%20303%20error%200x80073D28%3A%20While%20preparing%20to%20process%20the%20request%2C%20the%20system%20failed%20to%20register%20the%20windows.service%20extension%20due%20to%20the%20following%20error%3A%20The%20package%20installation%20failed%20because%20administrator%20privileges%20are%20required.%20Please%20contact%20an%20administrator%20to%20install%20this%20package.%3C%2FEM%3E%3C%2FLI%3E%3CLI%3E%3CEM%3E3%2F18%2F2021%2011%3A56%3A29%20AM%20300%20error%200x80073D28%3A%20Cannot%20register%20the%20GoogleChrome_74vyvr5aw93s6%20package%20due%20to%20the%20following%20error%3A%20The%20package%20installation%20failed%20because%20administrator%20privileges%20are%20required.%20Please%20contact%20an%20administrator%20to%20install%20this%20package.%3C%2FEM%3E%3C%2FLI%3E%3CLI%3E%3CEM%3E3%2F18%2F2021%2011%3A56%3A29%20AM%20605%20The%20last%20successful%20state%20reached%20was%20ResolvedDeferredRegistrations.%20Failure%20occurred%20before%20reaching%20the%20next%20state%20SingletonRegisterAdd.%20hr%3A%200x80073CF6%3C%2FEM%3E%3C%2FLI%3E%3CLI%3E%3CEM%3E3%2F18%2F2021%2011%3A56%3A29%20AM%2010001%20Finished%20servicing%20package%20GoogleChrome_68.46.66.0_x64__74vyvr5aw93s6.%20Setting%20the%20package%20state%20to%20enabled%20returned%20with%200x0.%3C%2FEM%3E%3C%2FLI%3E%3CLI%3E%3CEM%3E3%2F18%2F2021%2011%3A56%3A29%20AM%2010001%20Finished%20servicing%20package%20GoogleChrome_68.46.66.0_x64__74vyvr5aw93s6.%20Setting%20the%20package%20state%20to%20enabled%20returned%20with%200x0.%3C%2FEM%3E%3C%2FLI%3E%3CLI%3E%3CEM%3E3%2F18%2F2021%2011%3A56%3A29%20AM%20401%20Deployment%20Register%20operation%20with%20target%20volume%20C%3A%20on%20Package%20GoogleChrome_68.46.66.0_x64__74vyvr5aw93s6%20from%3A%20(AppxManifest.xml)%20failed%20with%20error%200x80073CF6.%20See%20%3CA%20href%3D%22http%3A%2F%2Fgo.microsoft.com%2Ffwlink%2F%3FLinkId%3D235160%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttp%3A%2F%2Fgo.microsoft.com%2Ffwlink%2F%3FLinkId%3D235160%3C%2FA%3E%20for%20help%20diagnosing%20app%20deployment%20issues.%3C%2FEM%3E%3C%2FLI%3E%3CLI%3E%3CEM%3E3%2F18%2F2021%2011%3A56%3A29%20AM%20404%20AppX%20Deployment%20operation%20failed%20for%20package%20GoogleChrome_68.46.66.0_x64__74vyvr5aw93s6%20with%20error%200x80073CF6.%20The%20specific%20error%20text%20for%20this%20failure%20is%3A%20AppxManifest.xml(23%2C9584)%3A%20error%200x80073D28%3A%20Cannot%20register%20the%20GoogleChrome_68.46.66.0_x64__74vyvr5aw93s6%20package.%20Administrator%20privileges%20required%20to%20install%20packaged%20service%3C%2FEM%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%3CSTRONG%3EHere%20is%20the%20command%2C%20i%20am%20trying%20to%20use%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CEM%3EAdd-AppxPackage%20-Path%20%24path%20-DisableDevelopmentMode%20-Register%3C%2FEM%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EEnvironment%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CEM%3E-%20WVD%20ARM%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3E-%20W10%202004%20Single%20Session%20and%20Multi%20Session%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3E-%20Recent%20Updates%20and%20Patches%3C%2FEM%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EAdded%20Recommendations%3C%2FSTRONG%3E%3C%2FP%3E%3CUL%3E%3CLI%3E%3CEM%3E%3CSPAN%3Ereg%20add%20HKLM%5CSoftware%5CPolicies%5CMicrosoft%5CWindowsStore%20%2Fv%20AutoDownload%20%2Ft%20REG_DWORD%20%2Fd%200%20%2Ff%20%3C%2FSPAN%3E%3C%2FEM%3E%3C%2FLI%3E%3CLI%3E%3CEM%3E%3CSPAN%3ESchtasks%20%2FChange%20%2FTn%20%22%5CMicrosoft%5CWindows%5CWindowsUpdate%5CScheduled%20Start%22%20%2FDisable%20%3C%2FSPAN%3E%3C%2FEM%3E%3C%2FLI%3E%3CLI%3E%3CEM%3E%3CSPAN%3Ereg%20add%20HKCU%5CSoftware%5CMicrosoft%5CWindows%5CCurrentVersion%5CContentDeliveryManager%20%2Fv%20PreInstalledAppsEnabled%20%2Ft%20REG_DWORD%20%2Fd%200%20%2Ff%20%3C%2FSPAN%3E%3C%2FEM%3E%3C%2FLI%3E%3CLI%3E%3CEM%3E%3CSPAN%3Ereg%20add%20HKLM%5CSOFTWARE%5CMicrosoft%5CWindows%5CCurrentVersion%5CContentDeliveryManager%5CDebug%20%2Fv%20ContentDeliveryAllowedOverride%20%2Ft%20REG_DWORD%20%2Fd%200x2%20%2Ff%3C%2FSPAN%3E%3C%2FEM%3E%3C%2FLI%3E%3CLI%3E%3CEM%3E%3CSPAN%3E%22Perform%20volume%20maintenance%20tasks%22%20set%20in%20GPO%3C%2FSPAN%3E%3C%2FEM%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CEM%3E%3CSPAN%3EAny%20ideas%20are%20highly%20appreciated!%3C%2FSPAN%3E%3C%2FEM%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2222538%22%20slang%3D%22en-US%22%3ERe%3A%20MSIX%20Register%20App%20-%20Administrative%20rights%20needed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2222538%22%20slang%3D%22en-US%22%3EYour%20use%20of%20the%20word%20%22staging%22%20makes%20me%20think%20that%20this%20is%20an%20MSIX%20App%20Attach%20Scenario.%20As%20Google%20Chrome%20normally%20includes%20a%20service%20to%20perform%20updates%2C%20this%20is%20likely%20the%20cause.%3CBR%20%2F%3E%3CBR%20%2F%3EUnder%20MSIX%2C%20such%20an%20updater%20is%20unable%20to%20update%20the%20contents%20within%20the%20package%20anyway%2C%20and%20I%20would%20normally%20want%20to%20disable%20the%20the%20service%20for%20App-V%20packaging.%20Although%20services%20work%20in%20MSIX%20outside%20of%20App%20Attach%2C%20they%20are%20currently%20an%20issue%20with%20App%20Attach%20due%20to%20the%20need%20for%20elevation.%3CBR%20%2F%3E%3CBR%20%2F%3EMy%20advice%20would%20be%20to%20remove%20the%20service%20for%20this%20particular%20app%20from%20the%20package%20when%20packaging%20under%20MSIX%20with%20or%20without%20App%20Attach.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2222888%22%20slang%3D%22en-US%22%3ERe%3A%20MSIX%20Register%20App%20-%20Administrative%20rights%20needed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2222888%22%20slang%3D%22en-US%22%3EHi%20Timothy%2C%3CBR%20%2F%3Ethank%20you%20for%20reading%20through%20my%20not%20to%20clearly%20described%20post!%3CBR%20%2F%3E%3CBR%20%2F%3EYou%20are%20very%20right.%20I%20am%20trying%20to%20use%20MSIX%20App%20Attach%20in%20my%20WVD%20environment.%20The%20VHDs%20i%20am%20trying%20to%20attach%20have%20been%20downloaded%20from%20MS.%20Scripts%20and%20procedure%20are%20according%20to%20this%20blogpost%3A%20%3CA%20href%3D%22https%3A%2F%2Fwvdlogix.net%2Fcontainerize-applications%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwvdlogix.net%2Fcontainerize-applications%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EI'll%20definitely%20look%20for%20any%20services%20in%20those%20packages.%20Very%20good%20point.%20Thank%20you!%20I'll%20post%20an%20update%20here.%3C%2FLINGO-BODY%3E
New Contributor

Hi everyone,

i am trying to register applications via PowerShell on a per user basis. Staging as admin works fine.

 

Registering per user fails with the following message:

  • Add-AppxPackage : Deployment failed with HRESULT: 0x80073CF6, Package could not be registered.
  • AppxManifest.xml(23,9584): error 0x80073D28: Cannot register the GoogleChrome_68.46.66.0_x64__74vyvr5aw93s6 package. Administrator privileges required to install packaged service
  • NOTE: For additional information, look for [ActivityId] a7377816-941e-0000-25f7-7609e61bd701 in the Event Log or use the command line Get-AppPackageLog -ActivityID a7377816-941e-0000-25f7-7609e61bd701

The log gives the following information:

  • 3/18/2021 11:56:29 AM 573 Setting Sync Enabled status, package family name GoogleChrome_74vyvr5aw93s6, enabled false.
  • 3/18/2021 11:56:29 AM 10000 About to service package GoogleChrome_68.46.66.0_x64__74vyvr5aw93s6. Setting the package state to disabled returned with 0x0.
  • 3/18/2021 11:56:29 AM 10000 About to service package GoogleChrome_68.46.66.0_x64__74vyvr5aw93s6. Setting the package state to disabled returned with 0x0.
  • 3/18/2021 11:56:29 AM 9626 AppxManifest.xml(23,9584): PackagedServiceDEH successfully parsed manifest for package GoogleChrome_68.46.66.0_x64__74vyvr5aw93s6 install
  • 3/18/2021 11:56:29 AM 9626 AppxManifest.xml(23,8619): PackagedServiceDEH successfully parsed manifest for package GoogleChrome_68.46.66.0_x64__74vyvr5aw93s6 install
  • 3/18/2021 11:56:29 AM 9626 AppxManifest.xml(23,7415): PackagedServiceDEH successfully parsed manifest for package GoogleChrome_68.46.66.0_x64__74vyvr5aw93s6 install
  • 3/18/2021 11:56:29 AM 9621 AppxManifest.xml(23,9584): error 0x80073D28: Cannot register the GoogleChrome_68.46.66.0_x64__74vyvr5aw93s6 package. Administrator privileges required to install packaged service
  • 3/18/2021 11:56:29 AM 303 error 0x80073D28: While preparing to process the request, the system failed to register the windows.service extension due to the following error: The package installation failed because administrator privileges are required. Please contact an administrator to install this package.
  • 3/18/2021 11:56:29 AM 300 error 0x80073D28: Cannot register the GoogleChrome_74vyvr5aw93s6 package due to the following error: The package installation failed because administrator privileges are required. Please contact an administrator to install this package.
  • 3/18/2021 11:56:29 AM 605 The last successful state reached was ResolvedDeferredRegistrations. Failure occurred before reaching the next state SingletonRegisterAdd. hr: 0x80073CF6
  • 3/18/2021 11:56:29 AM 10001 Finished servicing package GoogleChrome_68.46.66.0_x64__74vyvr5aw93s6. Setting the package state to enabled returned with 0x0.
  • 3/18/2021 11:56:29 AM 10001 Finished servicing package GoogleChrome_68.46.66.0_x64__74vyvr5aw93s6. Setting the package state to enabled returned with 0x0.
  • 3/18/2021 11:56:29 AM 401 Deployment Register operation with target volume C: on Package GoogleChrome_68.46.66.0_x64__74vyvr5aw93s6 from: (AppxManifest.xml) failed with error 0x80073CF6. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.
  • 3/18/2021 11:56:29 AM 404 AppX Deployment operation failed for package GoogleChrome_68.46.66.0_x64__74vyvr5aw93s6 with error 0x80073CF6. The specific error text for this failure is: AppxManifest.xml(23,9584): error 0x80073D28: Cannot register the GoogleChrome_68.46.66.0_x64__74vyvr5aw93s6 package. Administrator privileges required to install packaged service

Here is the command, i am trying to use:

Add-AppxPackage -Path $path -DisableDevelopmentMode -Register

 

Environment

- WVD ARM

- W10 2004 Single Session and Multi Session

- Recent Updates and Patches

 

Added Recommendations

  • reg add HKLM\Software\Policies\Microsoft\WindowsStore /v AutoDownload /t REG_DWORD /d 0 /f
  • Schtasks /Change /Tn "\Microsoft\Windows\WindowsUpdate\Scheduled Start" /Disable
  • reg add HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager /v PreInstalledAppsEnabled /t REG_DWORD /d 0 /f
  • reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\Debug /v ContentDeliveryAllowedOverride /t REG_DWORD /d 0x2 /f
  • "Perform volume maintenance tasks" set in GPO

 

Any ideas are highly appreciated!

 

4 Replies
best response confirmed by jansvensenDT (New Contributor)
Solution
Your use of the word "staging" makes me think that this is an MSIX App Attach Scenario. As Google Chrome normally includes a service to perform updates, this is likely the cause.

Under MSIX, such an updater is unable to update the contents within the package anyway, and I would normally want to disable the the service for App-V packaging. Although services work in MSIX outside of App Attach, they are currently an issue with App Attach due to the need for elevation.

My advice would be to remove the service for this particular app from the package when packaging under MSIX with or without App Attach.
Hi Timothy,
thank you for reading through my not to clearly described post!

You are very right. I am trying to use MSIX App Attach in my WVD environment. The VHDs i am trying to attach have been downloaded from MS. Scripts and procedure are according to this blogpost: https://wvdlogix.net/containerize-applications

I'll definitely look for any services in those packages. Very good point. Thank you! I'll post an update here.
Hi again,
Timothy, you were absolutely right. I created new packages without services and everything is working fine now.

Thanks heaps!
Great to hear your success!