Compare commits
3 commits
8a30b58fd1
...
ce7da69a5b
Author | SHA1 | Date | |
---|---|---|---|
ce7da69a5b | |||
80e3c40b43 | |||
ae3fe95912 |
6 changed files with 107 additions and 1 deletions
11
cleanW10.ps1
11
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"
|
||||
|
|
21
modules.d/SER_Sensors.conf
Normal file
21
modules.d/SER_Sensors.conf
Normal file
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
49
modules.d/SER_Users.conf
Normal file
49
modules.d/SER_Users.conf
Normal file
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
22
modules.d/SER_VariousServices.conf
Normal file
22
modules.d/SER_VariousServices.conf
Normal file
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
4
modules.d/SER_VariousServices/DiagServices.txt
Normal file
4
modules.d/SER_VariousServices/DiagServices.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
DiagTrack
|
||||
dmwappushservice
|
||||
diagnosticshub.standardcollector.service
|
||||
RetailDemo
|
|
@ -1,4 +1,5 @@
|
|||
XblAuthManager
|
||||
XblGameSave
|
||||
XboxNetApiSvc
|
||||
xboxgip
|
||||
XboxGipSvc
|
||||
|
|
Reference in a new issue