Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Taskkill.exe /F /IM "OneDrive.exe"
- Taskkill.exe /F /IM "Explorer.exe"`
- if (Test-Path "C:\Windows\System32\OneDriveSetup.exe") { Start-Process "C:\Windows\System32\OneDriveSetup.exe" -ArgumentList "/uninstall" -Wait }
- if (Test-Path "C:\Windows\SysWOW64\OneDriveSetup.exe") { Start-Process "C:\Windows\SysWOW64\OneDriveSetup.exe" -ArgumentList "/uninstall" -Wait }
- Remove-Item -Path "C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\OneDrive.lnk" -Force
- Remove-Item -Path "C:\Windows\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\OneDrive.lnk" -Force
- reg load HKLM\Temp C:\users\default\ntuser.dat
- reg delete HKLM\Temp\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v OneDriveSetup /f
- reg Unload HKLM\Temp
- explorer
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement