w10install/wim/remove-apps.cmd

20 lines
494 B
Batchfile
Raw Normal View History

2021-01-19 22:59:40 +01:00
@echo off
set IMAGE=c:\TEMP\IMAGE
2021-01-19 22:59:40 +01:00
echo exporting APPS list BEFORE doing any changes ...
dism /Image:%IMAGE% /Get-ProvisionedAppxPackages 1>Apps-BEFORE.txt
2021-01-19 22:59:40 +01:00
2021-03-16 23:55:01 +01:00
FOR /F %%P in (apps-to-remove.csv) do (
2021-01-19 22:59:40 +01:00
echo removing APPX package [ Microsoft.%%P ]
dism /Image:%IMAGE% /Remove-ProvisionedAppxPackage /PackageName:Microsoft.%%P
2021-01-19 22:59:40 +01:00
)
2021-01-19 22:59:40 +01:00
echo exporting remaining APPS list ...
dism /Image:%IMAGE% /Get-ProvisionedAppxPackages 1>Apps-AFTER.txt
2021-01-19 22:59:40 +01:00
rem showing packages ...
dir Apps*.txt