差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン最新のリビジョン両方とも次のリビジョン | ||
windows:windows_repair [2020/02/18 12:21] – [Microsoft Store アプリの ACL] ともやん | windows:windows_repair [2020/09/19 11:01] – [システム統合の確認と修復 [sfc]] ともやん | ||
---|---|---|---|
行 1: | 行 1: | ||
====== Windows 10 の修復 ====== | ====== Windows 10 の修復 ====== | ||
**注意!** この情報は未整理です。随時まとめていきます。\\ | **注意!** この情報は未整理です。随時まとめていきます。\\ | ||
+ | |||
+ | ===== システム統合の確認と修復 [sfc] ===== | ||
+ | パス: < | ||
+ | |||
+ | <WRAP prewrap 100%> | ||
+ | <code powershell> | ||
+ | $ sfc /? | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP prewrap 100% #result> | ||
+ | <code powershell> | ||
+ | |||
+ | Microsoft (R) Windows (R) Resource Checker Version 6.0 | ||
+ | Copyright (C) Microsoft Corporation. All rights reserved. | ||
+ | |||
+ | すべての保護されたシステム ファイルの整合性をスキャンして、間違ったバージョンを | ||
+ | 正しい Microsoft バージョンに置換します。 | ||
+ | |||
+ | SFC [/SCANNOW] [/ | ||
+ | [/ | ||
+ | |||
+ | / | ||
+ | 可能な場合には問題のあるファイルを修復します。 | ||
+ | / | ||
+ | 修復操作は実行されません。 | ||
+ | / | ||
+ | 場合はファイルを修復します。完全パス < | ||
+ | / | ||
+ | します。修復操作は実行されません。 | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | |||
+ | 例 | ||
+ | |||
+ | sfc /SCANNOW | ||
+ | sfc / | ||
+ | sfc / | ||
+ | sfc / | ||
+ | sfc /VERIFYONLY | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | 管理者実行された PowerShell もしくは [[windows: | ||
+ | <WRAP prewrap 100%> | ||
+ | <code powershell> | ||
+ | $ sudo sfc /scannow | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP prewrap 100% #result> | ||
+ | <code powershell> | ||
+ | |||
+ | システム スキャンを開始しています。これにはしばらく時間がかかります。 | ||
+ | |||
+ | システム スキャンの検証フェーズを開始しています。 | ||
+ | 検証 100% が完了しました。 | ||
+ | |||
+ | Windows リソース保護により、破損したファイルが見つかりましたが、それらは正常に修復されました。 | ||
+ | オンライン修復の場合、詳細は次の場所にある CBS ログ ファイルに含まれています | ||
+ | windir\ Logs\CBS\CBS.log (たとえば C: | ||
+ | 詳細は /OFFLOGFILE フラグによって指定したログ ファイルに含まれています。 | ||
+ | </ | ||
+ | </ | ||
===== UWP アプリケーションのインストールパス ===== | ===== UWP アプリケーションのインストールパス ===== | ||
行 17: | 行 80: | ||
以下の手順は、**Shift + 再起動** から「トラブルシューティング」を選択して、「コマンドプロンプト」から実行します。\\ | 以下の手順は、**Shift + 再起動** から「トラブルシューティング」を選択して、「コマンドプロンプト」から実行します。\\ | ||
または、コマンドプロンプトを管理者実行して、以下のコマンドを実行し「トラブルシューティング」を選択して、「コマンドプロンプト」から実行します。\\ | または、コマンドプロンプトを管理者実行して、以下のコマンドを実行し「トラブルシューティング」を選択して、「コマンドプロンプト」から実行します。\\ | ||
- | < | + | <WRAP group> |
+ | |||
+ | <WRAP left column> | ||
+ | < | ||
> reagentc /boottore | > reagentc /boottore | ||
</ | </ | ||
- | or\\ | + | </ |
- | < | + | |
+ | <WRAP left column> | ||
+ | <WRAP #or> | ||
+ | </ | ||
+ | |||
+ | <WRAP left column> | ||
+ | < | ||
> shutdown /r /o /t 0 | > shutdown /r /o /t 0 | ||
</ | </ | ||
- | \\ | + | </ |
+ | |||
+ | </ | ||
==== xcopy コマンドを使った方法(まだ完全な ACL ではないかも...) ==== | ==== xcopy コマンドを使った方法(まだ完全な ACL ではないかも...) ==== | ||
<WRAP prewrap 100%> | <WRAP prewrap 100%> | ||
- | < | + | < |
> xcopy " | > xcopy " | ||
> attrib -h " | > attrib -h " | ||
行 76: | 行 150: | ||
< | < | ||
> icacls " | > icacls " | ||
+ | </ | ||
+ | <WRAP prewrap 100% #result> | ||
+ | < | ||
C:\Program Files\WindowsApps NT SERVICE\TrustedInstaller: | C:\Program Files\WindowsApps NT SERVICE\TrustedInstaller: | ||
NT SERVICE\TrustedInstaller: | NT SERVICE\TrustedInstaller: | ||
行 101: | 行 178: | ||
==== 正常な ACL の例 ==== | ==== 正常な ACL の例 ==== | ||
icacls /save の出力(見やすいように改行)\\ | icacls /save の出力(見やすいように改行)\\ | ||
- | <WRAP prewrap 100%> | + | <WRAP prewrap 100% #result> |
< | < | ||
WindowsApps\57540AMZNMobileLLC.AmazonAlexa_2.8.315.0_neutral_split.language-ja_22t9g3sebte08 | WindowsApps\57540AMZNMobileLLC.AmazonAlexa_2.8.315.0_neutral_split.language-ja_22t9g3sebte08 | ||
行 123: | 行 200: | ||
==== 壊れた ACL の例 ==== | ==== 壊れた ACL の例 ==== | ||
- | <WRAP prewrap 100%> | + | <WRAP prewrap 100% #result> |
< | < | ||
WindowsApps\57540AMZNMobileLLC.AmazonAlexa_2.8.315.0_neutral_split.language-ja_22t9g3sebte08 | WindowsApps\57540AMZNMobileLLC.AmazonAlexa_2.8.315.0_neutral_split.language-ja_22t9g3sebte08 | ||
行 145: | 行 222: | ||
< | < | ||
> icacls " | > icacls " | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP prewrap 100% #result> | ||
+ | < | ||
C:\Program Files\WindowsApps\57540AMZNMobileLLC.AmazonAlexa_2.8.315.0_neutral_split.language-ja_22t9g3sebte08 | C:\Program Files\WindowsApps\57540AMZNMobileLLC.AmazonAlexa_2.8.315.0_neutral_split.language-ja_22t9g3sebte08 | ||
NT SERVICE\TrustedInstaller: | NT SERVICE\TrustedInstaller: | ||
行 164: | 行 245: | ||
<code powershell> | <code powershell> | ||
PS > (Get-Acl " | PS > (Get-Acl " | ||
+ | </ | ||
+ | <WRAP prewrap 100% #result> | ||
+ | < | ||
O: | O: | ||
</ | </ | ||
行 173: | 行 257: | ||
PS > cd ' | PS > cd ' | ||
PS > dir Microsoft.WindowsStore* | PS > dir Microsoft.WindowsStore* | ||
- | + | </ | |
+ | </ | ||
+ | <WRAP prewrap 100% # | ||
+ | <code powershell> | ||
Directory: C:\Program Files\WindowsApps | Directory: C:\Program Files\WindowsApps | ||
行 185: | 行 271: | ||
d---- 2020/ | d---- 2020/ | ||
d---- 2020/ | d---- 2020/ | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP prewrap 100%> | ||
+ | <code powershell> | ||
PS > icacls Microsoft.WindowsStore_12002.1001.1.0_x64__8wekyb3d8bbwe | PS > icacls Microsoft.WindowsStore_12002.1001.1.0_x64__8wekyb3d8bbwe | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP prewrap 100% #result> | ||
+ | <code powershell> | ||
Microsoft.WindowsStore_12002.1001.1.0_x64__8wekyb3d8bbwe | Microsoft.WindowsStore_12002.1001.1.0_x64__8wekyb3d8bbwe | ||
| | ||
行 207: | 行 301: | ||
1 個のファイルが正常に処理されました。0 個のファイルを処理できませんでした | 1 個のファイルが正常に処理されました。0 個のファイルを処理できませんでした | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | <WRAP prewrap 100%> | ||
+ | <code powershell> | ||
PS > icacls Microsoft.WindowsStore_12001.1001.5.0_neutral_split.scale-100_8wekyb3d8bbwe | PS > icacls Microsoft.WindowsStore_12001.1001.5.0_neutral_split.scale-100_8wekyb3d8bbwe | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP prewrap 100% #result> | ||
+ | <code powershell> | ||
Microsoft.WindowsStore_12001.1001.5.0_neutral_split.scale-100_8wekyb3d8bbwe | Microsoft.WindowsStore_12001.1001.5.0_neutral_split.scale-100_8wekyb3d8bbwe | ||
NT SERVICE\TrustedInstaller: | NT SERVICE\TrustedInstaller: | ||
行 225: | 行 328: | ||
1 個のファイルが正常に処理されました。0 個のファイルを処理できませんでした | 1 個のファイルが正常に処理されました。0 個のファイルを処理できませんでした | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP prewrap 100%> | ||
+ | <code powershell> | ||
PS > (Get-Acl Microsoft.WindowsStore_12002.1001.1.0_x64__8wekyb3d8bbwe).GetSecurityDescriptorSddlForm(' | PS > (Get-Acl Microsoft.WindowsStore_12002.1001.1.0_x64__8wekyb3d8bbwe).GetSecurityDescriptorSddlForm(' | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP prewrap 100% #result> | ||
+ | <code powershell> | ||
O: | O: | ||
(XA; | (XA; | ||
行 244: | 行 355: | ||
(A; | (A; | ||
(A; | (A; | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP prewrap 100%> | ||
+ | <code powershell> | ||
PS > (Get-Acl Microsoft.WindowsStore_12001.1001.5.0_neutral_split.scale-100_8wekyb3d8bbwe).GetSecurityDescriptorSddlForm(' | PS > (Get-Acl Microsoft.WindowsStore_12001.1001.5.0_neutral_split.scale-100_8wekyb3d8bbwe).GetSecurityDescriptorSddlForm(' | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP prewrap 100% #result> | ||
+ | <code powershell> | ||
O: | O: | ||
(A; | (A; | ||
行 263: | 行 382: | ||
</ | </ | ||
- | ==== 参考文献 ==== | + | <WRAP prewrap 100%> |
- | [[https:// | + | <code powershell> |
- | [[https:// | + | PS > (New-Object System.Security.Principal.SecurityIdentifier(' |
- | [[https:// | + | </code> |
- | + | </WRAP> | |
- | ===== dism - 展開イメージのサービスと管理 ===== | + | <WRAP prewrap 100% #result> |
- | DISM(Deployment Image Servicing and Management) -「展開イメージのサービスと管理」とは... | + | <code powershell> |
+ | MethodInvocationException: | ||
+ | </ | ||
+ | </ | ||
<WRAP prewrap 100%> | <WRAP prewrap 100%> | ||
<code powershell> | <code powershell> | ||
- | PS > dism /Online /Cleanup-image /ScanHealth | + | PS > (New-Object System.Security.Principal.SecurityIdentifier(' |
+ | </ | ||
+ | </WRAP> | ||
+ | <WRAP prewrap 100% # | ||
+ | <code powershell> | ||
+ | NT SERVICE\TrustedInstaller | ||
- | Deployment Image Servicing and Management tool | + | PS > (New-Object System.Security.Principal.SecurityIdentifier(' |
- | Version: 10.0.19559.1000 | + | APPLICATION PACKAGE AUTHORITY\制限されたすべてのアプリケーション パッケージ |
+ | </ | ||
+ | </ | ||
- | Image Version: 10.0.19559.1000 | + | ==== 参考文献 ==== |
+ | [[https://www.atmarkit.co.jp/ | ||
+ | [[https:// | ||
+ | [[https:// | ||
- | [==========================100.0%==========================] No component store corruption detected. | + | ===== 展開イメージのサービスと管理 [dism] |
- | The operation completed successfully. | + | [[windows: |
- | + | ||
- | PS > dism /Online /Cleanup-image / | + | |
- | + | ||
- | Deployment Image Servicing and Management tool | + | |
- | Version: 10.0.19559.1000 | + | |
- | + | ||
- | Image Version: 10.0.19559.1000 | + | |
- | + | ||
- | [===========================84.9%================= | + | |
- | The operation completed successfully. | + | |
- | + | ||
- | PS > sfc /ScanNow | + | |
- | + | ||
- | システム スキャンを開始しています。これにはしばらく時間がかかります。 | + | |
- | + | ||
- | システム スキャンの検証フェーズを開始しています。 | + | |
- | 検証 100% が完了しました。 | + | |
- | + | ||
- | Windows リソース保護は、整合性違反を検出しませんでした。 | + | |
- | + | ||
- | PS > Get-AppxPackage -allusers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register " | + | |
- | + | ||
- | PS > Restart-Computer | + | |
- | </ | + | |
- | </ | + | |
===== 信頼性モニターのレポート格納場所 ===== | ===== 信頼性モニターのレポート格納場所 ===== | ||
行 318: | 行 425: | ||
C: | C: | ||
</ | </ | ||
+ | |||
+ | ===== Microsoft Store が動作しない / 表示異常 ===== | ||
+ | Microsoft Store 設定やキャッシュなどのデータを初期化する。\\ | ||
+ | <code powershell> | ||
+ | $ WSReset | ||
+ | </ | ||
+ | 初期化処理が開始される。\\ | ||
+ | {{: | ||
+ | 処理が完了すると Microsoft Store が起動する。\\ | ||
+ | {{: | ||
===== 参考文献 ===== | ===== 参考文献 ===== |