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

A Case for Graylog 4

Overview: A practical real-world application to aggregate logs would be Graylog. Its current incarnation is…

Windows Server 2019 Remote Desktop Black Screen Problem

While there's no definite solution to this issue, here are some options to work around…

Install Microsoft FTP on Windows 2008 R2

1. Install IIS without FTP 2. Download FTP a. x64: b. x86: 3. Create FTP…