Create a file, c:\test.txt using administrative rights on Windows 7. Add any data and saveChange 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.DateLastModifiedwscript.echo dModifiedTime I found that the above works for admin user, but returns file creation time or an error for non…
Tag: FileScriptingObject
USB Monitor for Removable Drives
Having users plug USB drives into their systems can be a portal for malware into your network and data exiting from your network. There are sophisticated programs that allow you to block and monitor endpoint security, such as Lumension’s Sanctuary. If you don’t have that in your budget, you can still monitor and detect insertion of…