How do I export all components/settings then inverse selection to delete items on a different ISO?

nick203k

New Member
Hello,

Does NTLite have to ability to export the current configuration of a freshly mounted iso, with no presets, as a preset?...
Then import the components it into a new stock ISO project, then inverse the selection so that everything not in the preset gets removed?

This would save me a lot of time vs manually going line by line comparing which components needs to be removed.
Maybe there is an alternative I do not know about?

I understand I can achieve similar results with preset XML files, but I have no presets.
I understand that it may come at a high risk of breaking things.


Edit: I have the paid version if that matters.
 
Last edited:
Thank you for the response. I was able to test it today, but it still requires a fair amount of time comparing the two presets (using windiff). I suppose there is no way to remove all components not found in a preset?
 
Thank you for the offer, but I wouldn't want you to spend your time doing that. I'll find time to do it, but I appreciate your generosity!
 
Maybe it wasn't clear in that topic, but the switch saveallstates will do what you want, it will save changed tweaks and removed components, no need for a diff.
I believe in that topic the diff was mentioned by the top post, as the user mentioned comparing.

Let me know if it doesn't work as expected.
Seems like a dedicated button for this has been requested enough times so it can graduate from a switch.

Thanks.
 
Could we get a XML header comment to reduce confusion?
This way we know when we're comparing apples & oranges.
Code:
<---  Preset created by /forcelistcomponents /saveallstates.  For comparison use only --->
 
I wrote a PS script to speed up comparison, it checks which components & features are not shared in both presets.
Run PresetDiff.ps1 from PowerShell, or a command prompt. Don't forget filenames are 'single quotes' not "double".

Code:
C:\Users\GARLIN\Downloads>powershell .\PresetDiff.ps1 'C:\Program Files\NTLite\Presets\21H2 LTSC.xml' 'C:\Program Files\NTLite\Presets\21H2 Pro.xml'
1. C:\Program Files\NTLite\Presets\21H2 LTSC.xml
   Windows 11 Enterprise x64 - 10.0.22000.194 (en-US)

2. C:\Program Files\NTLite\Presets\21H2 Pro.xml
   Windows 10 Professional (21H2) x64 - 10.0.19044.1288 (en-US)

Missing Components from 1
-------------------------
cloudid 'Microsoft Cloud Identity Service'
edgewebview 'Microsoft Edge WebView'
eicfg 'Edition configuration file (EI.cfg)'
em 'Windows Setup EM'
killbits 'ActiveX Compatibility Flags (Killbits)'
langbasque 'Basque'
langcatalan 'Catalan'
langgalician 'Galician'
langindonesian 'Indonesian'
langvietnamese 'Vietnamese'
oskthemes 'On-Screen Keyboard (Windows Personalization themes)'
undockedupdatestack 'Undocked Update Stack'
wallet 'Wallet Service'
xbox 'Xbox App'

Missing Components from 2
-------------------------
homegroup
langtamil 'Tamil'
paint
paint32 'Paint - 32 bit'
settingsync 'Setting Sync'
snippingtool 'Snipping Tool'

Missing Features from 1
-----------------------

Missing Features from 2
-----------------------
Hello.Face.20134
Microsoft.Windows.Ethernet.Client.Intel.E1i68x64
Microsoft.Windows.Ethernet.Client.Intel.E2f68
Microsoft.Windows.Ethernet.Client.Realtek.Rtcx21x64
Microsoft.Windows.Notepad.System
Microsoft.Windows.Wifi.Client.Broadcom.Bcmpciedhd63
Microsoft.Windows.Wifi.Client.Broadcom.Bcmwl63a
Microsoft.Windows.Wifi.Client.Broadcom.Bcmwl63al
Microsoft.Windows.Wifi.Client.Intel.Netwbw02
Microsoft.Windows.Wifi.Client.Intel.Netwew00
Microsoft.Windows.Wifi.Client.Intel.Netwew01
Microsoft.Windows.Wifi.Client.Intel.Netwlv64
Microsoft.Windows.Wifi.Client.Intel.Netwns64
Microsoft.Windows.Wifi.Client.Intel.Netwsw00
Microsoft.Windows.Wifi.Client.Intel.Netwtw02
Microsoft.Windows.Wifi.Client.Intel.Netwtw04
Microsoft.Windows.Wifi.Client.Intel.Netwtw06
Microsoft.Windows.Wifi.Client.Intel.Netwtw08
Microsoft.Windows.Wifi.Client.Marvel.Mrvlpcie8897
Microsoft.Windows.Wifi.Client.Qualcomm.Athw8x
Microsoft.Windows.Wifi.Client.Qualcomm.Athwnx
Microsoft.Windows.Wifi.Client.Qualcomm.Qcamain10x64
Microsoft.Windows.Wifi.Client.Ralink.Netr28x
Microsoft.Windows.Wifi.Client.Realtek.Rtl8187se
Microsoft.Windows.Wifi.Client.Realtek.Rtl8192se
Microsoft.Windows.Wifi.Client.Realtek.Rtl819xp
Microsoft.Windows.Wifi.Client.Realtek.Rtl85n64
Microsoft.Windows.Wifi.Client.Realtek.Rtwlane
Microsoft.Windows.Wifi.Client.Realtek.Rtwlane01
Microsoft.Windows.Wifi.Client.Realtek.Rtwlane13
Windows.Kernel.LA57

