Posted On January 13, 2021

How To Disable Microsoft One Sync Service

kimconnect 2 comments
blog.KimConnect.com >> Windows >> How To Disable Microsoft One Sync Service
OneSyncSvc is the parent object of OneSyncSvc_#####, and Sync Host_##### is the child’s display name.
 
 
The startup type of this service cannot be changed via services.msc. This error would occur if one would make that attempt:
 
---------------------------
Services
---------------------------
The delayed auto-start flag could not be reset.

Error 87: The parameter is incorrect.

---------------------------
OK
---------------------------

Hence, modifications would require registry editing. Here’s how to view the service’s current properties:

# Query OneSyncService
$regKeyOneSync='REGISTRY::HKLM\system\currentcontrolset\services\onesyncsvc'
gi $regKeyOneSync

# PS C:\Windows\system32> $regKeyOneSync='REGISTRY::HKLM\system\currentcontrolset\services\onesyncsvc'
# PS C:\Windows\system32> gi $regKeyOneSync

# Hive: HKLM\system\currentcontrolset\services

# Name Property
# ---- --------
# onesyncsvc DisplayName : @%SystemRoot%\system32\APHostRes.dll,-10002
# ErrorControl : 0
# ImagePath : C:\Windows\system32\svchost.exe -k UnistackSvcGroup
# Start : 2
# Type : 96
# Description : @%SystemRoot%\system32\APHostRes.dll,-10001
# ObjectName : LocalSystem
# ServiceSidType : 1
# RequiredPrivileges : {SeCreateGlobalPrivilege}
# DelayedAutoStart : 1
# FailureActions : {128, 81, 1, 0...}

This is the command to disable such service (reboot required):

# Disable OneSyncSvc on Startup
$disableValue=4
REG.EXE ADD $regKeyOneSync /v Start /t REG_DWORD /d $disableValue /f

2 thoughts on “How To Disable Microsoft One Sync Service”

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

Pihole Error: Tried 100 Times to Connect to FTL Server

Error Message: DataTables warning: table id=all-queries - Tried 100 times to connect to FTL server,…

How To Create a Virtual Machine Administrator Role in SCVMM

Update: A new write-up has been posted with screenshots here. Virtual Machine Manager (VMM) 2019…

Dial Plans Decoded

() parenthesis enclose the dial plan | pipe means OR x represents a digit between…