diff --git a/config/tweaks.json b/config/tweaks.json index 7ff4b3fd..b1e286c7 100644 --- a/config/tweaks.json +++ b/config/tweaks.json @@ -1499,12 +1499,18 @@ # Grant back permission to accses OneDrive folder icacls $Env:OneDrive /grant \"Administrators:(D,DC)\" + + # Disable OneSyncSvc + Set-Service -Name OneSyncSvc -StartupType Disabled " ], "UndoScript": [ " Write-Host \"Installing OneDrive\" winget install Microsoft.Onedrive --source winget + + # Enabled OneSyncSvc + Set-Service -Name OneSyncSvc -StartupType Enabled " ], "link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/removeonedrive" diff --git a/docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveOneDrive.md b/docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveOneDrive.md index 4940dd4c..18556b28 100644 --- a/docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveOneDrive.md +++ b/docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveOneDrive.md @@ -26,12 +26,18 @@ description: "" # Grant back permission to accses OneDrive folder icacls $Env:OneDrive /grant \"Administrators:(D,DC)\" + + # Disable OneSyncSvc + Set-Service -Name OneSyncSvc -StartupType Disabled " ], "UndoScript": [ " Write-Host \"Installing OneDrive\" winget install Microsoft.Onedrive --source winget + + # Enabled OneSyncSvc + Set-Service -Name OneSyncSvc -StartupType Enabled " ], ```