差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン 次のリビジョン両方とも次のリビジョン | ||
windows:windows_repair [2020/02/15 12:41] – [xcopy コマンドを使った方法(完全な ACL に戻る!)] ともやん | windows:windows_repair [2020/03/24 06:16] – [dism - 展開イメージのサービスと管理] ともやん | ||
---|---|---|---|
行 1: | 行 1: | ||
+ | < | ||
+ | < | ||
+ | #result pre { | ||
+ | height: 300px; | ||
+ | overflow: scroll; | ||
+ | overflow-x: hidden; | ||
+ | font-size: 12px; | ||
+ | } | ||
+ | </ | ||
+ | </ | ||
====== Windows 10 の修復 ====== | ====== Windows 10 の修復 ====== | ||
**注意!** この情報は未整理です。随時まとめていきます。\\ | **注意!** この情報は未整理です。随時まとめていきます。\\ | ||
行 15: | 行 25: | ||
Windows のスタートメニューが開かない、Microsoft Store や Microsoft Edge も起動しないなどの症状が発生している場合、これらは何れも UWP アプリケーションとして実装されているため、UWP アプリケーションの実行環境に異常が発生していることが原因であると考えられる。\\ | Windows のスタートメニューが開かない、Microsoft Store や Microsoft Edge も起動しないなどの症状が発生している場合、これらは何れも UWP アプリケーションとして実装されているため、UWP アプリケーションの実行環境に異常が発生していることが原因であると考えられる。\\ | ||
\\ | \\ | ||
- | 以下の手順は、Shift+再起動から「トラブルシューティング」を選択して、「コマンドプロンプト」から実行します。\\ | + | 以下の手順は、**Shift + 再起動** から「トラブルシューティング」を選択して、「コマンドプロンプト」から実行します。\\ |
+ | または、コマンドプロンプトを管理者実行して、以下のコマンドを実行し「トラブルシューティング」を選択して、「コマンドプロンプト」から実行します。\\ | ||
+ | < | ||
+ | > reagentc /boottore | ||
+ | </ | ||
+ | or\\ | ||
+ | < | ||
+ | > shutdown /r /o /t 0 | ||
+ | </ | ||
\\ | \\ | ||
- | ==== xcopy コマンドを使った方法(完全な ACL に戻る!) ==== | + | ==== xcopy コマンドを使った方法(まだ完全な ACL ではないかも...) ==== |
+ | <WRAP prewrap 100%> | ||
< | < | ||
> xcopy " | > xcopy " | ||
行 28: | 行 47: | ||
> shutdown /r /t 0 | > shutdown /r /t 0 | ||
</ | </ | ||
+ | </ | ||
+ | |||
+ | <WRAP prewrap 100%> | ||
<code batch reset_acl_winapps.cmd> | <code batch reset_acl_winapps.cmd> | ||
xcopy " | xcopy " | ||
行 36: | 行 58: | ||
attrib -a +h " | attrib -a +h " | ||
</ | </ | ||
+ | </ | ||
+ | |||
==== icacls コマンドを使った方法(完全には戻らない...) ==== | ==== icacls コマンドを使った方法(完全には戻らない...) ==== | ||
**icacls** コマンドで **WindowsApps** フォルダの ACL をリセットして PC を再起動する。\\ | **icacls** コマンドで **WindowsApps** フォルダの ACL をリセットして PC を再起動する。\\ | ||
< | < | ||
> icacls " | > icacls " | ||
- | > shutdown /r /t 0 | + | > D: |
</ | </ | ||
**icacls コマンドラインオプション**\\ | **icacls コマンドラインオプション**\\ | ||
行 59: | 行 83: | ||
==== C:\Program Files\WindowsApps の正常なアクセス権の状態 ==== | ==== C:\Program Files\WindowsApps の正常なアクセス権の状態 ==== | ||
+ | <WRAP prewrap 100%> | ||
< | < | ||
> icacls " | > icacls " | ||
行 75: | 行 100: | ||
1 個のファイルが正常に処理されました。0 個のファイルを処理できませんでした | 1 個のファイルが正常に処理されました。0 個のファイルを処理できませんでした | ||
</ | </ | ||
+ | </ | ||
ACL の保存。\\ | ACL の保存。\\ | ||
行 85: | 行 111: | ||
==== 正常な ACL の例 ==== | ==== 正常な ACL の例 ==== | ||
icacls /save の出力(見やすいように改行)\\ | icacls /save の出力(見やすいように改行)\\ | ||
+ | <WRAP prewrap 100%> | ||
< | < | ||
WindowsApps\57540AMZNMobileLLC.AmazonAlexa_2.8.315.0_neutral_split.language-ja_22t9g3sebte08 | WindowsApps\57540AMZNMobileLLC.AmazonAlexa_2.8.315.0_neutral_split.language-ja_22t9g3sebte08 | ||
行 103: | 行 130: | ||
S:AI | S:AI | ||
</ | </ | ||
+ | </ | ||
==== 壊れた ACL の例 ==== | ==== 壊れた ACL の例 ==== | ||
+ | <WRAP prewrap 100%> | ||
< | < | ||
WindowsApps\57540AMZNMobileLLC.AmazonAlexa_2.8.315.0_neutral_split.language-ja_22t9g3sebte08 | WindowsApps\57540AMZNMobileLLC.AmazonAlexa_2.8.315.0_neutral_split.language-ja_22t9g3sebte08 | ||
行 120: | 行 149: | ||
S: | S: | ||
</ | </ | ||
+ | </ | ||
+ | |||
icacls の出力\\ | icacls の出力\\ | ||
+ | <WRAP prewrap 100%> | ||
< | < | ||
> icacls " | > icacls " | ||
行 136: | 行 168: | ||
1 個のファイルが正常に処理されました。0 個のファイルを処理できませんでした | 1 個のファイルが正常に処理されました。0 個のファイルを処理できませんでした | ||
</ | </ | ||
+ | </ | ||
+ | |||
PowerShell の Get-acl による SDDL 出力\\ | PowerShell の Get-acl による SDDL 出力\\ | ||
<WRAP prewrap 100%> | <WRAP prewrap 100%> | ||
行 141: | 行 175: | ||
PS > (Get-Acl " | PS > (Get-Acl " | ||
O: | O: | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ==== Microsoft Store アプリの ACL ==== | ||
+ | <WRAP prewrap 100%> | ||
+ | <code powershell> | ||
+ | PS > cd ' | ||
+ | PS > dir Microsoft.WindowsStore* | ||
+ | |||
+ | |||
+ | Directory: C:\Program Files\WindowsApps | ||
+ | |||
+ | Mode | ||
+ | ---- | ||
+ | d---- 2020/ | ||
+ | d---- 2020/ | ||
+ | d---- 2020/ | ||
+ | d---- 2020/ | ||
+ | d---- 2020/ | ||
+ | d---- 2020/ | ||
+ | |||
+ | PS > icacls Microsoft.WindowsStore_12002.1001.1.0_x64__8wekyb3d8bbwe | ||
+ | Microsoft.WindowsStore_12002.1001.1.0_x64__8wekyb3d8bbwe | ||
+ | | ||
+ | | ||
+ | | ||
+ | NT SERVICE\TrustedInstaller: | ||
+ | NT SERVICE\TrustedInstaller: | ||
+ | NT AUTHORITY\SYSTEM: | ||
+ | NT AUTHORITY\SYSTEM: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | 1 個のファイルが正常に処理されました。0 個のファイルを処理できませんでした | ||
+ | PS > icacls 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: | ||
+ | NT AUTHORITY\SYSTEM: | ||
+ | NT AUTHORITY\SYSTEM: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | 1 個のファイルが正常に処理されました。0 個のファイルを処理できませんでした | ||
+ | |||
+ | PS > (Get-Acl Microsoft.WindowsStore_12002.1001.1.0_x64__8wekyb3d8bbwe).GetSecurityDescriptorSddlForm(' | ||
+ | O: | ||
+ | (XA; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | |||
+ | PS > (Get-Acl Microsoft.WindowsStore_12001.1001.5.0_neutral_split.scale-100_8wekyb3d8bbwe).GetSecurityDescriptorSddlForm(' | ||
+ | O: | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | (A; | ||
+ | |||
+ | PS > (New-Object System.Security.Principal.SecurityIdentifier(' | ||
+ | MethodInvocationException: | ||
+ | |||
+ | PS > (New-Object System.Security.Principal.SecurityIdentifier(' | ||
+ | NT SERVICE\TrustedInstaller | ||
+ | |||
+ | PS > (New-Object System.Security.Principal.SecurityIdentifier(' | ||
+ | APPLICATION PACKAGE AUTHORITY\制限されたすべてのアプリケーション パッケージ | ||
</ | </ | ||
</ | </ | ||
行 152: | 行 290: | ||
DISM(Deployment Image Servicing and Management) -「展開イメージのサービスと管理」とは... | DISM(Deployment Image Servicing and Management) -「展開イメージのサービスと管理」とは... | ||
+ | <WRAP prewrap 100%> | ||
<code powershell> | <code powershell> | ||
PS > dism /Online / | PS > dism /Online / | ||
行 182: | 行 321: | ||
Windows リソース保護は、整合性違反を検出しませんでした。 | Windows リソース保護は、整合性違反を検出しませんでした。 | ||
- | PS > Get-AppxPackage -allusers | + | PS > Get-AppxPackage -AllUsers |
PS > Restart-Computer | PS > Restart-Computer | ||
</ | </ | ||
+ | </ | ||
===== 信頼性モニターのレポート格納場所 ===== | ===== 信頼性モニターのレポート格納場所 ===== | ||
行 201: | 行 341: | ||
[[https:// | [[https:// | ||
[[https:// | [[https:// | ||
+ | [[https:// | ||