Added scripts
This commit is contained in:
11
PowerShell/List file access.ps1
Normal file
11
PowerShell/List file access.ps1
Normal file
@@ -0,0 +1,11 @@
|
||||
get-Acl -Path C:\users\* | out-gridview
|
||||
|
||||
$FolderPath = Get-ChildItem -Directory -Path "C:\users\*"
|
||||
|
||||
ForEach ($Folder in $FolderPath) {
|
||||
$Acl = Get-Acl -Path $Folder.FullName
|
||||
ForEach ($Access in $Acl.Access) {
|
||||
$Properties = [ordered]@{'Folder Name'=$Folder.FullName;'Group/User'=$Access.IdentityReference;'Permissions'=$Access.FileSystemRights;'Inherited'=$Access.IsInherited}
|
||||
New-Object -TypeName PSObject -Property $Properties
|
||||
Out-GridView }
|
||||
}
|
||||
Reference in New Issue
Block a user