Export-PermissionPortable

0.0.238

Present complex nested permissions and group memberships in a report that is easy to read
Provide additional information about each account such as Name, Department, Title
Multithreaded with caching for fast results
Works as a scheduled task
Works as a custom sensor script for Paessler PRTG Network Monitor (Push sensor recommended due to execution time)

Supports:
- L
Present complex nested permissions and group memberships in a report that is easy to read
Provide additional information about each account such as Name, Department, Title
Multithreaded with caching for fast results
Works as a scheduled task
Works as a custom sensor script for Paessler PRTG Network Monitor (Push sensor recommended due to execution time)

Supports:
- Local folder paths
- UNC folder paths
- DFS folder paths
- Mapped network drives
- Active Directory domain trusts
- Unresolved SIDs for deleted accounts
- Group memberships via the Primary Group as well as the memberOf property

Does not support these scenarios:
- ACL Owners or Groups (ToDo enhancement; for now only the DACL is reported)
- File permissions (ToDo enhancement; for now only folder permissions are reported)
- Share permissions (ToDo enhancement; for now only NTFS permissions are reported)

Behavior:
- Resolves each path in the TargetPath parameter
 - Local paths become UNC paths using the administrative shares, so the computer name is shown in reports
 - DFS paths become all of their UNC folder targets, including disabled ones
 - Mapped network drives become their UNC paths
- Gets all permissions for the resolved paths
- Gets non-inherited permissions for subfolders (if specified)
- Exports the permissions to a .csv file
- Uses ADSI to get information about the accounts and groups listed in the permissions
- Exports information about the accounts and groups to a .csv file
- Uses ADSI to recursively retrieve group members
 - Retrieves group members using both the memberOf and primaryGroupId attributes
 - Members of nested groups are retrieved as members of the group listed in the permissions.
     - Their hierarchy of nested group memberships is not retrieved (for performance reasons).
- Exports information about all accounts with access to a .csv file
- Exports information about all accounts with access to a report generated as a .html file
- Outputs an XML-formatted list of common misconfigurations for use in Paessler PRTG Network Monitor as a custom XML sensor
Show more

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name Export-PermissionPortable -RequiredVersion 0.0.238

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) Jeremy La Camera. All rights reserved.

Package Details

Author(s)

  • Jeremy La Camera

Tags

adsi ldap winnt ntfs acl

Functions

