Sysprep: unable to validate current Windows installation.


Ok then it is better to delete all apps, but will this also delete Windows Store?
 

My Computer

System One

  • OS
    W11
    Computer type
    PC/Desktop
    CPU
    CPU AMD Ryzen 9 7950X
    Motherboard
    ASUS ROG Strix X670E-F Gaming WiFi
    Memory
    G.Skill Flare X5 32GB Kit DDR5-6000 CL32 (F5-6000J3238F16GX2-FX5)
    Monitor(s) Displays
    LG E2381VR
    Screen Resolution
    1920x1080
    Hard Drives
    1x Samsung Memorie MZ-V8P1T0B 980 PRO SSD 1TB
    2x Western Digital WD Red Nas 4TB
    PSU
    SEASONIC FOCUS PX-850 Plus Platinum
    Case
    Corsair 4000D Airflow
    Cooling
    ARCTIC Liquid Freezer II 280 A-RGB
    Keyboard
    Logitech G510
    Mouse
    Logitech G502 HERO
    Browser
    Firefox
    Antivirus
    Avg free
    Other Info
    Download: 90 Mbps
    Upload: 20Mbps
No, it deletes the user profile registration of apps.

Appx packages are provisioned (integrated) in an image. "DISM /Add-ProvisionedAppxPackage" or PS "Add-AppxProvisionedPackage"

When an user account is created, existing packages are registered to their profile, by Windows first-time logon. PS "Add-AppxPackage"
When you corrupt your profile, you run PS "Add-AppxPackage -DisableDevelopmentMode -Register"

Provisioning is the not same thing as package registration.

sysprep is not allowed to clear out newer packages registered since the start of your sysprep session. I'm sure it could be done, but that's how MS implemented it and wants everyone to follow the same instructions.
 

My Computer

System One

  • OS
    Windows 7
  • Like
Reactions: DMD
Thank you very much for the explanation.
 

My Computer

System One

  • OS
    W11
    Computer type
    PC/Desktop
    CPU
    CPU AMD Ryzen 9 7950X
    Motherboard
    ASUS ROG Strix X670E-F Gaming WiFi
    Memory
    G.Skill Flare X5 32GB Kit DDR5-6000 CL32 (F5-6000J3238F16GX2-FX5)
    Monitor(s) Displays
    LG E2381VR
    Screen Resolution
    1920x1080
    Hard Drives
    1x Samsung Memorie MZ-V8P1T0B 980 PRO SSD 1TB
    2x Western Digital WD Red Nas 4TB
    PSU
    SEASONIC FOCUS PX-850 Plus Platinum
    Case
    Corsair 4000D Airflow
    Cooling
    ARCTIC Liquid Freezer II 280 A-RGB
    Keyboard
    Logitech G510
    Mouse
    Logitech G502 HERO
    Browser
    Firefox
    Antivirus
    Avg free
    Other Info
    Download: 90 Mbps
    Upload: 20Mbps
Disconnecting the link is the best solution, however I tried the command in Powershell and it returns the message:
Remove-AppxPackage: Request not supported
(sorry for the Italian localized version of the OS)..

Screenshot-1097.png
 

My Computer

System One

  • OS
    W11
    Computer type
    PC/Desktop
    CPU
    CPU AMD Ryzen 9 7950X
    Motherboard
    ASUS ROG Strix X670E-F Gaming WiFi
    Memory
    G.Skill Flare X5 32GB Kit DDR5-6000 CL32 (F5-6000J3238F16GX2-FX5)
    Monitor(s) Displays
    LG E2381VR
    Screen Resolution
    1920x1080
    Hard Drives
    1x Samsung Memorie MZ-V8P1T0B 980 PRO SSD 1TB
    2x Western Digital WD Red Nas 4TB
    PSU
    SEASONIC FOCUS PX-850 Plus Platinum
    Case
    Corsair 4000D Airflow
    Cooling
    ARCTIC Liquid Freezer II 280 A-RGB
    Keyboard
    Logitech G510
    Mouse
    Logitech G502 HERO
    Browser
    Firefox
    Antivirus
    Avg free
    Other Info
    Download: 90 Mbps
    Upload: 20Mbps
