Create a file, c:\test.txt using administrative rights on Windows 7. Add any data and save
Change modification stamp by editing it and saving
Run this vbscript:
set fso = CreateObject(“Scripting.FileSystemObject”)
logfile = “c:\test.txt”
Set f = fso.GetFile(Logfile)
dModifiedTime = f.DateLastModified
wscript.echo dModifiedTime
I found that the above works for admin user, but returns file creation time or an error for non admin user. This is odd because user’s have read permissions to files in this folder.