mirror of
https://github.com/W4RH4WK/Debloat-Windows-10.git
synced 2024-11-15 18:12:57 +00:00
fix remove-onedrive
This commit is contained in:
parent
87cbc517a9
commit
0356a5e2eb
@ -2,7 +2,8 @@
|
||||
# This script will remove and disable OneDrive integration.
|
||||
|
||||
echo "Kill OneDrive process"
|
||||
kill "OneDrive.exe"
|
||||
taskkill.exe /F /IM "OneDrive.exe"
|
||||
taskkill.exe /F /IM "explorer.exe"
|
||||
|
||||
echo "Remove OneDrive"
|
||||
if (Test-Path "$env:systemroot\System32\OneDriveSetup.exe") {
|
||||
@ -28,4 +29,7 @@ Windows Registry Editor Version 5.00
|
||||
$regfile = "$env:windir\Temp\registry.reg"
|
||||
$reg | Out-File $regfile
|
||||
regedit /s $regfile
|
||||
rm $regfile
|
||||
rm $regfile
|
||||
|
||||
echo "Restarting explorer"
|
||||
start "explorer.exe"
|
Loading…
Reference in New Issue
Block a user