Get-SharesAndPermissions
This module Get-SharesAndPermissions.psm1 exposes the following functions:
- Get-SharePermissions
- Get-Shares
- Get-PermissionsPerShare
- Get-NtfsPermissionsPerShare
Syntax Get-SharePermissions
Get-SharePermissions [[-computername] <String[]>] [-sharename] <String> [[-FailedLog] <String>] [<CommonParameters>
Example
Get-SharePermissions -computername $computer -sharename 'Logfiles$'
Syntax Get-Shares
Get-Shares [[-ComputerName] <String>] [<CommonParameters>]
Example
Get-Shares $computer
Syntax Get-PermissionsPerShare
Get-PermissionsPerShare [[-computername] <String[]>] [<CommonParameters>]
Example
Get-Content c:\temp\servers.txt | Get-PermissionsPerShare | Export-CSV MyResults.csv -NoTypeInformation -UseCulture
Syntax Get-NtfsPermissionsPerShare
Get-NtfsPermissionsPerShare [[-computername] <String[]>] [<CommonParameters>]
Example
Get-Content c:\temp\servers.txt | Get-NtfsPermissionsPerShare | Export-CSV MyResults.csv -NoTypeInformation -UseCulture