2021-01-19 22:59:40 +01:00
|
|
|
@echo off
|
2021-03-16 23:23:06 +01:00
|
|
|
set IMAGE=c:\TEMP\IMAGE
|
2021-01-19 22:59:40 +01:00
|
|
|
|
|
|
|
echo exporting APPS list BEFORE doing any changes ...
|
2021-03-16 23:23:06 +01:00
|
|
|
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
|
|
|
|
2021-03-16 23:23:06 +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-03-16 23:23:06 +01:00
|
|
|
)
|
2021-01-19 22:59:40 +01:00
|
|
|
|
|
|
|
echo exporting remaining APPS list ...
|
2021-03-16 23:23:06 +01:00
|
|
|
dism /Image:%IMAGE% /Get-ProvisionedAppxPackages 1>Apps-AFTER.txt
|
2021-01-19 22:59:40 +01:00
|
|
|
|
|
|
|
rem showing packages ...
|
|
|
|
dir Apps*.txt
|
|
|
|
|