
Quote: Originally Posted by
billberry12
My hard drive is failing the SMART test. I have been receiving errors on startup, so I have ordered a new hard drive. I know how to do a clean install with Windows 7. My question is, isn't there an easier way to get everything from my dying HD over to my new HD?
I really don't want to have to load and update all my software on the new HD.
Suggestions?
1. run chkdsk X: /R on each and every "drive" on the hard disk.
you substitute the appropriate drive letter for X
2. If any drive doesn't come error-free, then run chkdsk on that drive again.
After doing that then run the script I'm including and attach the resulting file to your next post.
The objective here is to determine if making a system image is a feasible approach.
# **********************INSTRUCTIONS**************************
# STEP 1 ** RUN POWERSHELL AS ADMINISTRATOR ******************
# ************************************************************
#
# WIN key | type POWERSHELL | do NOT hit ENTER |
# in the PROGRAMS list, right-click on WINDOWS POWERSHELL |
# choose "Run as administrator" |
# Click on the YES button (if such appears)
#
# WIN key = key with Microsoft log on top
#
# for the guru:
# WIN | type POWERSHELL | CTRL+SHIFT+ENTER key combo | ALT+Y keycombo
# ************************************************************
# STEP 2 ** COPY AND PASTE ***********************************
# ************************************************************
#
# COPY the script using CTRL+C,
# COPY every line of script down thru both EXIT statements
#
# PASTE into Powershell
#----Right-Click at the PowerShell Prompt
#----(Ctrl+V does not work)
#
# Start copying with first script line without a # at start of the line
# Note: Actually, you can paste the entire file if you rather
#-------Lines starting with a # are ignored by PowerShell
# ************************************************************
# STEP 3 ** SCRIPT OUTPUT & SCRIPT PURPOSE *******************
# ************************************************************
# --The script output and purpose is given at the very front of the script
#
# --The script output and purpose is given at the very front of the script
#
# ************************************************************
# ***************** NOTE - POWERSHELL VERSION*****************
# if you receive this error msg:
#--The system can not find the path specified
# you may need to update your PowerShell
# you must be using Powershell 2.0 or later.
#
# To determine your Powershell version:
#---Run PowerShell
#---enter $host.version
#---you should see at least:
# Major Minor Build Revision
# ----- ----- ----- --------
# 2......0......-1.....-1
#
# If you do not see the above, update your Vista/Win 7.
# ************************************************************
# *************** NOTE - EXECUTION POLICY*********************
# If you haven't set the execution policy, you may need to:
#---Run PowerShell
#---enter SET-EXECUTIONPOLICY -EXECUTIONPOLICY REMOTESIGNED
# ************************************************************
Script:
# ************************************************************
# Places CHKDSKLOGS.txt on your DESKTOP
# Results of running chkdsk (check disk) are in ChkDskLogs.txt
# ************************************************************
$obj = new-object -typename psobject
$events = get-winevent -filterhashtable @{logname='application';id=1001,26212,26214} -verbose:$false -ea:silentlycontinue |
where {($_.providername -ne 'Microsoft-Windows-LoadPerf') -and ($_.providername -ne 'Windows Error Reporting')} |
sort-object -property timecreated -desc
If ($events -eq $Null) {$events = "No check disk logs exist." } ELSE {
$obj = $events | SELECT timecreated, id, message }
$obj | ft -auto -wrap > $env:userprofile\desktop\CHKDSKLOGS.TXT
EXIT
EXIT
# ************************************************************