From 43ce834750ddf471636d1ece4324d02357947f9f Mon Sep 17 00:00:00 2001 From: undergroundwires Date: Sat, 22 Jan 2022 23:57:57 +0100 Subject: [PATCH] Fix Windows DoSvc not being disabled #115 - Disable DoSvc using registry to support newer Windows versions. - Add more documentation for DoSvc. --- src/application/collections/windows.yaml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/application/collections/windows.yaml b/src/application/collections/windows.yaml index 494231b2..2d379fc7 100644 --- a/src/application/collections/windows.yaml +++ b/src/application/collections/windows.yaml @@ -4608,9 +4608,19 @@ actions: - name: Delivery Optimization (P2P Windows Updates) recommend: standard - docs: http://batcmd.com/windows/10/services/dosvc/ + docs: + # Delivery Optimization is a cloud-managed solution to offer Windows updates through + # other users' network (peer-to-peer). + - https://docs.microsoft.com/en-us/windows/deployment/update/waas-delivery-optimization + # Delivery Optimization service performs content delivery optimization tasks. + - http://batcmd.com/windows/10/services/dosvc/ + # Connects to various Microsoft service endpoints to get metadata, policies, content, device information + # and information of other peers (Windows users). + - https://docs.microsoft.com/en-us/windows/deployment/update/delivery-optimization-workflow call: - function: DisableService + function: DisableServiceInRegistry + # Using registry way because because other options such as "sc config" or + # "Set-Service" returns "Access is denied" since Windows 10 1809. parameters: serviceName: DoSvc # Check: (Get-Service -Name 'DoSvc').StartType defaultStartupMode: Automatic # Allowed values: Automatic | Manual