From 1fc79bccf2e36fd69603bd5c109747475822eac7 Mon Sep 17 00:00:00 2001 From: MyDrift Date: Thu, 29 Aug 2024 03:15:03 +0200 Subject: [PATCH] [OneDrive Removal fix] Leftover autostart key (#2583) * add removal of autostart key * fix key --- config/tweaks.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/tweaks.json b/config/tweaks.json index 104a70ce..4b23516b 100644 --- a/config/tweaks.json +++ b/config/tweaks.json @@ -2713,6 +2713,9 @@ reg delete \"HKEY_USERS\\Default\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run\" /v \"OneDriveSetup\" /f reg unload \"hku\\Default\" + Write-Host \"Removing autostart key\" + reg delete \"HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Run\" /v \"OneDrive\" /f + Write-Host \"Removing startmenu entry\" Remove-Item -Force -ErrorAction SilentlyContinue \"$env:userprofile\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\OneDrive.lnk\"