14
8
Is there a way to display the owner of folders and files from the command line in Windoews 7 command prompt?
Can you change the owner of a folder or file to some "arbitrary" user which is not your own username?
I have some folders (and files) that are probably left over from an app that I have removed. If I try to view the contents of the folders I am that told I don't have permission to do so, even if I am running as an "Administrator".
I can "Take ownership" (I assume this will be successful but haven't tried it yet) of the folders (files), but if I need to revert the ownership to the previous owner, I need to know the username of the original owner, and I need to be able to "give ownership" to that user.
Is it possible to do this from the Windows command prompt (or if not, from a GUI-Tool)?
See here for a solution purely using cmd.exe: Get ownership information from command line by using wmic
– schletti2000 – 2016-07-21T12:10:53.137