C:\Users\GARLIN\Downloads>powershell .\PresetDiff.ps1 'C:\Program Files\NTLite\Presets\21H2 Pro.xml' 'C:\Program Files\NTLite\Presets\21H2 Home.xml'
1. C:\Program Files\NTLite\Presets\21H2 Pro.xml
   Windows 10 Professional (21H2) x64 - 10.0.19044.1288 (en-US)

2. C:\Program Files\NTLite\Presets\21H2 Home.xml
   Windows 10 Core (21H2) x64 - 10.0.19044.1288 (en-US)

Missing Components from 1
-------------------------
appv 'Application Virtualization (App-V)'
assignedaccess 'Assigned Access'
branchcacheclient 'BranchCache Client'
fciclient 'File Server Resource Manager'
printmgmt 'Print Management'
rdpserverlic 'Remote Desktop Licensing'

Missing Components from 2
-------------------------

Missing Features from 1
-----------------------

Missing Features from 2
-----------------------
Print.Management.Console
SmbDirect

WARNING - Both presets must be the same kind. Both /forcelistcomponents, or both normal presets. Don't mix the two kinds!
 

Attachments

  • PresetDiff.zip
    872 bytes
Thanks for the confirmation nuhi. It did work correctly, however I have put off looking at both XML's, but now with that script from garlin i'll be able to quickly review over everything.

Thank you both for all the hard work!
 
Bat Script to Execute PresetDiff.ps1 by Garlin {Credits to him}

Code:
@echo off
cd /d %~dp0
Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Write-Host 'Compare NTLite Preset Files' -EA SilentlyContinue -ForegroundColor Green -Verbose"
Powershell -EP Bypass -MTA -NOL -NONI -NOP -file %~dp0PresetDiff.ps1 1.xml 2.xml
pause
 
Sweet I ran the batch and script and it worked perfectly thank you! I'm currently working on trying to figure out which item in /components-localization is causing rectangle icons (tray, startmenu, settings) if by chance anybody knows before I figure it out.
 
I just checked and Segoe UI is one of the ones that I have left because it was blocked by compatibility. I actually left all the ones that had any compatibility issues.
 
The weird thing is that I actually enabled all of them to "make sure" and it still broke them. Maybe a compatibility issue with the latest windows 11 updated? I believe it was released on jan 25th. I'm going to look for it now.
 
I have narrowed it down theses fonts

edit: Just removed fonts A - L (aside from "fixed") and it worked. will try again tomorrow to figure it out

edit: it is one of these causing the issue under "fonts": fixed, OEM, Segoe Fluent Icons, SegoeScript, SegoeUI ItalicSupplement, Small, System, Webdings

I think I'll just leave the rest of those
 

Attachments

  • Untitled.png
    Untitled.png
    66.6 KB
Last edited:
I have narrowed it down theses fonts

edit: Just removed fonts A - L (aside from "fixed") and it worked. will try again tomorrow to figure it out

edit: it is one of these causing the issue under "fonts": fixed, OEM, Segoe Fluent Icons, SegoeScript, SegoeUI ItalicSupplement, Small, System, Webdings

I think I'll just leave the rest of those
isnt it obvious
 
I know it may seem obvious to the ones fluent with the program, but looking up other fonts on google such as "Webdings" brings up icons. Also I have no idea what "font" fixed, OEM, small, and System are. They are also not on any compatibility lists either which made troubleshooting more difficult.
 
Back
Top