mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-04-02 17:32:09 +00:00
Exclude License packages from removal
They throw an "Access denied" error when trying to remove them. This is a timesaver
This commit is contained in:
parent
6e0347274e
commit
cede3aae3f
@ -174,7 +174,8 @@ function Remove-Packages {
|
|||||||
$_ -NotLike "*FodMetadata*" -AND
|
$_ -NotLike "*FodMetadata*" -AND
|
||||||
$_ -NotLike "*Foundation*" -AND
|
$_ -NotLike "*Foundation*" -AND
|
||||||
$_ -NotLike "*LanguageFeatures*" -AND
|
$_ -NotLike "*LanguageFeatures*" -AND
|
||||||
$_ -NotLike "*VBSCRIPT*"
|
$_ -NotLike "*VBSCRIPT*" -AND
|
||||||
|
$_ -NotLike "*License*"
|
||||||
}
|
}
|
||||||
|
|
||||||
$failedCount = 0
|
$failedCount = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user