Day: June 6, 2011

Using PowerShell to get Share and NTFS permissions

I am teaching a class this week at Benchmark Learning and had a great student question. “How do I get share permissions AND NTFS permissions” Well, look no further. The Get-SharePermission function was found here: http://social.technet.microsoft.com/Forums/en-ZA/ITCG/thread/64cabd85-7170-4678-96b5-2c516cc3b772 function Get-SharePermission { Param($Server = $env:COMPUTERNAME) $ShareSecurity = Get-WmiObject win32_LogicalShareSecuritySetting -ComputerName $Server foreach($Share in $ShareSecurity) { $sharenames = $Share.Name […]

Top