差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン 次のリビジョン両方とも次のリビジョン | ||
windows:windows_repair [2020/02/15 12:39] – ともやん | windows:windows_repair [2020/09/19 10:55] – ともやん | ||
---|---|---|---|
行 1: | 行 1: | ||
====== Windows 10 の修復 ====== | ====== Windows 10 の修復 ====== | ||
**注意!** この情報は未整理です。随時まとめていきます。\\ | **注意!** この情報は未整理です。随時まとめていきます。\\ | ||
+ | |||
+ | ===== システム統合の確認と修復 [sfc] ===== | ||
===== UWP アプリケーションのインストールパス ===== | ===== UWP アプリケーションのインストールパス ===== | ||
行 15: | 行 17: | ||
Windows のスタートメニューが開かない、Microsoft Store や Microsoft Edge も起動しないなどの症状が発生している場合、これらは何れも UWP アプリケーションとして実装されているため、UWP アプリケーションの実行環境に異常が発生していることが原因であると考えられる。\\ | Windows のスタートメニューが開かない、Microsoft Store や Microsoft Edge も起動しないなどの症状が発生している場合、これらは何れも UWP アプリケーションとして実装されているため、UWP アプリケーションの実行環境に異常が発生していることが原因であると考えられる。\\ | ||
\\ | \\ | ||
- | 以下の手順は、Shift+再起動から「トラブルシューティング」を選択して、「コマンドプロンプト」から実行します。\\ | + | 以下の手順は、**Shift + 再起動** から「トラブルシューティング」を選択して、「コマンドプロンプト」から実行します。\\ |
- | \\ | + | または、コマンドプロンプトを管理者実行して、以下のコマンドを実行し「トラブルシューティング」を選択して、「コマンドプロンプト」から実行します。\\ |
+ | <WRAP group> | ||
- | ==== xcopy コマンドを使った方法(完全な ACL に戻る!) ==== | + | <WRAP left column> |
- | < | + | <code dos> |
+ | > reagentc /boottore | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | <WRAP left column> | ||
+ | <WRAP # | ||
+ | </ | ||
+ | |||
+ | <WRAP left column> | ||
+ | <code dos> | ||
+ | > shutdown /r /o /t 0 | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | |||
+ | ==== xcopy コマンドを使った方法(まだ完全な ACL ではないかも...) ==== | ||
+ | <WRAP prewrap 100%> | ||
+ | < | ||
> xcopy " | > xcopy " | ||
> attrib -h " | > attrib -h " | ||
行 28: | 行 50: | ||
> shutdown /r /t 0 | > shutdown /r /t 0 | ||
</ | </ | ||
+ | </ | ||
+ | |||
+ | <WRAP prewrap 100%> | ||
+ | <code batch reset_acl_winapps.cmd> | ||
+ | xcopy " | ||
+ | attrib -h " | ||
+ | ren " | ||
+ | attrib -h " | ||
+ | ren " | ||
+ | attrib -a +h " | ||
+ | </ | ||
+ | </ | ||
==== icacls コマンドを使った方法(完全には戻らない...) ==== | ==== icacls コマンドを使った方法(完全には戻らない...) ==== | ||
行 33: | 行 67: | ||
< | < | ||
> icacls " | > icacls " | ||
- | > shutdown /r /t 0 | + | > D: |
</ | </ | ||
**icacls コマンドラインオプション**\\ | **icacls コマンドラインオプション**\\ | ||
行 52: | 行 86: | ||
==== C:\Program Files\WindowsApps の正常なアクセス権の状態 ==== | ==== C:\Program Files\WindowsApps の正常なアクセス権の状態 ==== | ||
+ | <WRAP prewrap 100%> | ||
< | < | ||
> 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: | ||
行 68: | 行 106: | ||
1 個のファイルが正常に処理されました。0 個のファイルを処理できませんでした | 1 個のファイルが正常に処理されました。0 個のファイルを処理できませんでした | ||
</ | </ | ||
+ | </ | ||
ACL の保存。\\ | ACL の保存。\\ | ||
行 78: | 行 117: | ||
==== 正常な ACL の例 ==== | ==== 正常な ACL の例 ==== | ||
icacls /save の出力(見やすいように改行)\\ | icacls /save の出力(見やすいように改行)\\ | ||
+ | <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 | ||
行 96: | 行 136: | ||
S:AI | S:AI | ||
</ | </ | ||
+ | </ | ||
==== 壊れた ACL の例 ==== | ==== 壊れた ACL の例 ==== | ||
+ | <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 | ||
行 113: | 行 155: | ||
S: | S: | ||
</ | </ | ||
+ | </ | ||
+ | |||
icacls の出力\\ | icacls の出力\\ | ||
+ | <WRAP prewrap 100%> | ||
< | < | ||
> 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: | ||
行 129: | 行 178: | ||
1 個のファイルが正常に処理されました。0 個のファイルを処理できませんでした | 1 個のファイルが正常に処理されました。0 個のファイルを処理できませんでした | ||
</ | </ | ||
+ | </ | ||
+ | |||
PowerShell の Get-acl による SDDL 出力\\ | PowerShell の Get-acl による SDDL 出力\\ | ||
<WRAP prewrap 100%> | <WRAP prewrap 100%> | ||
<code powershell> | <code powershell> | ||
PS > (Get-Acl " | PS > (Get-Acl " | ||
+ | </ | ||
+ | <WRAP prewrap 100% #result> | ||
+ | < | ||
O: | O: | ||
</ | </ | ||
</ | </ | ||
- | ==== 参考文献 | + | ==== Microsoft Store アプリの ACL ==== |
- | [[https:// | + | <WRAP prewrap 100%> |
- | [[https:// | + | <code powershell> |
- | [[https:// | + | PS > cd 'C:\Program Files\WindowsApps\' |
+ | PS > dir Microsoft.WindowsStore* | ||
+ | </code> | ||
+ | </WRAP> | ||
+ | <WRAP prewrap 100% # | ||
+ | < | ||
+ | | ||
- | ===== dism - 展開イメージのサービスと管理 ===== | + | Mode |
- | DISM(Deployment Image Servicing and Management) | + | ---- |
+ | d---- 2020/ | ||
+ | d---- 2020/ | ||
+ | d---- 2020/ | ||
+ | d---- 2020/ | ||
+ | d---- 2020/ | ||
+ | d---- 2020/ | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP prewrap 100%> | ||
<code powershell> | <code powershell> | ||
- | PS > dism /Online | + | PS > icacls Microsoft.WindowsStore_12002.1001.1.0_x64__8wekyb3d8bbwe |
+ | </code> | ||
+ | </WRAP> | ||
+ | <WRAP prewrap 100% # | ||
+ | <code powershell> | ||
+ | Microsoft.WindowsStore_12002.1001.1.0_x64__8wekyb3d8bbwe | ||
+ | | ||
+ | S-1-15-3-1609473798-1231923017-684268153-4268514328-882773646-2760585773-1760938157: | ||
+ | | ||
+ | NT SERVICE\TrustedInstaller: | ||
+ | NT SERVICE\TrustedInstaller: | ||
+ | NT AUTHORITY\SYSTEM: | ||
+ | NT AUTHORITY\SYSTEM: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
- | Deployment Image Servicing and Management tool | + | 1 個のファイルが正常に処理されました。0 個のファイルを処理できませんでした |
- | Version: 10.0.19559.1000 | + | </ |
+ | </ | ||
- | Image Version: 10.0.19559.1000 | + | <WRAP prewrap 100%> |
+ | <code powershell> | ||
+ | PS > icacls Microsoft.WindowsStore_12001.1001.5.0_neutral_split.scale-100_8wekyb3d8bbwe | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP prewrap 100% # | ||
+ | <code powershell> | ||
+ | Microsoft.WindowsStore_12001.1001.5.0_neutral_split.scale-100_8wekyb3d8bbwe | ||
+ | NT SERVICE\TrustedInstaller: | ||
+ | NT SERVICE\TrustedInstaller: | ||
+ | NT AUTHORITY\SYSTEM: | ||
+ | NT AUTHORITY\SYSTEM: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
- | [==========================100.0%==========================] No component store corruption detected. | + | 1 個のファイルが正常に処理されました。0 個のファイルを処理できませんでした |
- | The operation completed successfully. | + | </ |
+ | </ | ||
- | PS > dism /Online | + | <WRAP prewrap 100%> |
+ | <code powershell> | ||
+ | PS > (Get-Acl Microsoft.WindowsStore_12002.1001.1.0_x64__8wekyb3d8bbwe).GetSecurityDescriptorSddlForm(' | ||
+ | </code> | ||
+ | </WRAP> | ||
+ | <WRAP prewrap 100% # | ||
+ | <code powershell> | ||
+ | O: | ||
+ | (XA; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | </code> | ||
+ | </ | ||
- | Deployment Image Servicing and Management tool | + | <WRAP prewrap 100%> |
- | Version: 10.0.19559.1000 | + | <code powershell> |
+ | PS > (Get-Acl Microsoft.WindowsStore_12001.1001.5.0_neutral_split.scale-100_8wekyb3d8bbwe).GetSecurityDescriptorSddlForm(' | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP prewrap 100% # | ||
+ | <code powershell> | ||
+ | O: | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | </ | ||
+ | </ | ||
- | Image Version: 10.0.19559.1000 | + | <WRAP prewrap 100%> |
+ | <code powershell> | ||
+ | PS > (New-Object System.Security.Principal.SecurityIdentifier(' | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP prewrap 100% # | ||
+ | <code powershell> | ||
+ | MethodInvocationException: | ||
+ | </ | ||
+ | </ | ||
- | [===========================84.9%================= | + | <WRAP prewrap 100%> |
- | The operation completed successfully. | + | <code powershell> |
+ | PS > (New-Object System.Security.Principal.SecurityIdentifier(' | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP prewrap 100% # | ||
+ | <code powershell> | ||
+ | NT SERVICE\TrustedInstaller | ||
- | PS > sfc /ScanNow | + | PS > (New-Object System.Security.Principal.SecurityIdentifier(' |
+ | APPLICATION PACKAGE AUTHORITY\制限されたすべてのアプリケーション パッケージ | ||
+ | </code> | ||
+ | </ | ||
- | システム スキャンを開始しています。これにはしばらく時間がかかります。 | + | ==== 参考文献 ==== |
- | + | [[https:// | |
- | システム スキャンの検証フェーズを開始しています。 | + | [[https:// |
- | 検証 100% が完了しました。 | + | [[https:// |
- | Windows リソース保護は、整合性違反を検出しませんでした。 | + | ===== 展開イメージのサービスと管理 [dism] ===== |
- | + | [[windows: | |
- | PS > Get-AppxPackage -allusers | + | |
- | + | ||
- | PS > Restart-Computer | + | |
- | </ | + | |
===== 信頼性モニターのレポート格納場所 ===== | ===== 信頼性モニターのレポート格納場所 ===== | ||
行 190: | 行 364: | ||
C: | C: | ||
</ | </ | ||
+ | |||
+ | ===== Microsoft Store が動作しない / 表示異常 ===== | ||
+ | Microsoft Store 設定やキャッシュなどのデータを初期化する。\\ | ||
+ | <code powershell> | ||
+ | $ WSReset | ||
+ | </ | ||
+ | 初期化処理が開始される。\\ | ||
+ | {{: | ||
+ | 処理が完了すると Microsoft Store が起動する。\\ | ||
+ | {{: | ||
===== 参考文献 ===== | ===== 参考文献 ===== | ||
[[https:// | [[https:// | ||
[[https:// | [[https:// | ||
+ | [[https:// | ||