Browse Source

Remove OneDrive env: variable

This resolves issue #149
Richard Newton 6 years ago
parent
commit
ca4f7fcc6a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Windows10Debloater.ps1

+ 2 - 0
Windows10Debloater.ps1

@@ -660,6 +660,8 @@ Function UninstallOneDrive {
         Write-Host "Restarting Explorer that was shut down before."
         Start-Process explorer.exe -NoNewWindow
         Write-Host "OneDrive has been successfully uninstalled!"
+        
+        Remove-item env:OneDrive
     }
 }