diff --git a/config/tweaks.json b/config/tweaks.json index e72983fd..32a09bbb 100644 --- a/config/tweaks.json +++ b/config/tweaks.json @@ -650,7 +650,7 @@ icacls $Env:OneDrive /deny \"Administrators:(D,DC)\" 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 Write-Host \"Removing leftover OneDrive Files...\"