FakeDirectoryEntry RefreshCache Invoke Add-DomainFqdnToLdapPath Add-SidInfo ConvertFrom-DirectoryEntry ConvertFrom-IdentityReferenceResolved ConvertFrom-PropertyValueCollectionToString ConvertFrom-ResultPropertyValueCollectionToString ConvertFrom-SearchResult ConvertFrom-SidString ConvertTo-DecStringRepresentation ConvertTo-DistinguishedName ConvertTo-DomainNetBIOS ConvertTo-DomainSidString ConvertTo-Fqdn ConvertTo-HexStringRepresentation ConvertTo-HexStringRepresentationForLDAPFilterString ConvertTo-SidByteArray Expand-AdsiGroupMember Expand-WinNTGroupMember Find-AdsiProvider Find-LocalAdsiServerSid Get-AdsiGroup Get-AdsiGroupMember Get-AdsiServer Get-CurrentDomain Get-DirectoryEntry Get-ParentDomainDnsName Get-TrustedDomain Get-WinNTGroupMember Invoke-ComObject New-FakeDirectoryEntry Resolve-IdentityReference Search-Directory Format-PrtgXmlResult Format-PrtgXmlSensorOutput Send-PrtgXmlSensorOutput GetDirectories ConvertTo-SimpleProperty Expand-AccountPermission Expand-Acl Find-ServerNameInPath Format-SecurityPrincipal Format-SecurityPrincipalMember Format-SecurityPrincipalMemberUser Format-SecurityPrincipalName Format-SecurityPrincipalUser Get-DirectorySecurity Get-FileSystemAccessRule Get-OwnerAce Get-ServerFromFilePath Get-Subfolder New-NtfsAclIssueReport ConvertTo-DnsFqdn Get-CurrentHostName Get-CurrentWhoAmI New-DatedSubfolder Write-LogMsg Add-PsCommand Add-PsModule Convert-FromPsCommandInfoToString Expand-PsCommandInfo Expand-PsToken Get-PsCommandInfo Open-Thread Split-Thread Wait-Thread Get-DfsNetInfo Get-FileShareInfo Get-NetDfsEnum ConvertTo-BootstrapJavaScriptTable ConvertTo-BootstrapListGroup ConvertTo-BootstrapTableScript ConvertTo-HtmlList Get-BootstrapTemplate Get-JavaScript New-BootstrapAlert New-BootstrapColumn New-BootstrapDiv New-BootstrapDivWithHeading New-BootstrapGrid New-BootstrapList New-BootstrapPanel New-BootstrapReport New-BootstrapTable New-HtmlAnchor New-HtmlHeading New-HtmlParagraph Add-CacheItem ConvertTo-ItemBlock Expand-AccountPermissionReference Expand-ItemPermissionReference Expand-PermissionTarget Export-FolderPermissionHtml Export-RawPermissionCsv Export-ResolvedPermissionCsv Find-ResolvedIDsWithAccess Format-FolderPermission Format-TimeSpan Get-CachedCimInstance Get-CachedCimSession Get-FolderAcl Get-FolderColumnJson Get-FolderPermissionsBlock Get-FolderPermissionTableHeader Get-FolderTableHeader Get-HtmlBody Get-HtmlReportFooter Get-PermissionPrincipal Get-PrtgXmlSensorOutput Get-ReportDescription Get-TimeZoneName Get-UniqueServerFqdn Group-AccountPermissionReference Group-ItemPermissionReference Initialize-Cache Invoke-PermissionCommand Remove-CachedCimSession Resolve-AccessControlList Resolve-Ace Resolve-Acl Resolve-Folder Resolve-IdentityReferenceDomainDNS Resolve-PermissionTarget Select-FolderPermissionTableProperty Select-ItemTableProperty Select-UniquePrincipal

Dependencies

This script has no dependencies.

Release Notes

bugfix access rights and scope in report

FileList

Version History

