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

Current List of Secure Browsers

PCI compliance requires that SSLv2, SSLv3 and TLS 1.0   Google Chrome – version 30 or…

PowerShell: How To Configure Static IP Address

$nicName='NIC1' $ipaddress='192.168.0.222' $cidrPrefix=24 $defaultGateway='192.168.0.1' $dnsServers=@('8.8.8.8','4.4.2.2') $disableIpv6=$true function setNic($nicName,$ipAddress,$cidrPrefix,$defaultGateway,$dnsServers,$disableIpv6=$true ){ $ifIndex=(get-netadapter|?{$_.Name -eq $nicName}).ifIndex New-NetIPAddress -InterfaceIndex $ifIndex…

How to Block Distracting Sites Such as Youtube and Hulu on Your Home Network

Overview: - You send a voice command 'block youtube' to Alexa, an Amazon personal assistant…