I use this powershell snippet alot. Not sure if it works in powershell1 as I
only use win7 and 2k8 r2.

dir \\server\share <file://server/share> -recurse | % { $fname =
$_.fullname; (get-acl $_.fullname).access | ? { $_.IsInherited -eq $false
} | % { "{0};{1};{2}:{3}" -f $fname, $_.IdentityReference.Value,
$_.FileSystemRights,
$_.IdentityReference.Translate([System.Type]::GetType("System.Security.Principal.SecurityIdentifier"))
} } > my_file.txt

Yes, that's one line. :)

-Anders

On Wed, Aug 18, 2010 at 12:02 PM, James Rankin <[email protected]>wrote:

> Being a stick-in-the-mud, I've just spent the last couple of days using
> Somarsoft's *dumpsec *to export data structures and the associated NTFS
> permissions to an Excel file. As I am only too aware of my tendency to stick
> with what I know works (I'm probably the only person still using *srvinfo
> *and *global.exe  *from the NT Resource Kit), can anyone enlighten me as
> to the latest-and-greatest tools for dumping NTFS permissions into a nice
> report?
>
> TIA,
>
>
>
> JRR
>
> --
> "On two occasions...I have been asked, 'Pray, Mr Babbage, if you put into
> the machine wrong figures, will the right answers come out?' I am not able
> rightly to apprehend the kind of confusion of ideas that could provoke such
> a question."
>
>
>
>
>
>

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

Reply via email to