FilePicker is a built-in Windows feature (it's a library package). Non-removable packages always throw a warning which you can ignore.
 

My Computer

System One

  • OS
    Windows 7
  • Like
Reactions: DMD
Hello everyone,
To run sysprep in windows os 10 or 11 , check for windows update and if you get message You're up to date then navigate to C:\windows\system32\sysprep and then right click sysprep application file to run as administraror
Then check Generalize in OOBE and select shutdown in System Prepartation Tool 3.14 box .
If errors like app removal error, fatal error or unable to validate current windows installation occurs , then I resolved these errors by following steps:-
(A) See the error regarding with app removal in c:\windows\system32\sysprep\panther\setuperr text file and type commands similar to following examples:-
{Error to remove application followed by application name is to be noted.}
Commands are shown as an example if errors are occured while removing these applications.
Get-AppxPackage -allusers AdobeNotificationClient_3.0.1.1_x86__enpm4xejd91yc | Remove-AppxPackage
Get-AppxPackage -allusers AdobeNotificationClient | Remove-AppxPackage -AllUsers

Get-AppxPackage -allusers "Microsoft.BIngSunshine" | Remove-AppxPackage -AllUsers

Get-AppxPackage -allusers "312588en48.BasicPhotoviewer_3.7.2.0._x64_2c5bccghv4cc2 | Remove-AppxPackage
Get-AppxPackage -allusers "312588en48.BasicPhotoviewer | Remove-AppxPackage -AllUsers

Your computer may show different error messages regarding with applications installed in your pc.

(B) Following changes in registry make sysprep to run without errors.
Run Regedit as administrator , then navigate to the paths :-
1. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform
Right click SkipRearm , click modify, and change value data to 1.
2. HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus
Right click GeneralizationState >modify, change value data 7. In the same pane, if CleanupState key is not present then
right click New> DWORD(32-bit) Value >CleanupState right click modify change value data to 2.

(C) Run cmd as administrator
c:\windows\system32 > msdtc -uninstall
c:\windows\system32 >msdtc -install
(D). Then run powershell as administrator and type:-
PS C:\windows\system32>Get-AppxPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}
Please note colours of the words shown may appear different but highlighted with colour in powershell.(In my pc in powershell , it appeared yellow and symbol $ inside bracket of green colour.)
After shutdown, boot from bootable usb of windows 11.
Select > repair >troubleshoot>command prompt
x:\sources>c:
c:>dir
if windows is located on C: then run following command to capture install.wim of current windows.
c:\>dism /capture-image /imagefile:X:\install.wim /capturedir:C:\ /name:win_11
(change letters according to your windows installation directory , and destination location to save install.wim )
Place this captured install.wim in bootable usb prepared by media creation tool which has install.esd . You get up to date custom bootable usb of windows 11. ( When booted install.wim runs first ,not install.esd)
Now when you boot normally from hard disk/ssd wherefrom we have run sysprep, you have to set some windows installtion settings as if new installation goes on.
Have an error free up to date install.wim (captured) of current windows 11 operating system. To add, when installed on any other partition, the data inside C: drive/partition is also copied to the destination drive/partition as it is capured by dism /capture-image command.
Thanks for reading.
 
Last edited:

My Computer

System One

  • OS
    Window 11 v24H2 Build 26100.2033
    Computer type
    PC/Desktop
    Manufacturer/Model
    ASSEMMBLED
    CPU
    Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz 3.10 GHz
    Motherboard
    ZEBRONICS
    Memory
    4.00 GB (3.89 GB usable)
    Graphics Card(s)
    Onboard
    Sound Card
    Onboard
    Monitor(s) Displays
    LG
    Screen Resolution
    1366x768
    Hard Drives
    Toshiba HDD 1 TB
    Keyboard
    Mechanical
    Mouse
    Mechanical
    Internet Speed
    700 kb/s
    Browser
    Microsoft EDGE, CHROME
    Antivirus
    Microsoft Defender
Hello and Welcome everyone here,
(A). While doing Sysprep and capturing install.wim in Windows 11 v 24H2 build 26000.1742, if error is displayed then look into setupact.log or setuperr text file as mentioned by pop up message.

1. In my case, after runnig Windows Update to keep windows up to date, I used Reset This PC option removing everything. Then run sysprep.exe as an administrator.(Turn internet off while running sysprep.) An error occured and was displayed in setupact.log regarding with spotify removal. I run following commands from windows powershell(as administrator) Turn internet on while running following commands

Get-AppxPackage -allusers SpotifyAB.SpotifyMusic_1.245.454.0_x64__zpdnekdrzrea0 | Remove-AppxPackage
Get-AppxPackage -allusers "SpotifyAB.SpotifyMusic" | Remove-AppxPackage -AllUsers

Please see the image attached herewith. I regret for poor picture quality.

