-
-
Notifications
You must be signed in to change notification settings - Fork 707
Expand file tree
/
Copy pathservices.yml
More file actions
77 lines (64 loc) · 3.5 KB
/
services.yml
File metadata and controls
77 lines (64 loc) · 3.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
---
title: Services and Drivers
description: Configures services and drivers to reduce background system resource utilization
onUpgrade: false
actions:
# ----------------------------------
# - Potential references -
# - Mostly upon IoT recommendation -
# ----------------------------------
# https://learn.microsoft.com/en-us/windows-server/remote/remote-desktop-services/rds-vdi-recommendations-2004
# https://learn.microsoft.com/en-us/windows-server/security/windows-services/security-guidelines-for-disabling-system-services-in-windows-server
# https://learn.microsoft.com/en-us/windows/iot/iot-enterprise/optimize/services
# Back up default Windows services & drivers
- !powerShell:
command: |
.\BACKUP.ps1 -FilePath """$([Environment]::GetFolderPath('Windows'))\AtlasModules\Other\winServices.reg"""
wait: true
exeDir: true
##############################################################################################
## SCRIPTS ##
##############################################################################################
- !writeStatus: {status: 'Disabling File Sharing'}
- !powerShell:
command: '.\AtlasModules\Scripts\ScriptWrappers\DisableFileSharing.ps1 -Silent'
exeDir: true
wait: true
runas: currentUserElevated
- !writeStatus: {status: 'Disabling Location'}
- !powerShell:
command: |
& "$env:windir\AtlasDesktop\3. General Configuration\Location\Disable Location (default).cmd" /silent
exeDir: true
wait: true
runas: currentUserElevated
- !writeStatus: {status: 'Configuring Indexing'}
- !powerShell:
command: |
& "$env:windir\AtlasDesktop\3. General Configuration\Search Indexing\Minimal Search Indexing (default).cmd" /silent
exeDir: true
wait: true
runas: currentUserElevated
##############################################################################################
## SERVICES ##
##############################################################################################
- !writeStatus: {status: 'Configuring services'}
# ------ Microsoft recommendation - 'OK to disable' ------
- !service: {name: 'OneSyncSvc', operation: change, startup: 4}
- !service: {name: 'TrkWks', operation: change, startup: 4}
- !service: {name: 'PcaSvc', operation: change, startup: 4}
- !service: {name: 'DiagTrack', operation: change, startup: 4}
# ------ Microsoft recommendation - 'Do not disable' -----
- !service: {name: 'diagnosticshub.standardcollector.service', operation: change, startup: 4}
- !service: {name: 'WerSvc', operation: change, startup: 4}
# ------- Microsoft recommendation - 'No guidance' ------
- !service: {name: 'wercplsupport', operation: change, startup: 4}
- !service: {name: 'UCPD', operation: change, startup: 4}
##############################################################################################
## DRIVERS ##
##############################################################################################
- !writeStatus: {status: 'Configuring drivers'}
- !service: {name: 'GpuEnergyDrv', operation: change, startup: 4}
# NetBios support can be enabled with the file sharing script
- !service: {name: 'NetBT', operation: change, startup: 4}
- !service: {name: 'Telemetry', operation: change, startup: 4}