From ae3fe95912ea1e4a01180120964b3bab56cf5e6c Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Sat, 31 Mar 2018 22:46:46 +0200 Subject: [PATCH 1/3] Add a service to disable --- modules.d/UninstallModernApp/XboxServices.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/modules.d/UninstallModernApp/XboxServices.txt b/modules.d/UninstallModernApp/XboxServices.txt index 8a7a7ae..1a59b98 100644 --- a/modules.d/UninstallModernApp/XboxServices.txt +++ b/modules.d/UninstallModernApp/XboxServices.txt @@ -1,4 +1,5 @@ XblAuthManager XblGameSave XboxNetApiSvc +xboxgip XboxGipSvc From 80e3c40b4308ae6b30ae8a42b73ad4d71f5c1540 Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Sat, 31 Mar 2018 23:13:23 +0200 Subject: [PATCH 2/3] service with userService to True write a registry key to not create a user service when log-in --- cleanW10.ps1 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/cleanW10.ps1 b/cleanW10.ps1 index aae06e3..b2eb039 100755 --- a/cleanW10.ps1 +++ b/cleanW10.ps1 @@ -456,7 +456,16 @@ function DisableService { return } Stop-Service -InputObject $service -PassThru | Set-Service -StartupType disabled - Write-Host -ForegroundColor Green "done " + Write-Host -ForegroundColor Green "done" + if ( $params.userService ) { + # For this kind of service, we need to add a key t create a user service + # Where user log-in. + AddRegKey @{ + path="HKLM:\SYSTEM\CurrentControlSet\Services\$($params.name)"; + key="UserServiceFlags" + value="0" + } + } } catch { Write-Host -NoNewLine -ForegroundColor Red "`tError`n`t" From ce7da69a5b94ce595f18d345d9e1af4ce916b477 Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Sat, 31 Mar 2018 23:15:47 +0200 Subject: [PATCH 3/3] Add services modules --- modules.d/SER_Sensors.conf | 21 ++++++++ modules.d/SER_Users.conf | 49 +++++++++++++++++++ modules.d/SER_VariousServices.conf | 22 +++++++++ .../SER_VariousServices/DiagServices.txt | 4 ++ 4 files changed, 96 insertions(+) create mode 100644 modules.d/SER_Sensors.conf create mode 100644 modules.d/SER_Users.conf create mode 100644 modules.d/SER_VariousServices.conf create mode 100644 modules.d/SER_VariousServices/DiagServices.txt diff --git a/modules.d/SER_Sensors.conf b/modules.d/SER_Sensors.conf new file mode 100644 index 0000000..1696770 --- /dev/null +++ b/modules.d/SER_Sensors.conf @@ -0,0 +1,21 @@ +{ + "name" : "Sensors Services", + "description" : "Disable sensors related services should impact orientation, auto-brightness orientation etc.", + "actions" : [ + { + "_comment" : "disable sensors service", + "action" : "disableservices", + "name" : "sensorservice" + }, + { + "_comment" : "Disable sensors monitoring service", + "action" : "disableservices", + "name" : "SensrSvc" + }, + { + "_comment" : "Disable sensors data service", + "action" : "disableservices", + "name" : "SensorDataService" + } + ] +} diff --git a/modules.d/SER_Users.conf b/modules.d/SER_Users.conf new file mode 100644 index 0000000..d402b34 --- /dev/null +++ b/modules.d/SER_Users.conf @@ -0,0 +1,49 @@ +{ + "name" : "User services", + "description" : "User specific services, ones ends with ????? need to be disable per account", + "actions" : + [ + { + "_comment" : "Disable sync service (useful for calendars, contact, mesaging and other sync applications)", + "action" : "DisableService", + "name" : "OneSyncSvc", + "userService" : "True" + }, + { + "_comment" : "Disable connected user platform service", + "action" : "DisableService", + "name" : "CDPUserSvc", + "userService" : "True" + }, + { + "_comment" : "Disable messaging service", + "action" : "DisableService", + "name" : "MessagingService", + "userService" : "True" + }, + { + "_comment" : "Disable contact data service", + "action" : "DisableService", + "name" : "PimIndexMaintenanceSvc", + "userService" : "True" + }, + { + "_comment" : "Disable contact data service", + "action" : "DisableService", + "name" : "UnistoreSvc", + "userService" : "True" + }, + { + "_comment" : "Disable user data sharing service", + "action" : "DisableService", + "name" : "UserDataSvc", + "userService" : "True" + }, + { + "_comment" : "Disable contact data service", + "action" : "DisableService", + "name" : "WpnUserService", + "userService" : "True" + } + ] +} diff --git a/modules.d/SER_VariousServices.conf b/modules.d/SER_VariousServices.conf new file mode 100644 index 0000000..54777ab --- /dev/null +++ b/modules.d/SER_VariousServices.conf @@ -0,0 +1,22 @@ +{ + "name" : "Remove Services", + "description" : "", + "actions" : [ + { + "_comment" : "Disable most diagnostic related services", + "action" : "DisableServices", + "file" : "DiagServices.txt", + "firewall" : "True" + }, + { + "_comment" : "Disable Biometric service", + "action" : "DisableService", + "name" : "WbioSrvc" + }, + { + "_comment" : "Disable Windows Licence Manager", + "action" : "DisableService", + "name" : "LicenseManager" + } + ] +} diff --git a/modules.d/SER_VariousServices/DiagServices.txt b/modules.d/SER_VariousServices/DiagServices.txt new file mode 100644 index 0000000..24e975b --- /dev/null +++ b/modules.d/SER_VariousServices/DiagServices.txt @@ -0,0 +1,4 @@ +DiagTrack +dmwappushservice +diagnosticshub.standardcollector.service +RetailDemo