Great script. Still works on Windows 11 LTSC (24H2), but missing reversion.
However, I'm missing reversion when removing a service with
$AllServices = [string[]]("DoSvc", "BITS", "wuauserv", "NcaSvc")
which was previously stated. Would be a fine addition to revert whichever service is no longer applied?
Maybe by checking registry Services and which has ImagePath still aimed to svchost-net.exe, and revert if not in the list?