Last active
May 30, 2017 20:20
-
-
Save tyochiai/7b4cd7928f9e105d94065bb9e90d048e to your computer and use it in GitHub Desktop.
Windows 10 (とついでに Office) のアレなサービスを停止する (要管理者権限) (Creators Update 以降)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$DisplayNames = ( | |
"Connected Devices Platform Service", | |
"Connected Devices Platform ユーザー サービス_*", | |
"Contact Data_*", | |
"User Data Access_*", | |
"User Data Storage_*", | |
"データ使用状況", | |
"ホストの同期_*", | |
"Microsoft Office クイック実行サービス", | |
"Downloaded Maps Manager" | |
); | |
foreach ($d in $DisplayNames) | |
{ | |
$s = Get-Service -DisplayName $d; | |
if ($s.Status -eq "Stopped") { | |
continue | |
} | |
Write-Host $s.Name | |
Stop-Service -Name $s.Name -Force; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment