主要用於解決「文件隨選」功能無法開啟、啟動的問題。
C:\Users\Administrator\AppData\Local\Microsoft\OneDrive\onedrive.exe /reset
$ProfilePath = $env:HOMEPATH
remove-item -Path "$env:HOMEPATH\AppData\Local\OneDrive" -Recurse -ErrorAction Continue
remove-item -Path "$env:HOMEPATH\AppData\Local\Temp\*" -Recurse -ErrorAction Continue
remove-item -Path "$env:HOMEPATH\AppData\LocalLow\Temp\*" -Recurse -ErrorAction Continue
remove-item -Path "C:\Windows\Temp\*" -Recurse -ErrorAction Continue
Restart-Computer