From 4e80e7eef010aedf8e909e0441594cf308135973 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Tue, 22 Oct 2024 01:41:06 +0200 Subject: [PATCH] Remove edge desktop icon --- scripts/Windows/Software/windows/Main.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/Windows/Software/windows/Main.ps1 b/scripts/Windows/Software/windows/Main.ps1 index 8aced1b2..f4b79b85 100644 --- a/scripts/Windows/Software/windows/Main.ps1 +++ b/scripts/Windows/Software/windows/Main.ps1 @@ -163,5 +163,9 @@ using namespace Microsoft.Win32; ) Expand-BackupArtifacts -User $Arguments.Name -Path "Home" -Target $HOME; + + if (-not (Get-OSConfig "adware")) { + Remove-DesktopIcon "*Microsoft Edge*"; + } }; } @args;