r/sysadmin • u/krisniks • 2d ago
Sysprep /generalize /oobe vs. post-clone SID changers (SIDCHG / Wittytool) with FOG Project - What are you actually using in production?
I manage around 700 Dell OptiPlex workstations at a university (across 2–3 models, including older OptiPlex 3020 and 790 units) using FOG Project as our image deployment server. We standardized on Windows 11 23H2 as our main OS to avoid the heavier background AI overhead in newer builds on our legacy hardware.
Right now, my workflow is building our golden image in Audit Mode, installing all required software and then running sysprep /generalize /oobe /shutdown before capturing the image with FOG. However, I constantly run into AppxPackage validation errors during Sysprep, sometimes over basic built-in apps like Notepad, Calculator, Sticky Notes, or Snipping Tool forcing me to track down and remove packages before Sysprep will complete.
This made me wonder why some admins skip generalizing altogether, capture the live image directly with FOG, and just use a post-clone SID changer (like SIDCHG or Wittytool) alongside the FOG Client to handle ID resets afterward.
I recently re-read Mark Russinovich’s classic post,The Machine SID Duplication Myth and Why Sysprep Matters, which breaks down why duplicate SIDs aren't the real issue, it's all the other machine-specific IDs (WSUS client IDs, KMS CMIDs, endpoint agent IDs, certificates, etc.) that Sysprep clears. (Worth noting too that recent Windows 11 security updates like KB5065426 have started enforcing stricter machine SID uniqueness checks for Kerberos/NTLM authentication, making post-clone ID conflicts an even bigger headache.)
For those managing similar fleets (especially with FOG Project) in production:
- What does your actual imaging workflow look like, are you strictly running
sysprep /generalizebefore FOG capture, or are any of you capturing non-sysprepped images and using post-clone ID tools without issues? - How do you prevent Windows 11’s built-in apps (Notepad, Calculator, Snipping Tool, etc.) from updating or registering per-user in Audit Mode so Sysprep doesn't break? (Note: I already build completely offline with the network cable unplugged and only install standalone manual updates, yet it still triggers per-user Appx errors during Sysprep.)
Appreciate any insight into what’s working cleanly in your environments.
45
u/xCharg Sr. Reddit Lurker 2d ago
Doing neither is the way to go.
Instead of manually installing apps in audit mode and capturing image - make apps installation a script. Then when you image a machine in whatever tool - make it install default Microsoft's image and then run updates and then run all of your app installation scripts during imaging each deployment. This has to be automated of course, not talking about manual installs.
Yes, your imaging process will be like 10-30 minutes longer per machine but it's well worth it as this approach eliminates two key issues altogether:
7
u/sunkeeper101 2d ago
We also used golden images with sysprep. Before sysprepping I uninstalled all AppxPackages with Powershell. No worries, the AppxPackages will come back after installation, so nothing will break. I imaged hundreds of machines this way.
But we changed imaging last year, because they changed something in Win 25H2 so installation with golden images constantly failed on our machines, no matter what we tried. We never found out the reason. We gave up and use a clean iso from Microsoft now together with installation scripts for further software.
22
u/blow_slogan 2d ago
People are still sysprepping? Just install a fresh base image from Microsoft and use your RMM to provision apps or configs using evaluation/remediation scripts triggered by compound conditional logic.
6
u/zatset IT Manager/Sr.SysAdmin 2d ago edited 2d ago
I use clean sysprepped images. Then install the software via GPO/GPO scripts. If no AD available, then post-deployment scripts from a FileShare are also an option. Integrating software in the image itself might seem like a good idea, but nowadays software updates too often. Constantly rebuilding images is time consuming. Swapping the .exe or .msi installer in the FileShare is not.
About the Microsoft Store packages - they can just be reprovisioned. But Store packages are a mess from the day the Store was introduced.
/Generalize not only resets SID-s, it also uninstalls drivers while still keeping them in the driver store. If you use the same image for different machines/hardware platforms, not running /Generalize can introduce serious problems. Windows7/10/11 are somewhat better when it comes to "portability", but WindowsXP for example will fail to start without /Generalize on a different platform.
I don't use FOG, i use other software to capture images. BTW, there is also an option to update the WIM - integrate updates directly in it, so you don't have to recapture the image constantly. A good starting point is the monthly cumulative update - that way you won't need to recapture, but will have updated image.
8
u/HappyFoxFr 2d ago
Sysprep with /generalize /oobe is what I'd use, mostly because it's the only path Microsoft supports. Duplicate machine SIDs aren't really the issue. Russinovich's old write-up on the SID duplication myth covers this: domain-joined machines get a unique domain SID anyway. The real problems with plain clones are leftover machine-specific state, like the computer-bound identity, the AD join, and agent GUIDs from EDR/RMM tools. A SID changer fixes none of that.
With FOG, I keep the golden image as a VM and snapshot it before every sysprep run. After sysprep the image is one-way, so you update from the snapshot, not from the generalized copy. Then I capture it as a single-disk resizable image, drive the rest with unattend.xml, and let FOG's hostname changer plus its AD join handle the domain side.
Make sure your EDR and RMM agents are removed or set to re-register before you generalize.
3
u/UninvestedCuriosity 2d ago edited 2d ago
Back in the day we would use forensit and copyprofile in your situation but copyprofile adds god damn appxpackages now so you can't do that.
You're doing it the only way I know how. Offline.
In audit mode
If you remove an app while booted into Windows, you have to remove both the staged package (so future users don't get it) and the installed package for any existing local user
You should definitely generalize it. Third party tools aren't going to do all the things Microsoft figured out was necessary themselves already.
That's pretty much it though. Oh and if you can use ltsc if you can get the licensing for it off goodstuff or techsoup or whatever non profit vendor system you work with. The only downside is you support is non existent, some ms apps might not work with it and it's locked to 24h2 but they are doing security updates to 2029. Shit is bleak dude.
Someone has to start managing up soon to make your leadership understand subscriptions are just about required now.
If anyone has never experienced the Sid issues on a domain. You had to live through it I guess before people knew wtf was up or those of us that actually rtfm'd the sysprep manual to understand. Don't hazard it. Generalize.
You get lots of rearms though instead of like 5 we used to get I think.
Love fog project though. Ipxe is the shit and when you get that multicast going in a room, mm that feel. Non profit life is hard bro.
3
u/rome_vang 2d ago
OP thank you for this post. I have a similar dilemma, and a lot of the replies here have helped out immensely.
2
u/MemeSerf Chief Reboot Officer and PC Load Letterer 2d ago
I use Intune/autopilot. And wow 23h2? That’s a choice.
2
u/jamesaepp 1d ago
I assume you're running Education. Beware 23H2 is already end of support. You'd best be upgraded/ing.
https://learn.microsoft.com/en-us/lifecycle/products/windows-11-enterprise-and-education
2
u/Worunatto 1d ago
i love reading all ideas here and their own custom workflow, meanwhile me working as an msp on a client that still uses kerberos authentication (local printer/folder sharing) with all their machines having duplicate SIDs 💀
3
u/BlackV I have opnions 2d ago
Yes cause you should never let the inbox apps update from the MS store, this hasnt changed since win10 and possibly win8
your golden image (ignoring that that has not been the way forward for a while) should be created offline
2
u/spazzo246 Sysadmin 2d ago
Have you heard of Osdcloud? I use this in ally customer environments and it works so well
2
u/trueppp 2d ago
Why are you still using images? It's 2026, not 2006. Autopilot, Intune, Immy bot etc are way less of a headache.
4
u/Open-Adhesiveness-86 1d ago
Read C:\Windows\System32\Sysprep\Panther\setupact.log, it names the exact package. It's almost always the Store updating an inbox app while you're sitting in audit mode, so the installed version no longer matches the provisioned one and generalize bails. Set HKLM\Software\Policies\Microsoft\WindowsStore\AutoDownload=2 before you install anything and it mostly stops. SID changers won't reset CMID or your EDR agent GUIDs, so still generalize.
1
u/sccmjd 2d ago edited 1d ago
I just remove them, the appx packages. You can see which ones break sysprep in the panther folder logs. I'm using a VM. Checkpoint, sysprep -- If it breaks, check the logs, remove those appxes, and try again.
I did find something new this time around I believe about removing them so they don't even reinstall. So far, so good, for the 26h2 image. I was amused that xbox apparently can't actually be completely removed so it doesn't reinstall because that's so critical to Windows. /s If if they're more permanently removed, I think you can still just reinstall them later, so not a huge issue if someone really, really wanted a default appx app.
1
u/immortalsteve 2d ago
when I was responsible for this in a smaller org I used a clean base image with install scripts for the software. Only issue I ran in to was with Office/Adobe because the msi would get locked for an install and then it would take 26 years if on a network share.
Now it is entra/autopilot and endpoint management team's problem lol
1
u/Key-Rise76 1d ago
Made simple tool that detects and removes problematic packages(installed for curent user but not provisioned) one click before sysprep, AI can make it for you in few mins, doesn't get easier then that.
1
u/MrYiff Master of the Blinking Lights 1d ago
Another modern alternative you could look at is DeployR - it has a bunch of really smart people behind it (including one of the original MDT devs), and is getting regular updates and improvements based on community feedback (and they have a subreddit over at /r/DeployR ).
https://2pintsoftware.com/products/deployr
In theory you could start using it to deploy your existing golden image and then over time build out a more modern task sequence to deploy apps during the image process so you can easily integrate new base OS images and security updates without needing to spend a day or two rebuilding a golden image by hand.
2
u/kopiko1337 2d ago
Maybe you could do something with ipxe, wimboot and winpe to install a fresh win11 iso with autounattend.
1
u/ChiefDZP 2d ago
FFUTool and don’t look back. Under 5 minutes to a desktop with apps installed and enrolled in Entra.
1
u/pangapingus 1d ago
For golden images where you don't have SCCM, Ansible, Autopilot, etc. nothing beats Sysprep, especially if you shrink your C: drive in advance so you can expand it up to whatever you deploy against. It ain't pretty or orchestrative but if you have low variance between machines before GPOs/etc. take the reigns Sysprep still solid. I used to just have an airgapped, dumb switch in my office with Clonezilla in multicast PXE mode and would just breeze through several devices at a time.
1
u/mjewell74 1d ago
We're still running MDT, it does the base install, updates, installs office, then our patching tool installs the rest of our base software image.
My MDT server also has an Office 365 install point that I keep updated so it's installed pre-patched.
•
u/Optanik 19h ago
Stick with sysprep. SIDCHG-type tools only reset what they know about, and the whole point of the Russinovich post is that the SID isn't the problem. The Appx failures are fixable, and they almost always come from the same few causes:
•
u/sneesnoosnake 12h ago
No more imaging here. On the occasion we need a wipe, Win11 USB with Lenovo driver pack added to the Windows image. Autopilot and our RMM take it the rest of the way.
0
u/[deleted] 2d ago
[deleted] — view deleted comment