none
SYSPRP Package <PackageName> installed for a user, but not provisioned for all users

    Question

  • Hi,

    I have a fresh install of Windows 10 Pro on a new VM which im using as a reference machine for imaging. After my installs and customizations, i tried SysPreping the machine using the OOBE and Generalize option, but im getting the following error:

    2017-03-16 15:30:03, Error                 SYSPRP Package Facebook.Facebook_81.789.17803.0_x86__8xx8rvfyw5nnt was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.
    2017-03-16 15:30:03, Error                 SYSPRP Failed to remove apps for the current user: 0x80073cf2.
    2017-03-16 15:30:03, Error                 SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.
    2017-03-16 15:30:03, Error      [0x0f0082] SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2
    2017-03-16 15:30:03, Error                 SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2
    2017-03-16 15:30:03, Error                 SYSPRP RunPlatformActions:Failed while validating SysprepSession actions; dwRet = 0x3cf2
    2017-03-16 15:30:03, Error      [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2
    2017-03-16 15:30:03, Error      [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2

    I followed KB Article 2769827. The article suggests locating the offending app, and remove it. In my case - as you can see from the above error - its complaining about "Facebook.Facebook_81.789.17803.0_x86__8xx8rvfyw5nnt". The only problem is, i dont have this app. If i try to remove it, it says "Package was not found" (see screenshot below). What else might be wrong?

     



    • Edited by JoeOs Thursday, March 16, 2017 8:00 PM
    Thursday, March 16, 2017 7:59 PM

All replies

  • Hi Joe,

    Please confirm if your package full name is correct.

    As the KB Article 2769827, run the following command to get the exact package name

    Get-AppxPackage -AllUser | Format-List -Property PackageFullName,PackageUserInformation.

    After that, run one of the following command to remove the package or provision package.

    Run Remove-AppxPackage -Package <packagefullname>

    Remove the provisioning by running the following cmdlet:

    Remove-AppxProvisionedPackage -Online -PackageName <packagefullname>


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Friday, March 17, 2017 2:09 AM
    Moderator
  • Hi Karen,

    My apologies, but i forgot to mention. I ran the Get-AppxPackage command, but i did not see anything "Facebook". I only saw a list of Microsoft applications.

    I ended up creating a new source VM which SysPrep'd w/o a problem. I dont know what the issue was. I had originally thought that I had caused it by removing the user under which i installed all apps (as well as the default0 user), and ran Sysprep using the Built-In Administrator. However, i duplicated this scenario on the new VM and i did not get any errors during the Sysprep process. 

    • Proposed as answer by pinni3 Tuesday, October 10, 2017 7:14 PM
    • Unproposed as answer by pinni3 Tuesday, October 10, 2017 7:14 PM
    Friday, March 17, 2017 6:58 PM
  • If the VM has internet access, an application may have installed in the background. Why it doesn't show up with Get-AppxPackage is a puzzling.

    Is the main account tied to any Microsoft Live accounts that the application could have been drawn in from?


    Sean Liming - Book Author: Starter Guide Windows 10 IoT Enterprise - www.annabooks.com / www.seanliming.com

    Friday, March 17, 2017 8:20 PM
  • Hello,

    the same problem with facebook app. Any solution?

    • Proposed as answer by cadeijon Thursday, October 26, 2017 4:36 PM
    Thursday, May 18, 2017 12:44 PM
  • Hi

    Open the PowerShell Command with Admin Rights. Excecute the follow command:

    Get-AppxPackage|Remove-AppxPackage

    At this point the system remove the Apps that cause the Problem. You receive also many Issuereports, but this in't a problem. After that you can capture whitout prolem yout Image.

    Happy SCCM

    • Proposed as answer by Ryan Stein Thursday, July 20, 2017 1:21 PM
    Monday, May 22, 2017 12:57 PM
  • Hi

    Open the PowerShell Command with Admin Rights. Excecute the follow command:

    Get-AppxPackage|Remove-AppxPackage

    At this point the system remove the Apps that cause the Problem. You receive also many Issuereports, but this in't a problem. After that you can capture whitout prolem yout Image.

    Happy SCCM

    This has been plaguing me ever since I started using MDT to deploy Windows 10 about a year ago.  Thank you!  This worked for me.  I had to run the command by logging into each user that I had set up prior to image capture.  After running the command I was able to sysprep and capture.  All that research I did and nothing I found mentioned such a simple command.

    Thursday, July 20, 2017 1:25 PM
  • This was extremely helpful. Thank you so much - 
    Monday, May 7, 2018 3:30 PM
  • Did you also get a lot of error codes while running this command?
    Wednesday, May 23, 2018 9:23 AM
  • Yes.  I got lots of error messages, but it worked regardless.   I'd been demoralized by this problem for more than a year now.  Running this Powershell command from each of the locally staged users (as an admin) fixed the issue completely for me.  THANK YOU.
    Saturday, August 11, 2018 12:04 AM
  • Hi all

    i tried this but it still says:

    SYSPRP Package Microsoft.BingWeather_4.24.11294.0_x64__8wekyb3d8bbwe was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.

    SYSPRP Failed to remove apps for the current user: 0x80073cf2.

    but when i want to remove it with this:

    Remove-AppxPackage -Package Microsoft.BingWeather_4.24.11294.0_x64__8wekyb3d8bbwe

    and

    Remove-AppxProvisionedPackage -Online -PackageName Microsoft.BingWeather_4.24.11294.0_x64__8wekyb3d8bbwe

    it cant find it.. like it does not exist.. but the error message does ^^

    is there any other solution?

    thx in advance

    Daniel

    Wednesday, November 28, 2018 12:25 AM
  • This might be silly but did you reset your computer after you ran the original removal command? Also post the error. I think I ran into something where it said it was not found OR it could not be removed and in that case had to use a different method to remove it so it's good to have the entire error message. 



    • Edited by Kiodos Wednesday, November 28, 2018 6:19 PM
    Wednesday, November 28, 2018 6:17 PM
  • hi thx for replying

    yes i reset the virtual machine numerous times.

    the first error while i try to sysprep ist this:

    2018-11-29 10:57:17, Info                  SYSPRP ========================================================
    2018-11-29 10:57:17, Info                  SYSPRP ===          Beginning of a new sysprep run          ===
    2018-11-29 10:57:17, Info                  SYSPRP ========================================================
    2018-11-29 10:57:17, Info       [0x0f004d] SYSPRP The time is now 2018-11-29 10:57:17
    2018-11-29 10:57:17, Info       [0x0f004e] SYSPRP Initialized SysPrep log at C:\Windows\System32\Sysprep\Panther
    2018-11-29 10:57:17, Info       [0x0f0054] SYSPRP ValidatePrivileges:User has required privileges to sysprep machine
    2018-11-29 10:57:17, Info       [0x0f007e] SYSPRP FCreateTagFile:Tag file C:\Windows\System32\Sysprep\Sysprep_succeeded.tag does not already exist, no need to delete anything
    2018-11-29 10:57:17, Info       [0x0f003d] SYSPRP WinMain:Displaying dialog box for user to choose sysprep mode...
    2018-11-29 10:57:21, Info       [0x0f00d7] SYSPRP WinMain:Pre-validing 'cleanup' internal providers.
    2018-11-29 10:57:21, Info                  SYSPRP RunExternalDlls:Running platform actions specified in action file for phase 3
    2018-11-29 10:57:21, Info                  SYSPRP SysprepSession::CreateSession: Successfully created instance with action file C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml, and mode <null>
    2018-11-29 10:57:21, Info                  SYSPRP SysprepSession::Validate: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml
    2018-11-29 10:57:21, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null>
    2018-11-29 10:57:21, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64
    2018-11-29 10:57:21, Info                  SYSPRP ActionPlatform::LaunchModule: Executing method 'Sysprep_Clean_Validate_Opk' from C:\Windows\System32\spopk.dll
    2018-11-29 10:57:21, Info                  SYSPRP ActionPlatform::LaunchModule: Successfully executed 'Sysprep_Clean_Validate_Opk' from C:\Windows\System32\spopk.dll without error
    2018-11-29 10:57:21, Info       [0x0f00d7] SYSPRP WinMain:Pre-validing 'generalize' internal providers.
    2018-11-29 10:57:21, Info                  SYSPRP RunExternalDlls:Running platform actions specified in action file for phase 1
    2018-11-29 10:57:21, Info                  SYSPRP SysprepSession::CreateSession: Successfully created instance with action file C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml, and mode <null>
    2018-11-29 10:57:21, Info                  SYSPRP SysprepSession::Validate: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml
    2018-11-29 10:57:21, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null>
    2018-11-29 10:57:21, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64
    2018-11-29 10:57:21, Info                  SYSPRP ActionPlatform::LaunchModule: Executing method 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll
    2018-11-29 10:57:21, Info                  SYSPRP Entering SysprepGeneralizeValidate (Appx) - validating whether all apps are also provisioned.
    
    2018-11-29 10:57:21, Error                 SYSPRP Package Microsoft.BingWeather_4.24.11294.0_x64__8wekyb3d8bbwe was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.
    
    2018-11-29 10:57:21, Error                 SYSPRP Failed to remove apps for the current user: 0x80073cf2.
    
    2018-11-29 10:57:21, Error                 SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.
    
    2018-11-29 10:57:21, Error                 SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2
    2018-11-29 10:57:21, Error                 SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2
    2018-11-29 10:57:21, Error                 SYSPRP RunPlatformActions:Failed while validating Sysprep session actions; dwRet = 0x3cf2
    2018-11-29 10:57:21, Error      [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2
    2018-11-29 10:57:21, Error      [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2
    2018-11-29 10:57:25, Info       [0x0f0052] SYSPRP Shutting down SysPrep log
    2018-11-29 10:57:25, Info       [0x0f004d] SYSPRP The time is now 2018-11-29 10:57:25
    2018-11-29 10:57:40, Info                  SYSPRP ========================================================
    2018-11-29 10:57:40, Info                  SYSPRP ===          Beginning of a new sysprep run          ===
    2018-11-29 10:57:40, Info                  SYSPRP ========================================================
    2018-11-29 10:57:40, Info       [0x0f004d] SYSPRP The time is now 2018-11-29 10:57:40
    2018-11-29 10:57:40, Info       [0x0f004e] SYSPRP Initialized SysPrep log at C:\Windows\System32\Sysprep\Panther
    2018-11-29 10:57:40, Info       [0x0f0054] SYSPRP ValidatePrivileges:User has required privileges to sysprep machine
    2018-11-29 10:57:40, Info       [0x0f007e] SYSPRP FCreateTagFile:Tag file C:\Windows\System32\Sysprep\Sysprep_succeeded.tag does not already exist, no need to delete anything
    2018-11-29 10:57:40, Info       [0x0f003d] SYSPRP WinMain:Displaying dialog box for user to choose sysprep mode...
    2018-11-29 10:57:43, Info       [0x0f00d7] SYSPRP WinMain:Pre-validing 'cleanup' internal providers.
    2018-11-29 10:57:43, Info                  SYSPRP RunExternalDlls:Running platform actions specified in action file for phase 3
    2018-11-29 10:57:43, Info                  SYSPRP SysprepSession::CreateSession: Successfully created instance with action file C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml, and mode <null>
    2018-11-29 10:57:43, Info                  SYSPRP SysprepSession::Validate: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml
    2018-11-29 10:57:43, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null>
    2018-11-29 10:57:43, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64
    2018-11-29 10:57:43, Info                  SYSPRP ActionPlatform::LaunchModule: Executing method 'Sysprep_Clean_Validate_Opk' from C:\Windows\System32\spopk.dll
    2018-11-29 10:57:43, Info                  SYSPRP ActionPlatform::LaunchModule: Successfully executed 'Sysprep_Clean_Validate_Opk' from C:\Windows\System32\spopk.dll without error
    2018-11-29 10:57:43, Info       [0x0f00d7] SYSPRP WinMain:Pre-validing 'generalize' internal providers.
    2018-11-29 10:57:43, Info                  SYSPRP RunExternalDlls:Running platform actions specified in action file for phase 1
    2018-11-29 10:57:43, Info                  SYSPRP SysprepSession::CreateSession: Successfully created instance with action file C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml, and mode <null>
    2018-11-29 10:57:43, Info                  SYSPRP SysprepSession::Validate: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml
    2018-11-29 10:57:43, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null>
    2018-11-29 10:57:43, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64
    2018-11-29 10:57:43, Info                  SYSPRP ActionPlatform::LaunchModule: Executing method 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll
    2018-11-29 10:57:43, Info                  SYSPRP Entering SysprepGeneralizeValidate (Appx) - validating whether all apps are also provisioned.
    
    2018-11-29 10:57:43, Error                 SYSPRP Package Microsoft.BingWeather_4.24.11294.0_x64__8wekyb3d8bbwe was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.
    
    2018-11-29 10:57:43, Error                 SYSPRP Failed to remove apps for the current user: 0x80073cf2.
    
    2018-11-29 10:57:43, Error                 SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.
    
    2018-11-29 10:57:43, Error                 SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2
    2018-11-29 10:57:43, Error                 SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2
    2018-11-29 10:57:43, Error                 SYSPRP RunPlatformActions:Failed while validating Sysprep session actions; dwRet = 0x3cf2
    2018-11-29 10:57:43, Error      [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2
    2018-11-29 10:57:43, Error      [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2
    2018-11-29 10:57:47, Info       [0x0f0052] SYSPRP Shutting down SysPrep log
    2018-11-29 10:57:47, Info       [0x0f004d] SYSPRP The time is now 2018-11-29 10:57:47
    

    then i try to remove the mentioned "Microsoft.BingWeather_4.24.11294.0_x64__8wekyb3d8bbwe":

    Remove-AppxPackage -Package Microsoft.BingWeather_4.24.11294.0_x64__8wekyb3d8bbwe

    and get the following error: (translation: Packet can not be found)

    Remove-AppxPackage : Fehler bei Bereitstellung. HRESULT: 0x80073CF1, Das Paket wurde nicht gefunden.
    Microsoft.BingWeather_4.24.11294.0_x64__8wekyb3d8bbwe kann nicht entfernt werden, da der aktuelle Benutzer dieses
    Paket nicht installiert hat. Verwenden Sie Get-AppxPackage, um die Liste der installierten Pakete anzuzeigen.
    HINWEIS: Wenn Sie weitere Informationen wünschen, suchen Sie im Ereignisprotokoll nach "[ActivityId]
    cff91f17-87c9-0001-a627-f9cfc987d401", oder verwenden Sie die Befehlszeile "Get-AppxLog -ActivityID
    cff91f17-87c9-0001-a627-f9cfc987d401".
    In Zeile:1 Zeichen:1
    + Remove-AppxPackage -Package Microsoft.BingWeather_4.24.11294.0_x64__8 ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (Microsoft.BingW...__8wekyb3d8bbwe:String) [Remove-AppxPackage], PSInval
       idOperationException
        + FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.RemoveAppxPackageCommand


    then i do this: Get-AppxLog -ActivityID cff91f17-87c9-0001-a627-f9cfc987d401 and get this: (basically saying the packet can not be removed because id does not exist)

    Time                      ID           Message
    ----                      --           -------
    29.11.2018 11:03:48       603          Der Bereitstellungsvorgang Remove wurde für ein Paket mit dem Hauptparameter Microsoft.BingWeather_4.24.11294.0_x64__8wekyb3d8bbwe und den Optionen 0
                                           und 0 gestartet. Weitere Informationen zum Diagnostizieren von Problemen bei der Bereitstellung von Apps finden Sie unter
                                           http://go.microsoft.com/fwlink/?LinkId=235160.
    29.11.2018 11:03:48       10002        Die Resilienzdatei
                                           "C:\ProgramData\Microsoft\Windows\AppRepository\2f892ff2-c0bf-4a5c-b80b-9e8919a58234_S-1-5-21-241893589-1895811160-4262146313-1008_1.rslc" wird für den
                                           Vorgang "Remove" im Paket "Microsoft.BingWeather_4.24.11294.0_x64__8wekyb3d8bbwe" erstellt.
    29.11.2018 11:03:48       607          Der Bereitstellungsvorgang Remove für das Paket Microsoft.BingWeather_4.24.11294.0_x64__8wekyb3d8bbwe wurde aus der Warteschlange entfernt und wird für
                                           die Benutzer-SID S-1-5-21-241893589-1895811160-4262146313-1008 ausgeführt.
    29.11.2018 11:03:48       702          Microsoft.BingWeather_4.24.11294.0_x64__8wekyb3d8bbwe kann nicht entfernt werden, da der aktuelle Benutzer dieses Paket nicht installiert hat.
                                           Verwenden Sie Get-AppxPackage, um die Liste der installierten Pakete anzuzeigen.
    29.11.2018 11:03:48       605          Der letzte erfolgreiche Status war BundleProcessed. Vor dem Erreichen des Folgestatus (Indexed) ist ein Fehler aufgetreten. Std.: 0x80073CF1
    29.11.2018 11:03:49       401          Der Bereitstellungsvorgang "Remove" mit Zielvolume "C:" für das Paket "Microsoft.BingWeather_4.24.11294.0_x64__8wekyb3d8bbwe" von " " ist mit dem
                                           Fehler 0x80073CF1 fehlgeschlagen. Weitere Informationen zum Diagnostizieren von Problemen bei der Bereitstellung von Apps finden Sie unter
                                           "http://go.microsoft.com/fwlink/?LinkId=235160".
    29.11.2018 11:03:49       404          Fehler "0x80073CF1" beim AppX Deployment-Vorgang für Paket "Microsoft.BingWeather_4.24.11294.0_x64__8wekyb3d8bbwe". Der Fehlertext lautet:
                                           Microsoft.BingWeather_4.24.11294.0_x64__8wekyb3d8bbwe kann nicht entfernt werden, da der aktuelle Benutzer dieses Paket nicht installiert hat.
                                           Verwenden Sie Get-AppxPackage, um die Liste der installierten Pakete anzuzeigen.

    this command did not help either: Get-AppxPackage|Remove-AppxPackage

    same errors

    till now i always set up a new vm and installed win10 completely new and or go back to a previous version of the vm, but that does not work everytime.

    thx in advance!

    Daniel

    Thursday, November 29, 2018 10:13 AM
  • I can't read the second two logs as they are not in English but from what I keep seeing everyone is saying you can avoid this issue by running sysprep with no internet access on the VM. I would give that a try unless you are doing something like trying to capture the image to a SCCM server through a Task Sequence or something. It's kind of crazy that the help forums are flooded with this issue and MS gave one fix that works about 60% of the time and just left all others out to dry here. Let me know if trying to sysprep with no internet access works.

    • Edited by Kiodos Friday, November 30, 2018 6:35 PM
    Friday, November 30, 2018 6:34 PM
  • hi

    yes i read that some time ago and had the network adapter disabled, but it did not help.

    we have now created a snapshot to which we can always return when the problem occurs again.

    a fixit from MS would be great ;)

    thx anyway

    Saturday, December 1, 2018 1:17 AM
  • hi all

    little update:

    if you disable the network adapter FROM THE BEGINNING and install windows updates wie WSUSOffline, no Metro Apps are being loaded in the background and Sysprep works ..most of the time.
    had one "serious error blabla" but no more metro app provisioning errors ..so far

    greetings

    Daniel

    Sunday, December 2, 2018 9:59 PM