LoginSignup
2
2

More than 5 years have passed since last update.

NTFSのファイルやフォルダーに設定されているアクセス権の一覧をPowerShellで取得する

Posted at

PowerShellコマンド

$path = "C:\My\Projects\"
(Get-Item $path).GetAccessControl().Access | Select-Object FileSystemRights, AccessControlType, IdentityReference

実行結果の例

           FileSystemRights AccessControlType IdentityReference
           ---------------- ----------------- -----------------
                FullControl             Allow BUILTIN\Administrators
                FullControl             Allow NT AUTHORITY\SYSTEM
ReadAndExecute, Synchronize             Allow BUILTIN\Users
        Modify, Synchronize             Allow NT AUTHORITY\Authenticated Users
                 -536805376             Allow NT AUTHORITY\Authenticated Users
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2