How to get "Last saved by" of a file

@pondyondaime,

Okay, then try with the below query, it will give you the username of the last modified file in a directory

Directory.GetFiles("yourDirectoryPath").[Select](Function(f) New FileInfo(f)).OrderByDescending(Function(fi) fi.LastWriteTime).First.GetAccessControl().GetOwner(GetType(System.Security.Principal.NTAccount)).ToString()
2 Likes