A Windows 11 Golden Image on Proxmox
| Links: Project overview | Source on GitHub

Building a sysprepped Windows 11 Enterprise template on Proxmox VE 9, and fixing the two sysprep errors that stood in the way: reserved storage and per-user Appx packages.
Before I can detect anything, I need something to protect.
A SOC is only as interesting as the endpoints feeding it, and in a Microsoft shop those endpoints are Windows machines. The catch is that I’m going to need a lot of them over the course of this project, and I really don’t want to click through the Windows installer every single time.
This is a solved problem in the enterprise. Nobody hand-builds workstations. IT builds one clean baseline, generalizes it, and stamps every new machine out of that image. Generalizing (with a tool called sysprep) strips out everything that makes the install unique, so each copy gets its own SID, its own hostname, and a fresh first-boot setup, ready to join the domain and enroll in Intune.
So that’s what we’re building here: one sysprepped Windows 11 template on Proxmox that win11-01, and every endpoint after it, gets cloned from. It should have been a quick job. Sysprep had other plans.
- Environment Overview
- Part 1: Create the VM
- Part 2: Build the base image
- Part 3: Sysprep and convert to a template
- Part 4: When sysprep says no
- Part 5: Verify
- Loose ends
- Wrapping up
Environment Overview
- Proxmox VE 9.1.1: The hypervisor everything in the lab runs on (kernel 6.17.2-1-pve, QEMU 10.1.2).
- Windows 11 Enterprise Evaluation: Version 26H2, build 26300.9457. I went with Enterprise over Pro because features like AppLocker and Credential Guard are what a real corporate endpoint would have.
w11-base(VMID 9000): The VM that becomes the template.
Part 1: Create the VM
Windows 11 is picky about hardware, so most of these settings aren’t optional. Here’s the template as it came out of qm config 9000 (MAC and UUIDs left out):
| Setting | Value | Why |
|---|---|---|
| Machine / firmware | q35 (pc-q35-10.1), OVMF UEFI | Windows 11 requires UEFI |
| Secure Boot | EFI disk with pre-enrolled keys, Microsoft 2023 certs | Windows 11 requirement; the 2023 certs replace the expiring 2011 CA |
| TPM | v2.0 (tpmstate0) | Windows 11 requirement; enables BitLocker later via Intune |
| CPU | 2 cores, host type | Passes through CPU features; VBS/HVCI need virtualization extensions |
| Memory | 4 GB, balloon minimum 2 GB | |
| Disk | 60 GB on LVM-thin, VirtIO SCSI single, iothread, discard, SSD emulation | Thin provisioning plus discard keeps clones small |
| NIC | VirtIO on vmbr0, VLAN tag 100 | |
| Drivers / agent | virtio-win 0.1.221, QEMU guest agent enabled |
Part 2: Build the base image
The goal here is to keep the image as boring as possible. The less that’s baked in, the less goes stale.
- Install Windows 11. When setup can’t find a disk, load the VirtIO storage driver from the virtio-win ISO and it shows right up.
- Install the VirtIO guest tools and the QEMU guest agent.
- Patch fully, rebooting until Windows Update has nothing left to give.
- Install nothing else. Seriously. Security configuration (baselines, BitLocker, LAPS, Defender) is going to be pushed by Intune later, so policy lives in one place instead of being frozen into an image.
- Disconnect the network. This one cost me a failed sysprep, and we’ll get to why below.
Part 3: Sysprep and convert to a template
With the image built, it’s time to generalize it. From an elevated PowerShell prompt:
C:\Windows\System32\Sysprep\sysprep.exe /generalize /oobe /shutdown
/generalize strips the machine-specific bits, /oobe makes the next boot start at the out-of-box setup screens, and /shutdown powers the VM off when it’s done. Once it’s off, don’t boot it again. Booting would run OOBE on the template itself and undo the whole point.
Back on the Proxmox host, convert it to a template. Endpoints are then cloned from it:
qm template 9000
qm clone 9000 <new-vmid> --name win11-01 --full
I went with full clones instead of linked clones. A linked clone depends on the template’s disk, so rebuilding the template would break every machine built from it. A full clone is its own independent copy.
That’s the happy path, anyway. In reality, sysprep failed. Twice.
Part 4: When sysprep says no
Here’s the thing about sysprep errors: the dialog is useless. All it tells you is that validation failed.
The dialog points to the log. The log has the answer.
The real error lives in C:\Windows\System32\Sysprep\Panther\setupact.log (and setuperr.log). If you take one thing away from this post, it’s that these logs are the first place to look for any sysprep failure.
Error 1: 0x800F0975, reserved storage in use
The log said:
Audit mode cannot be turned on if reserved storage is in use. An update or servicing operation may be using reserved storage. hr = 0x800F0975
Windows sets aside a chunk of disk called reserved storage so updates always have room to install. A freshly patched machine often still has that space in use, and sysprep refuses to run while it is.
The fix is to turn reserved storage off:
DISM /Online /Get-ReservedStorageState
DISM /Online /Set-ReservedStorageState /State:Disabled
Then reboot before running sysprep again. I learned this the annoying way: the change doesn’t actually take effect until after the reboot.
Error 2: 0x80073cf2, an app installed for just one user
Reboot, run sysprep again, and… a brand new error:
Package <name> was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.
This one comes from the Microsoft Store. While the VM was online, the Store quietly updated one of its apps for my setup user only. Sysprep wants every app package either provisioned for all users or gone completely, and a package that exists for one user is neither.
Pull the package name out of the log, then remove it:
Select-String -Path C:\Windows\System32\Sysprep\Panther\setupact.log -Pattern '0x80073cf2' -Context 1,0
Get-AppxPackage -AllUsers -Name '<package name from the log>' | Remove-AppxPackage -AllUsers
And this is why Part 2 says to disconnect the network. With the VM offline, the Store can’t sneak in another per-user update halfway through the process.
Third time’s the charm. Sysprep ran clean and the VM shut itself down.
Part 5: Verify
- Done: sysprep completed and the VM shut itself down.
- Done: the template shows up in Proxmox with the template icon.
- Pending: when
win11-01gets cloned, confirm it boots into OOBE and gets a unique machine SID.
w11-base converted to a template on the Proxmox node.
Loose ends
It works, but I’d be lying if I said it was perfect. A few things I’m tracking:
- Evaluation license. Enterprise Evaluation expires about 90 days after each clone is installed, not the template, so clones built later in the project last longer. I need to grab write-up material before they expire.
- Install media still attached. The template still has both ISOs mounted and boots the installer first, so every clone inherits them. The fix is a one-liner:
qm set 9000 --delete ide0,ide2 --boot order=scsi0. - Old VirtIO drivers. virtio-win 0.1.221 is from 2022. I’ll update them on the next rebuild.
- Disk size. The template is 60 GB, but the plan budgets 80 GB for
win11-01. I’ll resize the clone (qm disk resize) and extend C: if it needs it. - Manual build. Every rebuild means doing all of this by hand again. An
autounattend.xmlor Packer build would make the image reproducible. - Patch drift. The image starts aging the day it’s sealed, so clones need updates on first boot until Intune takes over patching.
Wrapping up
That’s the foundation. One clean, generalized Windows 11 image, and spinning up a new endpoint is now a single qm clone instead of an afternoon in the installer.
More importantly, every endpoint in the lab now starts from the same known-good baseline, exactly like it would in a real enterprise. Next up is cloning win11-01 and getting it onboarded, so there’s finally something sending telemetry for the SOC to watch.