Windows 8 and 8.1 Forums


sysprep problem and now I can't even log into windows now

  1. #1


    Posts : 54
    windows 8 pro 64bit

    sysprep problem, metro app can't be deleted



    Today I used sysprep.exe to rebuild my windows image. But it always said "a fatal error occurred while trying sysprep".

    Then I went to check log file , it shows that
    Code:
    2015-01-06 21:51:29, Error                 SYSPRP Package Microsoft.Internal.Media.PlayReadyClient_2.3.1678.1_x64__8wekyb3d8bbwe was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.
    I followed this instructions in this page Removing or Updating Windows 8 built-in Windows Store apps causes Sysprep to fail. The log file still shows the same thing. Of course during this period I had run multiple times of sysprep.exe.

    After execute Get-AppxPackage in powershell, i get things like this, there are plenty of apps installed by an unknown user
    Click image for larger version

    And i can't Remove any of them, seems that i can't delete an app which is not belong to the user i curretly log in, even i'm administrator. But i really don't know what the hell is this unknown user. How could i get sysprep.exe worked?Or how can i delete this unkown user?

    After that I run "Get-AppxPackage -AllUser" and list all apps, and found that all apps are installed by "Unknown user". And now I even need provide permission to access my d e f partitions. I think maybe user account went wrong , and I'm exhausted , so I just enable administrator and delete my account. And I ran sysprep.exe again and still no love. So I reboot, and I forget sysprep.exe will disable administrator and now I'm in a very embarrassing situation , I can't log into windows because I delete my account and administrator is disabled. Even I input the right email and password I still can't log into windows. And I'm in uefi mode I can't enter safe mode either. Can anybody help?
    Last edited by demonguy; 06 Jan 2015 at 09:10.

      My System SpecsSystem Spec

  2. #2


    Posts : 54
    windows 8 pro 64bit


    Now I successfully log into Administrator(By relace sethc.exe of cmd.exe, and hit shift 5 times in the log screen).
    But i still can't get sysprep working....
      My System SpecsSystem Spec

  3. #3


    Posts : 54
    windows 8 pro 64bit


    I figured it out by myself. I will add some key prompts to make others easy to search.

    The setupact.log file will show something like this:
    Code:
    Error                 SYSPRP Package Microsoft.Internal.Media.PlayReadyClient_2.3.1678.1_x64__8wekyb3d8bbwe was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.
    And When you want to delete windows 8 apps through PowerShell, It will says that apps are installed by an unknown user, which sid is S-1-5-21-XXXX. And when you execute "Remove-AppxPackage" in powershell, it will says
    Code:
    Because the current user does not have that package installed
    As far as i know, Remove-AppxPackage can only remove apps belong to the user which you log in. I don't know why there is an unknown user in my OS, but here is my solution.

    1.Delete all files in C:\Program Files\WindowsApps (You need to change ownership and permission of this folder by right click on it)
    2.Delete all files in C:\ProgramData\Microsoft\Windows\AppRepository (You need chage the ownership too).

    Note:These steps are not safe, do it on your own risk, You may only delete PackageRepository.edb in AppRepository folder to see if it works.

    Now when you "Get-AppxPackage -allusers", it will shows nothing. Now you can run sysprep.exe and it will work well (Remember to change HKLM\SYSTEM\Setup\Status\Sysprep\SysprepStatus to 7).
    Last edited by demonguy; 11 Jan 2015 at 23:14.
      My System SpecsSystem Spec

  4. #4


    Redmond
    Posts : 651
    Windows 8.1 x64


    Note you should really only be deleting PackageRepository.edb from the AppRepository folder. Also, this is usually caused by WU updating packages prior to sysprep (this is something it'll do if it can find a way to the internet), which is why images should be created on a network segment that ONLY has access to a WSUS server if you want to install updates. Otherwise, store apps will be updated along with the OS, which can (and sometimes does) break sysprep. This is probably why your "fix" (which is dangerous in it's own right) worked.

    Just FYI. That image you've created is broken, and you should be creating a new one.
      My System SpecsSystem Spec

  5. #5


    Posts : 54
    windows 8 pro 64bit


    I know it probably cause by updating apps from App Store, But what i want to do is just setup my hard disk to my new computer, not create a new windows image, so this is unavoidable.

    May i ask what does PackageRepository.edb do? And what does other files in that folder do? Is there an official document?
      My System SpecsSystem Spec

  6. #6


    Redmond
    Posts : 651
    Windows 8.1 x64


    Quote Originally Posted by demonguy View Post
    May i ask what does PackageRepository.edb do? And what does other files in that folder do? Is there an official document?
    Not likely, no. It's an ESE/JET database, you'll notice the .chk and .log files in there too. If you know how a JET database works (Exchange and AD) are documented somewhat), you will at least get an idea of what .edb, .chk. and .log files are and how they work together.
      My System SpecsSystem Spec

  7. #7


    Posts : 54
    windows 8 pro 64bit


    OK, Thanks for your hint
      My System SpecsSystem Spec

sysprep problem and now I can't even log into windows now
Related Threads
sysprep in Windows 8.1 in Installation & Setup
Background; I've been running sysprep on Windows 7 machines for some time. My custom unattend file created for Windows 7 worked with Windows 8 and I never had a problem sysprepping it. Enter Windows 8.1; When the "old" unattend file didn't work, I gave it little thought and downloaded the...
I've create 2 partitions, 1st partition is Win7 SysPrep and the 2nd partition is Win8.1 Sysprep I install Win7 and press Ctrl-Shift-F3 to form SysPrep, same as Win8.1 in 2nd partition. I made this becuase I've 25 Dell new Win8.1 Computer which are UEFI. So I want to make a master computer which...
sysprep on windows 8.1 in Installation & Setup
hi all! I have upgraded /updated (whatever it is!) from windows 8 pro wmc to windows 8.1 pro wmc using store free update. I though I will sysprep and keep an image; in order to remove the current user profile I went into audit mode and from control panel --> user accounts successfully deleted...
So it seems Sysprep no longer works when you upgrade to 8.1 So you can't move the program files or users folders in accordance with the tutorial. So has anyone here figured out how to do it yet? or know of a tutorial that does work? thanks!
I purchased a Asus AIO and notebook. I followed the method "How to Relocate User Profiles to another Partition or Disk in Windows 8". Relocation was successfully implemented in my Asus Notebook. But when the same procedure is adopted, after completion of the step 1, boot to audit mode, I am...
Source: Removal of Windows 8 built-in provisioned Appx package causes Sysprep to fail
Eight Forums Android App Eight Forums IOS App Follow us on Facebook