Version Downloads Last updated
0.0.262 10 4/8/2024
0.0.261 3 4/7/2024
0.0.260 3 4/7/2024
0.0.249 3 4/7/2024
0.0.248 3 4/7/2024
0.0.247 3 4/7/2024
0.0.238 (current version) 9 2/19/2024
0.0.234 7 2/10/2024
0.0.233 9 2/5/2024
0.0.232 6 2/5/2024
0.0.231 6 2/5/2024
0.0.230 6 2/5/2024
0.0.229 6 2/5/2024
0.0.228 6 2/5/2024
0.0.227 6 2/5/2024
0.0.226 6 2/5/2024
0.0.225 7 2/5/2024
0.0.224 6 2/4/2024
0.0.223 6 2/4/2024
0.0.222 6 2/4/2024
0.0.221 7 2/4/2024
0.0.220 6 2/3/2024
0.0.219 6 2/3/2024
0.0.218 7 1/31/2024
0.0.217 6 1/31/2024
0.0.216 5 1/31/2024
0.0.215 5 1/31/2024
0.0.214 9 1/29/2024
0.0.213 6 1/29/2024
0.0.212 5 1/29/2024
0.0.211 6 1/29/2024
0.0.210 6 1/29/2024
0.0.209 6 1/29/2024
0.0.208 6 1/28/2024
0.0.207 6 1/28/2024
0.0.204 6 1/27/2024
0.0.203 5 1/27/2024
0.0.202 5 1/27/2024
0.0.201 5 1/27/2024
0.0.198 5 1/27/2024
0.0.197 5 1/27/2024
0.0.196 6 1/27/2024
0.0.195 7 1/21/2024
0.0.194 5 1/21/2024
0.0.193 5 1/21/2024
0.0.192 5 1/21/2024
0.0.191 5 1/21/2024
0.0.190 5 1/21/2024
0.0.189 6 1/20/2024
0.0.188 6 1/20/2024
0.0.187 6 1/20/2024
0.0.186 7 1/16/2024
0.0.185 5 1/16/2024
0.0.184 6 1/16/2024
0.0.183 6 1/16/2024
0.0.182 6 1/16/2024
0.0.181 6 1/16/2024
0.0.180 6 1/16/2024
0.0.179 6 1/15/2024
0.0.178 6 1/15/2024
0.0.177 6 1/15/2024
0.0.176 5 1/15/2024
0.0.175 7 1/14/2024
0.0.174 6 1/14/2024
0.0.173 6 1/14/2024
0.0.172 6 1/14/2024
0.0.171 6 1/14/2024
0.0.168 6 1/14/2024
0.0.167 6 1/14/2024
0.0.166 6 1/13/2024
0.0.165 6 1/13/2024
0.0.163 80 10/16/2022
0.0.162 23 9/6/2022
0.0.161 14 9/6/2022
0.0.160 14 9/6/2022
0.0.159 15 9/4/2022
0.0.158 14 9/4/2022
0.0.157 14 9/4/2022
0.0.156 14 9/3/2022
0.0.155 14 9/3/2022
0.0.154 14 9/1/2022
0.0.153 15 8/28/2022
0.0.152 14 8/28/2022
0.0.151 14 8/28/2022
0.0.150 14 8/28/2022
0.0.149 13 8/28/2022
0.0.148 13 8/28/2022
0.0.147 14 8/28/2022
0.0.146 14 8/27/2022
0.0.145 14 8/27/2022
0.0.144 13 8/26/2022
0.0.143 14 8/25/2022
0.0.142 14 8/25/2022
0.0.141 16 8/25/2022
0.0.140 15 8/22/2022
0.0.139 15 8/22/2022
0.0.138 14 8/22/2022
0.0.137 14 8/21/2022
0.0.136 13 8/21/2022
0.0.135 15 8/20/2022
0.0.134 13 8/20/2022
0.0.133 15 8/20/2022
0.0.132 14 8/20/2022
0.0.131 14 8/20/2022
0.0.130 13 8/20/2022
0.0.129 13 8/20/2022
0.0.128 14 8/20/2022
0.0.127 13 8/20/2022
0.0.126 14 8/20/2022
0.0.125 14 8/20/2022
0.0.124 14 8/19/2022
0.0.123 13 8/19/2022
0.0.122 14 8/19/2022
0.0.121 15 8/18/2022
0.0.120 21 8/15/2022
0.0.119 14 8/14/2022
0.0.118 14 8/14/2022
0.0.117 18 8/7/2022
0.0.116 15 8/6/2022
0.0.115 16 8/6/2022
0.0.114 15 8/6/2022
0.0.113 14 8/6/2022
0.0.112 16 8/1/2022
0.0.111 14 8/1/2022
0.0.110 16 8/1/2022
0.0.109 15 8/1/2022
0.0.108 14 8/1/2022
0.0.107 15 8/1/2022
0.0.106 15 8/1/2022
0.0.105 16 8/1/2022
0.0.104 14 8/1/2022
0.0.103 15 8/1/2022
0.0.97 16 8/1/2022
0.0.96 15 8/1/2022
0.0.95 15 8/1/2022
0.0.94 15 7/31/2022
0.0.93 17 7/31/2022
0.0.92 16 7/31/2022
0.0.91 15 7/31/2022
0.0.90 17 7/27/2022
0.0.89 16 7/27/2022
0.0.88 16 7/27/2022
0.0.87 17 7/27/2022
Show less