Browse Source

Added removal of OneDrive Env: variable

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

+ 2 - 0
Windows10DebloaterGUI.ps1

@@ -1266,6 +1266,8 @@ $RemoveOnedrive.Add_Click( {
         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
     })
 
 $InstallNet35.Add_Click( {