From aa78b5f3354213e67436d6ebd0dd16336ca4d3ac Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sat, 12 Oct 2024 17:34:39 +0200 Subject: [PATCH] Remove desktop icons forcefully --- scripts/Windows/Scripts/System.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Windows/Scripts/System.ps1 b/scripts/Windows/Scripts/System.ps1 index 5bbf99b6..aa35db50 100644 --- a/scripts/Windows/Scripts/System.ps1 +++ b/scripts/Windows/Scripts/System.ps1 @@ -33,7 +33,7 @@ function Remove-DesktopIcon { $fullName = "$userDir/$path"; if (Test-Path -PathType Leaf $fullName) { - Remove-Item $fullName; + Remove-Item -Force $fullName; } } }