windows:powershell:commands:get-acl

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
windows:powershell:commands:get-acl [2020/06/13 15:51] – [Get-Acl] ともやんwindows:powershell:commands:get-acl [2020/09/11 17:26] (現在) ともやん
行 1: 行 1:
-<html> 
-  <style> 
-    #result pre, #mincode pre { 
-      overflow: hidden; 
-      font-size: 10px; 
-    } 
-    #result_long pre { 
-      height: 250px; 
-      overflow: scroll; 
-      overflow-x: hidden; 
-      font-size: 10px; 
-    } 
-    #mintbl table { 
-      font-size: 12px; 
-    } 
-    #mintbl td pre { 
-      margin: 0; 
-    } 
-    #img_long { 
-      height: 400px; 
-      overflow: scroll; 
-      overflow-x: hidden; 
-    } 
-    .dokuwiki .plugin_wrap table { 
-      width: auto; 
-    } 
-    #logo { 
-      background-color: white; 
-      padding: 10px; 
-      width: fit-content; 
-    } 
-    #logo p { 
-      margin: 0; 
-    } 
-  </style> 
-</html> 
- 
 ====== Get-Acl ====== ====== Get-Acl ======
 ファイルやレジストリキーなどのリソースのセキュリティ記述子を取得する。\\ ファイルやレジストリキーなどのリソースのセキュリティ記述子を取得する。\\
行 129: 行 92:
  
 ===== SID のユーザー名を調べる ===== ===== SID のユーザー名を調べる =====
-PowerShell をシステムアカウントで実行する。\\+PowerShell (pwsh) をシステムアカウント (psexec -s) で実行する。\\ 
 +**psexec** は [[windows:scoop|Scoop]] で [[windows:sysinternals|Windows Sysinternals]] をインストールする。\\
 <WRAP prewrap 100%> <WRAP prewrap 100%>
 <code powershell> <code powershell>
行 183: 行 147:
 </code> </code>
 </WRAP> </WRAP>
 +<WRAP prewrap #mintbl>
 **SDDL の表記**\\ **SDDL の表記**\\
 ^  表記  ^  用途  ^ ^  表記  ^  用途  ^
行 189: 行 154:
 | D:DACLフラグ(ACE文字列1)(ACE文字列2)……(ACE文字列n)  | DACL の指定  | | D:DACLフラグ(ACE文字列1)(ACE文字列2)……(ACE文字列n)  | DACL の指定  |
 | S:SACLフラグ(ACE文字列1)(ACE文字列2)……(ACE文字列n)  | SACL の指定  | | S:SACLフラグ(ACE文字列1)(ACE文字列2)……(ACE文字列n)  | SACL の指定  |
-**Sddl:**\\+</WRAP> 
 +**SDDL:**\\ 
 +<WRAP prewrap 100% #mincode>
 <code powershell> <code powershell>
 O:S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464 O:S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464
行 197: 行 164:
 (A;;0x1200a9;;;S-1-15-3-1024-3635283841-2530182609-996808640-1887759898-3848208603-3313616867-983405619-2501854204) (A;;0x1200a9;;;S-1-15-3-1024-3635283841-2530182609-996808640-1887759898-3848208603-3313616867-983405619-2501854204)
 </code> </code>
 +</WRAP>
 [[https://www.atmarkit.co.jp/ait/articles/0603/25/news016.html|Windowsのセキュリティ設定を記述するSDDL文字列とは?:Tech TIPS - @IT]] より\\ [[https://www.atmarkit.co.jp/ait/articles/0603/25/news016.html|Windowsのセキュリティ設定を記述するSDDL文字列とは?:Tech TIPS - @IT]] より\\
  
行 213: 行 181:
 ===== 参考文献 ===== ===== 参考文献 =====
 [[https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.security/get-acl|Get-Acl - Microsoft | Docs]]\\ [[https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.security/get-acl|Get-Acl - Microsoft | Docs]]\\
 +[[https://superuser.com/questions/1288014/reset-default-acls-for-c-program-files-windowsapps|windows - Reset default ACLs for C:\Program Files\WindowsApps - Super User]]\\
  
  • windows/powershell/commands/get-acl.1592031080.txt.gz
  • 最終更新: 2020/06/13 15:51
  • by ともやん