Compare commits
No commits in common. "ce7da69a5b94ce595f18d345d9e1af4ce916b477" and "8a30b58fd131b9312436608626c20407cf952f5e" have entirely different histories.
ce7da69a5b
...
8a30b58fd1
6 changed files with 1 additions and 107 deletions
|
@ -457,15 +457,6 @@ function DisableService {
|
||||||
}
|
}
|
||||||
Stop-Service -InputObject $service -PassThru | Set-Service -StartupType disabled
|
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 {
|
catch {
|
||||||
Write-Host -NoNewLine -ForegroundColor Red "`tError`n`t"
|
Write-Host -NoNewLine -ForegroundColor Red "`tError`n`t"
|
||||||
|
|
|
@ -1,21 +0,0 @@
|
||||||
{
|
|
||||||
"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"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
|
@ -1,49 +0,0 @@
|
||||||
{
|
|
||||||
"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"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
|
@ -1,22 +0,0 @@
|
||||||
{
|
|
||||||
"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"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
|
@ -1,4 +0,0 @@
|
||||||
DiagTrack
|
|
||||||
dmwappushservice
|
|
||||||
diagnosticshub.standardcollector.service
|
|
||||||
RetailDemo
|
|
|
@ -1,5 +1,4 @@
|
||||||
XblAuthManager
|
XblAuthManager
|
||||||
XblGameSave
|
XblGameSave
|
||||||
XboxNetApiSvc
|
XboxNetApiSvc
|
||||||
xboxgip
|
|
||||||
XboxGipSvc
|
XboxGipSvc
|
||||||
|
|
Reference in a new issue