Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Wednesday, June 26, 2013 4:50 PM
I would like a script or tool which can create a list of server shares, along with the relevant NTFS permissions on the directory structure and exports to either a .txt or .csv. Full group and member names would be nice.
Any ideas? Thanks.
All replies (7)
Wednesday, June 26, 2013 6:31 PM ✅Answered | 1 vote
Hi,
http://support.microsoft.com/kb/125996?wa=wsignin1.0
You could export the Shares with the Share Permissions via registry.
If thats not enough here is a PS Script http://gallery.technet.microsoft.com/scriptcenter/List-Share-Permissions-83f8c419
what´s the goal you like to reach?
kind regards,
Philipp Halbedel
MCP 2003,MCITP EA Server 2008,MCITP EA Windows 7,MCSA2008,MCSA2012
Meine Antwort war hilfreich? ich freu mich über eine Bewertung. If my answer was helpful, I'm glad about a rating!
I do not represent the organisation I work for, all the opinions expressed here are my own.
Thursday, June 27, 2013 11:45 AM ✅Answered | 1 vote
did you see the syntax?
Get-Content 'computerlist.txt' | .\Get-SharePermissions | Out-File 'SharePermissions.txt'
<p><strong>Philipp </strong>Halbedel</p> <p><span style="font-size:8px">MCP 2003,MCITP EA Server 2008,</span><span style="font-size:8px">MCITP EA Windows 7</span><span style="font-size:8px">,MCSA2008,MCSA2012 </span></p> <p>Meine Antwort war hilfreich? ich freu mich über eine Bewertung. If my answer was helpful, I'm glad about a rating! </p> <p><strong>I do not represent the organisation I work for, all the opinions expressed here are my own.</strong></p>
Wednesday, June 26, 2013 5:04 PM | 1 vote
Hello, You may want to post in the PowerShell forum:
http://social.technet.microsoft.com/Forums/windowsserver/en-US/home?forum=winserverpowershell
Isaac Oben MCITP:EA, MCSE,MCC <a href="https://www.mcpvirtualbusinesscard.com/VBCServer/4a046848-4b33-4a28-b254-e5b01e29693e/interactivecard"> View my MCP Certifications</a>
Thursday, June 27, 2013 10:52 AM
@ Isaac - good idea, will do.
@Philipp - thanks for your reply.
I have tried the PS Script that you have provided - works great. However, I would like the output in a .txt file and not quite sure how I achieve this. At the moment the results appear within the PS window. Any ideas?
This script is certainly a good start. I would also like something similar with checks the whole directory structure and reports the permissions of each folder where they differ from the root.
Wednesday, October 2, 2013 7:08 PM
Where to add the server or PC name and share name in the power shell? It didn't work for me. I am very new to Powellshell.
Wednesday, February 25, 2015 1:21 PM
Sorry for a post in the old topic but, there is another way to export NTFS permissions for any user or user group you want to any file share. Try out freeware Netwrix Effective Permissions Monitoring Tool. Probably it will solve your problem.
Jeff (Netwrix)
Monday, February 26, 2018 12:14 AM
If you are serious about maintaining information security with NTFS permissions and want an enterprise solution. Take a look at this sway presentation and the free installation of Resource Security Manager.