Explorar el Código

Remove OneDrive env: variable

This resolves issue #149
Richard Newton hace 6 años
padre
commit
ca4f7fcc6a
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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
     }
 }