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:
CodingWonders 2024-10-07 20:43:30 +02:00
parent 6e0347274e
commit cede3aae3f

View File

@ -174,7 +174,8 @@ function Remove-Packages {
$_ -NotLike "*FodMetadata*" -AND
$_ -NotLike "*Foundation*" -AND
$_ -NotLike "*LanguageFeatures*" -AND
$_ -NotLike "*VBSCRIPT*"
$_ -NotLike "*VBSCRIPT*" -AND
$_ -NotLike "*License*"
}
$failedCount = 0