ZTree.com  | ZEN  | About...  

 Index   Back

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

By: Liviu       
Date: Dec 10,2014 at 00: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

1,545 views      
Thread locked
 

Messages in this Thread

 
96,637 Postings in 12,231 Threads, 350 registered users, 70 users online (0 registered, 70 guests)
Index | Admin contact |   Forum Time: Mar 29, 2024 - 9:29 am UTC  |  Hits:62,399,919  (14,705 Today )
RSS Feed