Chkdsk + Logging on multiple machines

Author
Sando75
New Member
  • Total Posts : 9
  • Scores: 0
  • Reward points: 4660
  • Joined: 2010/05/04 00:33:26
  • Status: offline
2011/02/09 21:21:20 (permalink)
0

Chkdsk + Logging on multiple machines

Hi Guys,
 
I need to run a Chkdsk on 5000 XP machines, as a prerequisite before encrypting the hard drives.  I have successfully completed a Chkdsk "package" on some test machines, using SCCM, by packaging up the following batch file:
 
CD c:\Windows\System32
Echo Y | chkdsk /r
sleep 20
shutdown -r
This works well, however I would like to somehow return the results whether it was successful or not.  ie did the machine have to recover any bad sectors?
 
So the chkdsk program does create a bootex.log file in the root of the C:, but this file is transferred directly to the event viewer immediately after it boots into windows, post chkdsk operation.  The bootex.log file is then deleted once transferred to event viewer.
 
The event viewer has exactly what i need but is there anyway to extract that info from event viewer on a bulk scale?  Could I possibly make the SCCM Chkdsk package a task sequence, and the last step in the task sequence is a script to extract the chkdsk event viewer log, and dump it back to a network location in the form of a txt file with the asset name or something?
 
Or, should I just accept that if ChkDsk has successfully run with the -r switch, that the machine is good to encrypt?
#1

2 Replies Related Threads

    Squirre1
    New Member
    • Total Posts : 4
    • Scores: 0
    • Reward points: 10450
    • Joined: 2009/01/08 13:49:04
    • Status: offline
    Re:Chkdsk + Logging on multiple machines 2012/07/20 10:27:09 (permalink)
    0
    Did you ever find a solution for this...?
    #2
    npherson
    Expert Member
    • Total Posts : 408
    • Scores: 61
    • Reward points: 84850
    • Joined: 2009/08/19 13:13:36
    • Location: Saint Paul, Minnesota
    • Status: offline
    Re:Chkdsk + Logging on multiple machines 2012/07/20 13:13:26 (permalink)
    0
    You could use VBScript to query the event log for the most recent record of a chkdsk, parse the record for the information that you want to inventory, and then write that data to the registry or WMI so you can inventory it.  Rerun the package/program either on all machines at a fixed interval, or only machines haven't reported any data yet.
     
    I think of this similarly to the BitLocker inventory workarounds.   Get the data, put it somewhere, inventory it, report/make collections with it.
     
    Before Sherry jumps in, let me also state that you could use Desired Configuration Management to accomplish this instead of Hardware Inventory.  It all depends on your needs.
     
    I hope these ideas help!
     
     
    Nash
    post edited by npherson - 2012/07/20 13:14:50
    #3
    Jump to:
    © 2018 APG vNext Commercial Version 5.5