mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2026-08-09 17:41:14 +10:00
bugfix(tweaks): fix OneDrive uninstall path (#4864)
* bugfix(tweaks): fix OneDrive uninstall path * bugfix(tweaks): use SystemRoot for OneDrive path
This commit is contained in:
+1
-1
@@ -650,7 +650,7 @@
|
|||||||
icacls $Env:OneDrive /deny \"Administrators:(D,DC)\"
|
icacls $Env:OneDrive /deny \"Administrators:(D,DC)\"
|
||||||
|
|
||||||
Write-Host \"Uninstalling OneDrive...\"
|
Write-Host \"Uninstalling OneDrive...\"
|
||||||
Start-Process '$Env:SystemRoot\\System32\\OneDriveSetup.exe' -ArgumentList '/uninstall' -Wait
|
Start-Process -FilePath (Join-Path $Env:SystemRoot \"System32\\OneDriveSetup.exe\") -ArgumentList '/uninstall' -Wait
|
||||||
|
|
||||||
# Some of OneDrive files use explorer, and OneDrive uses FileCoAuth
|
# Some of OneDrive files use explorer, and OneDrive uses FileCoAuth
|
||||||
Write-Host \"Removing leftover OneDrive Files...\"
|
Write-Host \"Removing leftover OneDrive Files...\"
|
||||||
|
|||||||
Reference in New Issue
Block a user