Is there some way I can get the file permissions for a folder or a file extracted to a file with some command in windows?
dir ??? > permissions.txt
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
If you have at least windows 2003 sp2, then you can use icacls.exe:
icacls.exe [file|folder] > file.txt
you enter file or folder without the brackets, in case it is not clear enough. If you have something older, then you can use setacl, which is a wonderful little tool, but a bit complicated to get started with.
ntfs-3g.secaudit can extract the ACLs from a filesystem object.