Forum Discussion
dannytveria
May 19, 2021Brass Contributor
Share & NTFS permissions export
Hi, I need to export a report from my file server for all the share & NTFS permissions to csv file. I found the next script: $FolderPath = dir -Directory -Path "#Requested Folder path" -Recurse -F...
dannytveria
May 20, 2021Brass Contributor
Hi Josh,
if you can help me, I need Share & NTFS permissions for specific folders.
I didn`t understand your script
if you can help me, I need Share & NTFS permissions for specific folders.
I didn`t understand your script
Josh977
May 20, 2021Copper Contributor
Share permissions are a function of the SMB share which is a separate entity to windows. Even though a folder's properties page has a "sharing tab," all it does is allow you to create SMB entities connected to a particular folder.
Thus you need to use the other CmdLts to access SMB shares.
Get-SMBShare allows you to get all smb shares on a computer.
Get-SMBShareAccess get's you the share permissions for each share.
New-CimSession/Remove-Cimsession is used in case you want to get the data from a remove server.
- dannytveriaMay 23, 2021Brass Contributor
Also when I run my script, I got an error that I attached.
I running the script with Domain Administrator.
ā
- dannytveriaMay 21, 2021Brass ContributorSo how I combine the NTFS & Share permissions to one CSV file?