Hello Freddie-o, I found these lines in the last script of the. I want to make a LTSC version. In the last script these lines were not all included. Should I delete everything there too!? Thanks
Code: echo ***************************************************************** echo --- Remove Component Packages From Offline Image echo ***************************************************************** for %%z in ( Microsoft-Windows-OneDrive-Setup-Package Microsoft-Windows-OneDrive-Setup-WOW64-Package ) do ( echo. Powershell -C "Write-Host 'Removing: %%z'" echo. Reg load "HKLM\OfflineSOFTWARE" "mount\Windows\System32\config\SOFTWARE" Powershell -C "Set-ItemProperty -Path 'HKLM:OfflineSOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\*%%z*' -Name Visibility -Value 1 -Force -EA 0 -Verbose" Powershell -C "Remove-Item -Path 'HKLM:OfflineSOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\*%%z*' -Include *Owner* -Recurse -Force -EA 0 -Verbose" Reg unload "HKLM\OfflineSOFTWARE" Powershell -C "Get-WindowsPackage -Path 'mount' | Where {$_.PackageName -match '%%z' } | Remove-WindowsPackage -Path 'mount' -NoRestart -EA 0" ) echo ***************************************************************** Pl if dear friend Freddie-o you want to update your script with this solution. Thanks
Is this error message normal? I have not deleted these last 2 lines in the script! Or REM always deletes everything that is under the command....
There is no error message, only the information that files have been deleted. I had not deleted these files in the script, but they were deleted! That was my question...
you need to take out these lines from the script Code: rem == delete telemetry executables == del /s mount\Windows\System32\CompatTelRunner.exe del /s mount\Windows\System32\OneDriveSetup.exe del /s mount\Windows\System32\smartscreen.exe if you do not want to delete those executables
Disable ? telemetry from M$ OS because of Protected "Product Policy" HKLM\SYSTEM\ControlSet001\Control\ProductOptions || "Software Protection Platform" Service if disabled results in "Windows Not Activated" & after 3-4 hours of sppsvc deactivated | windows will auto shutdown then gets deactivated.
It works fine with a small adjustment for a live system. Tested on Enterprise lTSC 2021 with no errors. Great work btw freddie-o