2. While doing Sysprep and capturing install.wim in Windows 11 v 24H2 build 26000.1742 , in case of bitlocker on , if sysprep shows error"unable to turn bitlocker off in drive " in c:\windows\system32\sysprep\panther\setuperr text file or setupact.log , then we have to run command from windows powershell as administrator:-

PS C:\windows\system32\Disable-Bitlocker -MountPoint 'C:'

Repeat this command until Encryption percentage becomes 0 and get message as "Bitlocker Drive Encryption is not enabled on this drive."
Please see images attached herewith.

(B) I have run following commands to capture the image of running windows 11 v24H2 build 26100.1742 from bootable usb.

x:\sources>dism /capture-image /imagefile:X:\install.wim /capturedir:Y:\ /name:"Recovery" /description:"My Custom Recovery Image" /compress:maximum
(X: is location of install.wim to be captured, and Y: is operating system windows directory.)

x:\sources>dism /capture-image /imagefile:X:\install.wim /capturedir:Y:\ /name:"Win11v24H2" /description:"OS BUILD 261001742" /compress:maximum
(X: is location of install.wim to be captured, and Y: is operating system windows directory.)
name in quotation mark appears in Operating System and description appears below Windows Setup box according to your typed words.

Please see images attached herewith.

(C) Place this install.wim file in sources folder of NTFS PARTITION of bootable usb.
Mount iso of Windows 11 v24H2 downloaded from uupdump.net and copy all files to NTFS partition and excluding soures folder copy all files to FAT32 folder. Manually create sources folder and cut boot.wim from sources folder of NTFS partition to paste into sources folder of FAT32 partition. Also extract bypass.zip to NTFS partition and then right click auto.cmd to run as administratior.
{This patched bootable usb is ready to bypass hardware requirements to install windows 11 v24H2.}
Then replace install.wim in sources folder of NTFS partition by captured install.wim which is much bigger than original install.wim
If bootable usb is created by media creation tool from Microsoft official website then no need to replace install.esd in sources folder.
install.wim takes first place to work .
You need to convert FAT32 partition to NTFS partition by third party tools like minitool wizard, easeus partition master, etc.
Then installation starts as normal when bootable usb prepared in this way is selected to boot first from BIOS.
Thanks for sharing your valuable time.
 

Attachments

  • IMG_20240915_175135[1].jpg
    IMG_20240915_175135[1].jpg
    499.5 KB · Views: 1
  • bypass11.zip
    bypass11.zip
    30.9 KB · Views: 0
  • Screenshot_2024-09-16-14-29-42-916[1].jpeg
    Screenshot_2024-09-16-14-29-42-916[1].jpeg
    57.9 KB · Views: 1
  • Screenshot_2024-09-16-14-24-23-776[1].jpeg
    Screenshot_2024-09-16-14-24-23-776[1].jpeg
    43.9 KB · Views: 1
  • IMG_20240916_144119_691_(2)[1].jpg
    IMG_20240916_144119_691_(2)[1].jpg
    550.2 KB · Views: 1
  • IMG_20240916_144118_673_(2)[1].jpg
    IMG_20240916_144118_673_(2)[1].jpg
    630.9 KB · Views: 1
  • IMG_20240915_200114[1].jpg
    IMG_20240915_200114[1].jpg
    527.8 KB · Views: 1
  • IMG_20240915_224334[1].jpg
    IMG_20240915_224334[1].jpg
    685.7 KB · Views: 1
  • IMG_20240915_224143[1].jpg
    IMG_20240915_224143[1].jpg
    659 KB · Views: 1
Last edited:

My Computer

System One

  • OS
    Window 11 v24H2 Build 26100.2033
    Computer type
    PC/Desktop
    Manufacturer/Model
    ASSEMMBLED
    CPU
    Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz 3.10 GHz
    Motherboard
    ZEBRONICS
    Memory
    4.00 GB (3.89 GB usable)
    Graphics Card(s)
    Onboard
    Sound Card
    Onboard
    Monitor(s) Displays
    LG
    Screen Resolution
    1366x768
    Hard Drives
    Toshiba HDD 1 TB
    Keyboard
    Mechanical
    Mouse
    Mechanical
    Internet Speed
    700 kb/s
    Browser
    Microsoft EDGE, CHROME
    Antivirus
    Microsoft Defender
IMG_20240916_144119_691 (2).jpg
 

My Computer

