1
0
Files
settings/Batch/DISM-AppXPackages.txt
2023-12-12 18:23:56 +01:00

42 lines
1.4 KiB
Plaintext
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
DISM
=====
# Cleanup
DISM.exe /online /Cleanup-Image /StartComponentCleanup
DISM.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase
# Features
DISM.exe /Online /Get-Features /Format:Table
DISM.exe /Online /Disable-Feature /FeatureName:<name> /Remove
DISM.exe /Online /Get-FeatureInfo /FeatureName:<name>
# Packages
DISM.exe /Online /Get-Packages /Format:Table
DISM.exe /Online /Remove-Package /PackageName:name
DISM.exe /Online /Get-PackageInfo /PackageName:<name_in_image>
# Capabilities
DISM.exe /Online /Get-Capabilities /Format:Table
DISM.exe /Online /Remove-Capability /CapabilityName:<name>
DISM.exe /online /Get-CapabilityInfo /CapabilityName:<name_in_image>
# ProvisionedAppxPackages
DISM.exe /Online /Get-ProvisionedAppxPackages
DISM.exe /Online /Remove-ProvisionedAppxPackage /PackageName:name
POWERSHELL
==========
Get-AppxPackage -AllUsers
Get-AppxPackage -Allusers * | Select Name, PackageFullName
Get-AppxPackage *zunemusic* | Remove-AppxPackage
Get-AppxProvisionedPackage -online | select packagename
Remove-AppxProvisionedPackage -online -packagename <string>
Get-AppxProvisionedpackage online | where-object {$_.packagename notlike “*store*”} | Remove-AppxProvisionedPackage -online
Get-AppxProvisionedpackage online | where-object {$_.packagename like “*xbox*”} | Remove-AppxProvisionedPackage -online