ZTree.com  | ZEN  | About...  

 Index   Back

This "psexec" method has another advantage...   [Tip]

By: Liviu       
Date: Dec 09,2014 at 19:30
In Response to: This "psexec" method has another advantage... (Bill Kingsbury)

> apparently because Chkdsk restored the "security descriptors" to their original specification.

Good to know.

> I wonder how to write a batch file to copy the "hidden" Chkdsk log
> files from - C:\System Volume Information\Chkdsk\ - to a non-protected location?

You can run 'psexec -s -i cmd.exe' (at an elevated prompt if vista+) to open a cmd prompt running as SYSTEM - then execute whatever commands, batch files etc.

Or, for a one-liner, something like this:

psexec -s -i xcopy /I "C:\System Volume Information\chkdsk" "%temp%\chkdsk.%time::=_%"

Cheers,
Liviu

868 views      
Thread locked
 

Messages in this Thread

 
94,489 Postings in 11,923 Threads, 348 registered users, 8 users online (1 registered, 7 guests)
Index | Admin contact |   Forum Time: Oct 21, 2019 - 8:45 pm EDT  |  Hits:28,790,468  (5,136 Today )
RSS Feed