Skip to content

Commit 4ebe1a3

Browse files
authored
Update WPFTweaksRemoveOneDrive to remove OneSyncSvc Service (#3991)
* Update tweaks.json * Update RemoveOneDrive.md * Update RemoveOneDrive.md * Update tweaks.json * Update RemoveOneDrive.md
1 parent 6708756 commit 4ebe1a3

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

config/tweaks.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1499,12 +1499,18 @@
14991499

15001500
# Grant back permission to accses OneDrive folder
15011501
icacls $Env:OneDrive /grant \"Administrators:(D,DC)\"
1502+
1503+
# Disable OneSyncSvc
1504+
Set-Service -Name OneSyncSvc -StartupType Disabled
15021505
"
15031506
],
15041507
"UndoScript": [
15051508
"
15061509
Write-Host \"Installing OneDrive\"
15071510
winget install Microsoft.Onedrive --source winget
1511+
1512+
# Enabled OneSyncSvc
1513+
Set-Service -Name OneSyncSvc -StartupType Enabled
15081514
"
15091515
],
15101516
"link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/removeonedrive"

docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveOneDrive.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,18 @@ description: ""
2626

2727
# Grant back permission to accses OneDrive folder
2828
icacls $Env:OneDrive /grant \"Administrators:(D,DC)\"
29+
30+
# Disable OneSyncSvc
31+
Set-Service -Name OneSyncSvc -StartupType Disabled
2932
"
3033
],
3134
"UndoScript": [
3235
"
3336
Write-Host \"Installing OneDrive\"
3437
winget install Microsoft.Onedrive --source winget
38+
39+
# Enabled OneSyncSvc
40+
Set-Service -Name OneSyncSvc -StartupType Enabled
3541
"
3642
],
3743
```

0 commit comments

Comments
 (0)