Thanks So still a good idea to run Set-Additional.cmd (or ps1) for the tweaks it provides even if it doesn’t do anything for Services/Scheduled tasks I can just go through services.json and scheduled tasks.json and use Autoruns to disable what’s in those lists
Thanks for all your help It’s certainly a slippery slope using all the features OO has to offer lol Is it a known bug that the script can’t disable services and/or scheduled tasks via set-additional.cmd?
Having a small problem with disabling of services via the Optimize script. If I manually disable the services in Windows everything is fine however if I use the script to disable the services, it breaks the System settings (cannot change display settings). Here is the list of services I am disabling. Have gone through the list and applied these separately via the script as either ServicesList.json or AdvancedServices.json Has anyone encountered the same problem? I'm using Windows 10 LTSC 2021 Code: { "__Info": [ "Insert the services display names as a list, the names are found in the ./ServicesTemplate.json in the 'name' key" ], "Services": [ "AJRouter", "ALG", "BcastDVRUserService", "bthserv", "CDPSvc", "CertPropSvc", "CscService", "diagnosticshub.standardcollector.service", "diagsvc", "DiagTrack", "dmwappushservice", "DoSvc", "DusmSvc", "FrameServer", "Fax", "FrameServer", "HvHost", "icssvc", "MapsBroker", "MSiSCSI", "NcbService", "PcaSvc", "PeerDistSvc", "PhoneSvc", "RetailDemo", "RpcLocator", "SCardSvr", "ScDeviceEnum", "SCPolicySvc", "SEMgrSvc", "SensorDataService", "SensorService", "SensrSvc", "SessionENV", "SmsRouter", "stisvc", "SysMain", "TabletInputService", "TermService", "tzautoupdate", "UmRdpService", "vmicguestinterface", "vmicheartbeat", "vmickvpexchange", "vmicrdv", "vmicshutdown", "vmictimesync", "vmicvmsession", "vmicvss", "WalletService", "Wecsvc", "wercplsupport", "WerSvc", "WinRM", "wisvc", "WMPNetworkSvc", "WpcMonSvc", "WPDBusEnum", "WwanSvc" ] }
May i ask you what is your host OS? if host is W11 then for sure this is a problem with DISM.exe of the host refusing to remove that package. Maybe use W10 as host? But for sure that error comes from DISM.exe and is not under the competences of the script actually.
Some services refuse to get disabled before setup in an offline image and then in online env they can be disabled without problem. Also known issue. Basically it's the registry key ownership that makes it impossible to modify. Will take a look if this can be forced somehow without breaking windows installation.
Hi gdeliana, I am using a windows 10 enterprise release to create this image. If it is a dism problem any idea why it does not appear in a previous package? I will try without removing the fax application Edit without fax application the procedure works
When I run the Set-Additional.ps1 post install, the script is not disabling any of the services that I have amended in the Services.json file Is there some other way to make these run besides manually disabling each service?
You could change it in the registry, reboot and it'll be Disabled. I occasionally do this for those pesky services that just don't want to budge. Code: for %%d in (TabletInputService,Registry_name_example) do ( reg add "HKLM\SYSTEM\CurrentControlSet\Services\%%d" /v "Start" /t REG_DWORD /d "4" /f >NUL 2>&1 ) Of course, copy/paste and change the registry names with the services that you want to modify. Save as .bat or .cmd and Run as Admin.
Thanks will definitely have to give this a try I have around 54 services that I want disabled so will take some time to compile the list. It's such a shame the script GodHand made doesn't work Just wanted to make sure as I am very new to all of this, the service name is in the brackets '(TabletInputService,Registry_name_example)'? Edit: just got it working, thanks for the script! Now the big task of including all my services I want disabled
You can run the populateTemplates.bat and it'll populate the Advanced Services list will ALL the services your ISO has.
It may be because the fax feature is locked for removal by the host DISM. What do you mean with "previous package"? A previous version of the OO script? If so i will take a look, but don't remember touching any code related to fax feature removal, nor there is any specific code for that in the script. The script considers that feature just as all the other features, nothing special for the fax
Just to be specific: the script way how it gets WIM services is by reading the registry keys of: Code: HKLM\SYSTEM\CurrentControlSet\Services In this folder there do exist not only windows services found in the services.msc interface, but as well WINDOWS DRIVERS and as well other windows features. Unfortunatelly there is no straight forward way to filter the list to show just the windows services. So one must be careful and really know in advance which are the real windows services. Touching and modifying the other keys may lead to non bootable windows image.
This is really strange, for me the script works after the initial windows setup. This script has been only slightly modified by me, but haven't touched the services removal part. So as it was in the main repository, it's even in the fork. Try to grab some console output when you run the script. Maybe there is some error.
When I incorporate the services I want disabled at the time of iso creation, the output log shows the services are disabled however when I boot first time in to Windows I loose the ability to access 'Display settings' Just finished creating the .bat script as per Strotee's recommendation and it works great. Have modified 'Set-Additional.ps1' to only include disabling Scheduled Tasks and everything is working as it should
Ah ok that is normal if you disable services that make windows functionalities break. That's why i said here before, OO script is a tool that helps you modify windows, but its not the brain behind everything, you need to still drive the car
that is true What is weird though is the services I was disabling during the iso creation, I did a clean Optimized iso without integrating disabling those services and once windows was installed manually disabled all 56 and everything was fine Must be a service or two that when disabled whilst iso creation breaks something with display properties