System One

  • OS
    Window 11 v24H2 Build 26100.2033
    Computer type
    PC/Desktop
    Manufacturer/Model
    ASSEMMBLED
    CPU
    Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz 3.10 GHz
    Motherboard
    ZEBRONICS
    Memory
    4.00 GB (3.89 GB usable)
    Graphics Card(s)
    Onboard
    Sound Card
    Onboard
    Monitor(s) Displays
    LG
    Screen Resolution
    1366x768
    Hard Drives
    Toshiba HDD 1 TB
    Keyboard
    Mechanical
    Mouse
    Mechanical
    Internet Speed
    700 kb/s
    Browser
    Microsoft EDGE, CHROME
    Antivirus
    Microsoft Defender
IMG_20240916_090944.jpg
 

My Computer

System One

  • OS
    Window 11 v24H2 Build 26100.2033
    Computer type
    PC/Desktop
    Manufacturer/Model
    ASSEMMBLED
    CPU
    Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz 3.10 GHz
    Motherboard
    ZEBRONICS
    Memory
    4.00 GB (3.89 GB usable)
    Graphics Card(s)
    Onboard
    Sound Card
    Onboard
    Monitor(s) Displays
    LG
    Screen Resolution
    1366x768
    Hard Drives
    Toshiba HDD 1 TB
    Keyboard
    Mechanical
    Mouse
    Mechanical
    Internet Speed
    700 kb/s
    Browser
    Microsoft EDGE, CHROME
    Antivirus
    Microsoft Defender
IMG_20240915_175135.jpg
 

My Computer

System One

  • OS
    Window 11 v24H2 Build 26100.2033
    Computer type
    PC/Desktop
    Manufacturer/Model
    ASSEMMBLED
    CPU
    Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz 3.10 GHz
    Motherboard
    ZEBRONICS
    Memory
    4.00 GB (3.89 GB usable)
    Graphics Card(s)
    Onboard
    Sound Card
    Onboard
    Monitor(s) Displays
    LG
    Screen Resolution
    1366x768
    Hard Drives
    Toshiba HDD 1 TB
    Keyboard
    Mechanical
    Mouse
    Mechanical
    Internet Speed
    700 kb/s
    Browser
    Microsoft EDGE, CHROME
    Antivirus
    Microsoft Defender
Screenshot_2024-09-17-08-06-23-376.jpeg
 

My Computer

System One

  • OS
    Window 11 v24H2 Build 26100.2033
    Computer type
    PC/Desktop
    Manufacturer/Model
    ASSEMMBLED
    CPU
    Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz 3.10 GHz
    Motherboard
    ZEBRONICS
    Memory
    4.00 GB (3.89 GB usable)
    Graphics Card(s)
    Onboard
    Sound Card
    Onboard
    Monitor(s) Displays
    LG
    Screen Resolution
    1366x768
    Hard Drives
    Toshiba HDD 1 TB
    Keyboard
    Mechanical
    Mouse
    Mechanical
    Internet Speed
    700 kb/s
    Browser
    Microsoft EDGE, CHROME
    Antivirus
    Microsoft Defender
Screenshot_2024-09-17-09-07-23-534.jpegScreenshot_2024-09-17-09-06-56-092.jpeg
 

My Computer

System One

  • OS
    Window 11 v24H2 Build 26100.2033
    Computer type
    PC/Desktop
    Manufacturer/Model
    ASSEMMBLED
    CPU
    Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz 3.10 GHz
    Motherboard
    ZEBRONICS
    Memory
    4.00 GB (3.89 GB usable)
    Graphics Card(s)
    Onboard
    Sound Card
    Onboard
    Monitor(s) Displays
    LG
    Screen Resolution
    1366x768
    Hard Drives
    Toshiba HDD 1 TB
    Keyboard
    Mechanical
    Mouse
    Mechanical
    Internet Speed
    700 kb/s
    Browser
    Microsoft EDGE, CHROME
    Antivirus
    Microsoft Defender
Hello everyone,
1. After using Media Creation Tool for Windows 11 v23H2 downloaded from Microsoft website, I created both, iso and bootable usb media.
2. ISO has install. esd of size greater than 4 GB. (nearly equal to 4.8 GB)
located in sources folder.
3. Bootable usb media created directly (online) has install. swm (nearly 3.8 GB size) and install2.swm (nearly 900 MB size) in sources folder. USB created has FAT32 partition style.
4. Sysprep and then DISM / capture image created install. wim (8.6 GB size) for Windows 11 v24H2 build 26100.1742
5. I created NTFS partition on same bootable usb and copied all folders
and files from FAT32 partition to paste into NTFS partition.
6. Excluding boot. wim, I deleted all files in sources folder in FAT32
partition. Then placed install. wim (sysprep and DISM created) in sources folder in NTFS partition deleting boot. wim in sources folder. I also placed install. esd by mounting downloaded iso (using Media creation tool) in sources folder of NTFS partition.
7. Now sources folder in FAT32 has boot. wim only.
8. In sources folder in NTFS partition, there are install.swm, install2.swm, install.esd and install. wim files.
9. When I booted my pc from this modified usb, it booted to install Windows 11 v23H2.
10. I cut both. swm files to paste outside sources folder, kept install. esd
and install. wim inside sources folder and booted from usb again. This
time I have only option of Windows 11 v24H2 build 26100.1742 to
install. After merging RegUpdates. reg file in PE environment (shift+
F10 keys applied ) Windows 11 v24H2 build 26100.1742 can be
installed provided hardware meets requirement of CPU popcount SSE4.2
11. It seems that. swm files boot first when placed with install. wim and
install. esd files in sources folder in NTFS partition. And install. wim
boots first when placed along with install. esd

