Browse Source

05.08.2019

Removed "Clipboard User Service" from per-user services list

Удалена "Пользовательская служба буфера обмена" из списка отключения пользовательских служб
pull/3/head
farag2 5 years ago
committed by GitHub
parent
commit
f3a517d381
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      Win 10.ps1

5
Win 10.ps1

@ -1098,9 +1098,6 @@ Remove-Item -Path "$value\Microsoft Edge.lnk" -Force -ErrorAction SilentlyContin
# Turn off per-user services # Turn off per-user services
# Отключить пользовательские службы # Отключить пользовательские службы
$services = @( $services = @(
# Clipboard User Service
# Пользовательская служба буфера обмена
"cbdhsvc_*",
# Contact Data # Contact Data
# Служба контактных данных # Служба контактных данных
"PimIndexMaintenanceSvc_*", "PimIndexMaintenanceSvc_*",
@ -1114,8 +1111,6 @@ foreach ($service in $services)
{ {
Get-Service -ServiceName $service | Stop-Service -Force Get-Service -ServiceName $service | Stop-Service -Force
} }
New-ItemProperty -Path HKLM:\System\CurrentControlSet\Services\cbdhsvc -Name Start -Value 4 -Force
New-ItemProperty -Path HKLM:\System\CurrentControlSet\Services\cbdhsvc -Name UserServiceFlags -Value 0 -Force
New-ItemProperty -Path HKLM:\System\CurrentControlSet\Services\PimIndexMaintenanceSvc -Name Start -Value 4 -Force New-ItemProperty -Path HKLM:\System\CurrentControlSet\Services\PimIndexMaintenanceSvc -Name Start -Value 4 -Force
New-ItemProperty -Path HKLM:\System\CurrentControlSet\Services\PimIndexMaintenanceSvc -Name UserServiceFlags -Value 0 -Force New-ItemProperty -Path HKLM:\System\CurrentControlSet\Services\PimIndexMaintenanceSvc -Name UserServiceFlags -Value 0 -Force
New-ItemProperty -Path HKLM:\System\CurrentControlSet\Services\UnistoreSvc -Name Start -Value 4 -Force New-ItemProperty -Path HKLM:\System\CurrentControlSet\Services\UnistoreSvc -Name Start -Value 4 -Force

Loading…
Cancel
Save