Remove desktop icons forcefully

This commit is contained in:
Manuel Thalmann 2024-10-12 17:34:39 +02:00
parent e6f7934c7e
commit aa78b5f335

View file

@ -33,7 +33,7 @@ function Remove-DesktopIcon {
$fullName = "$userDir/$path";
if (Test-Path -PathType Leaf $fullName) {
Remove-Item $fullName;
Remove-Item -Force $fullName;
}
}
}