Thanks for reading.
 

My Computer

System One

  • OS
    Window 11 v24H2 Build 26100.2033
    Computer type
    PC/Desktop
    Manufacturer/Model
    ASSEMMBLED
    CPU
    Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz 3.10 GHz
    Motherboard
    ZEBRONICS
    Memory
    4.00 GB (3.89 GB usable)
    Graphics Card(s)
    Onboard
    Sound Card
    Onboard
    Monitor(s) Displays
    LG
    Screen Resolution
    1366x768
    Hard Drives
    Toshiba HDD 1 TB
    Keyboard
    Mechanical
    Mouse
    Mechanical
    Internet Speed
    700 kb/s
    Browser
    Microsoft EDGE, CHROME
    Antivirus
    Microsoft Defender
Why are you posting these updates on this thread?

The original topic was about (common) sysprep errors that happen when you don't properly handle Appx provisioning. Someone who's reading it for help will have no idea what your install procedure does for their broken sysprep.
 

My Computer

System One

  • OS
    Windows 7
Hello @garlin,
Excuse me, it was all about creating install. wim of Windows 11 v24H2 build 26100.1742 by generalizing sysprep and shutting down pc to capture image of current updated windows.
I successfully created the image and made a bootable usb for windows 11 v24H2.
I found no detail steps anywhere in this forum.
I apologize. But the topic was sysprep. So I finally got success. I have installed Windows 11 v24H2 twice on two different partitions, without any errors. Commands in powershell (run as administrator ) must be correct, so I have the attached the images.
Ohers may have even easier steps.
I am awaiting for tutorial on this topic.
Thanks for everything.
 
Last edited:

My Computer

System One

  • OS
    Window 11 v24H2 Build 26100.2033
    Computer type
    PC/Desktop
    Manufacturer/Model
    ASSEMMBLED
    CPU
    Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz 3.10 GHz
    Motherboard
    ZEBRONICS
    Memory
    4.00 GB (3.89 GB usable)
    Graphics Card(s)
    Onboard
    Sound Card
    Onboard
    Monitor(s) Displays
    LG
    Screen Resolution
    1366x768
    Hard Drives
    Toshiba HDD 1 TB
    Keyboard
    Mechanical
    Mouse
    Mechanical
    Internet Speed
    700 kb/s
    Browser
    Microsoft EDGE, CHROME
    Antivirus
    Microsoft Defender
You don't need sysprep in order to install updates to an offline image.

MS has long documented the instructions:
Download the KB's, mount the install WIM, DISM /add-package the KB's to each image, and DISM commit the changes. The only hard part is picking which image tool to rebuild the ISO file.

After you learn how to do this process by hand a few times, stop doing it manually. There's a number of ISO update scripts or tools to automate this process, most will even create a final ISO for you.

If you can't find an Insider KB file, browse deskmodder.de, they'll usually post a private copy of an Insider ISO or KB update.
 

My Computer

System One

  • OS
    Windows 7

My Computer

System One

  • OS
    Window 11 v24H2 Build 26100.2033
    Computer type
    PC/Desktop
    Manufacturer/Model
    ASSEMMBLED
    CPU
    Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz 3.10 GHz
    Motherboard
    ZEBRONICS
    Memory
    4.00 GB (3.89 GB usable)
    Graphics Card(s)
    Onboard
    Sound Card
    Onboard
    Monitor(s) Displays
    LG
    Screen Resolution
    1366x768
    Hard Drives
    Toshiba HDD 1 TB
    Keyboard
    Mechanical
    Mouse
    Mechanical
    Internet Speed
    700 kb/s
    Browser
    Microsoft EDGE, CHROME
    Antivirus
    Microsoft Defender

Latest Support Threads

Back
Top Bottom