Geeks in Phoenix

Geek Blog


How to securely erase all of the data from your Windows based computer

Updated August 6, 2024

Do you have an old Windows-based computer you want to get rid of but want to ensure that all of your data is securely erased? Or would you like to wipe all the data from your hard drive and perform a clean Windows installation? Either way, you'll want to make the data is completely wiped out. Here's how to securely erase all the data from your Windows-based computer.

Backup all folder(s) and file(s) you want to save

This is the time to double and triple-check for any folder(s) and file(s) you may want to keep. If you plan on reinstalling Windows, make sure that you have all of the installation media available. If you need to create the recovery media stored on your computer, this is the time to do it. Once the hard drive is wiped clean, the recovery media images will be gone, too.

Windows 11 Backup

Windows 10 Backup

Windows 8 Backup

Windows 7 / Windows Vista Backup

Windows XP Backup

Download and create bootable media with disk-wiping software

The best way to completely wipe clean a hard drive is by booting the computer on a CD/DVD or USB drive. This way, you can erase all the space on the hard drive. Several free utilities exist for doing this, including Darik's Boot And Nuke, CMRR - Secure Erase, and PC Disk Eraser. I recommend the Ultimate Boot CD (UBCD), which has all of these and more already built-in.

Once you download the UBCD image file (.ISO), you can either create a bootable USB drive using Rufus or burn the image to a disk with Windows built-in disk burning software. I recommend Rufus, as it has predefined settings creating a bootable UBCD USB drive.

Encrypt the contents of your hard drive

This step may seem unnecessary, but it makes data recovery virtually impossible on the drive you will wipe. Windows has a built-in feature called Encrypting File System (EFS), but it's disabled by default. It encrypts files transparently with a File Encryption Key (FEK). For more on EFS, check out this Wikipedia article. So, even if someone could recover the data on the drive after wiping it, it would be in deplorable condition. After that, the data would have to be unencrypted, and being in such a bad condition would be hard, if not impossible.

  1. Open File Explorer / Windows Explorer (Windows logo key Windows logo key + E).
  2. Select the file(s) and/or folder(s) you want to encrypt.
  3. Right-click on the items selected and then left-click on Properties from the context menu that appears.
  4. On the General tab, left-click on Advanced.
  5. Left-click the check box for Encrypt contents to secure data.
  6. Left-click on OK. Be patient; encrypting the folders and files may take some time.

Insert bootable media and restart the system

When you restart your system, it should boot up on the media you created. Follow the on-screen instructions. If using the UBCD, navigate to HDD > Disk Wiping for the list of utilities. Each program will have similar data destruction settings. I always look for the latest Department of Defense standard (DOD 5220.22-M). If you really want to clean your hard drive, just run two or more of the disk-wiping programs included on the UBCD.

If your system does not boot up on the media you created, you may have to change your computer's boot order and turn off the secure / UEFI boot feature inside of the BIOS (Basic Input Output System). The BIOS can generally be accessed by pressing the DEL or F2 key when the 'splash' screen (motherboard/computer manufacturer logo) appears. It's always recommended to check your motherboard documentation on which keys are used to access the BIOS and where in the BIOS to change the boot order and turn off secure / UEFI boot.

Perform advanced disk defragmentation with Defraggler from Piriform

Have you ever opened a filing cabinet just to find the folders just scattered around? The files are all over the place, and you cannot find what you're looking for. The same thing can happen to the folders/files on your Windows based computer. Windows does come with a disk defrag program, but its options are minimal. If you're looking for something more in a disk defrag program, check out Defraggler by Piriform.

Drive view inside of Defraggler
Drive view inside of Defraggler

With Defraggler, you can do much more than just defragment your hard drive. You can do a quick or full defrag, defrag only free space, and my favorite, boot-time defrag. And it uses the same technology as Windows built-in defragmenter to read and write files. You can even have the option to replace the Windows built-in defrag program with Defraggler.

Block detail view inside of Defraggler
Block detail view inside of Defraggler

Defraggler also has something that has been missing from Windows built-in defragmenter for years, a drive map showing the status of files on your hard drive. And what is cool is that you can left-click on a block, and Defraggler will tell you what file(s) are located in it. And best of all, it's free. Here's a quote from the Piriform website:

Defragment exactly what you want
Most defrag tools only allow you to defrag an entire drive. Defraggler lets you specify one or more files, folders, or the whole drive to defragment.

Safe and Secure
When Defraggler reads or writes a file, it uses the exact same techniques that Windows uses. Using Defraggler is just as safe for your files as using Windows.

Compact and portable
Defraggler's tough on your files – and light on your system.

Interactive drive map
At a glance, you can see how fragmented your hard drive is. Defraggler's drive map shows you blocks that are empty, not fragmented, or needing defragmentation.

Quick Defrag
Give your hard drive a quick touch-up with Quick Defrag.

Defragment free space
Organizes empty disk space to further prevent fragmentation.

Scheduled defragmentation
Defragment while you sleep - and wake up with a faster PC. Set Defraggler to run daily, weekly or monthly.

Multi-lingual support
No matter what your native tongue is, Defraggler speaks your language. It currently supports 37 languages.

For more information on Defraggler, just follow the link below:

Defraggler - File and Disk Defragmentation

Check the protected system files in Windows with System File Checker

There may come a time when your Windows-based computer starts to run improperly. Installing and uninstalling software, viruses, and malware are just a few things that can corrupt the integrity of system files. When it comes to computer repair on a system running Windows, I always like to check for corrupt system files. You can too with Windows built-in System File Checker (SFC).

System File Checker running in Command Prompt inside of Windows 8
System File Checker running in Command Prompt inside of Windows 8

SFC scans the integrity of all protected system files and replaces incorrect versions with correct Microsoft versions. Everything SFC does is documented in the CBS.log file. If SFC finds any files that it cannot repair, check the CBS.log for more information. See the bottom of command-line syntax(s) and parameter(s) for details on how to view the CBS.log.

Running SFC in Windows Vista, Windows 7, and Windows 8

To ensure that SFC runs with administrator privileges on Windows Vista, Windows 7, and Windows 8, you will need to run it at an administrative Command Prompt.

  1. Open a Command Prompt with Administrative privileges

    How to open a Command Prompt with Administrator privileges in Windows Vista and Windows 7

    How to open a Command Prompt with Administrator privileges in Windows 8

  2. Use the following command line syntax(s) and parameter(s) to run SFC:

sfc [/scannow] [/verifyonly] [/scanfile=<file>] [/verifyfile=<file>] [/offwinddir=<offline windows directory>/offbootdir=<offline boot directory>]

/scannow Scans integrity of all protected system files and repairs files with problems when possible.
/verifyonly Scans integrity of all protected system files. No repair operation is performed.
/scanfile Scans integrity of the referenced file, repairs file if problems are identified. Specify full path <file>.
/verifyfile Verifies the integrity of the file with full path <file>. No repair operation is performed.
/offbootdir For offline repair specify the location of the offline boot directory.
/offwinddir For offline repair specify the location of the offline windows directory.
/? Displays help at the command prompt.

You can view the CBS.log file in Notepad using the following code at the same administrative Command Prompt used to start SFC.
notepad %systemroot%\Logs\CBS\CBS.log

Running SFC in Windows XP

To use SFC, you will need to open a Command Prompt.

  1. Click the Start button, then Programs, Accessories, and click on Command Prompt
    or
    Press Windows logo key + R. This will bring up the Run dialog box. Type CMD and click OK
  2. Use the following command line syntax(s) and parameter(s) to run SFC:

sfc [/scannow] [/scanonce] [/scanboot] [/revert] [/purgecache] [/cachesize=<x>]

/scannow Scans all protected system files once.
/scanonce Scans all protected system files once.
/scanboot Scans all protected system files every time the computer is restarted.
/revert Returns the scan to its default operation.
/purgecache Purges the Windows File Protection file cache and scans all protected system files immediately.
/cachesize=<x> Sets the size, in MB, of the Windows File Protection file cache.
/? Displays help at the command prompt.

When SFC is done, you can view the log file in Notepad using the following code at the same Command Prompt used to start SFC.
notepad %systemroot%\Logs\CBS\CBS.log

How to open a Command Prompt with Administrator privileges in Windows Vista and Windows 7

At some point in time, you may need to run a program or command from a Command Prompt with Administrative privileges. Some of the best features inside Windows Vista and Windows 7 are only accessible through an administrative Command Prompt. Here's how to open a Command Prompt with Administrator privileges in Windows Vista and Windows 7.

A Command Prompt in Windows 7 with Administrator privileges
A Command Prompt in Windows 7 with Administrator privileges

  1. Left-click on the Start button.
  2. Left-click on All Programs.
  3. Left-click on Accessories.
  4. Right-click on Command Prompt.
  5. On the context menu that appears, left-click on Run as administrator. If you're prompted for an administrator password or confirmation, type the password or provide confirmation.
    or
  1. Left-click on the Start button.
  2. In the search box above the Start button, type Command Prompt.
  3. In the list of results, right-click Command Prompt.
  4. On the context menu that appears, left-click Run as administrator. If you're prompted for an administrator password or confirmation, type the password or provide confirmation.
    or
  1. Press the Windows logo key Windows logo key + X to bring up the Power User command menu.
  2. Left-click on Command Prompt (Admin). If you're prompted for an administrator password or confirmation, type the password or provide confirmation.

Sync data between your PC and smartphone with CompanionLink

Like a lot of people, I use Microsoft Outlook as a PIM (Personal Information Manager). And being in the computer repair industry, I need to keep all of my data (contacts, calendar, etc.) synchronized and up to date on both my PC and smartphone. I found I can do all of this quite easily with CompanionLink.

CompanionLink 5 for Outlook setup screen
CompanionLink 5 for Outlook setup screen

I wrote an article a while back about syncing Outlook with my Android phone using CompanionLink on my PC and DejaOffice on my Android. It works because you install CompanionLink on your PC or Mac and install DejaOffice on your Android, iPhone / iPad, Blackberry, etc. You then define what database (Outlook, ATC!, etc.) and what fields (contacts, calendar, etc.) you want to sync.

DejaOffice 2.2 main screen
DejaOffice 2.2 main screen

Recently they released a new version of both CompanionLink (V5) and DejaOffice (V2.2) with more capabilities and features. They have multiple versions for different applications (I use CompanionLink for Outlook). Here's a quote from their website on the products they offer:

Our products work with Android, iPhone, iPad, BlackBerry, HP webOS, Palm OS, and Windows devices. We also sync with Google, Gmail, Google Apps, and Windows Live (Hotmail) accounts

CompanionLink for Outlook
Sync Microsoft Outlook with Android, iPhone, iPad, BlackBerry, Windows Phone, or any Google/Gmail account. Supports two-way sync of contacts, calendar, tasks and notes.

CompanionLink for Palm Desktop
Sync Palm Desktop or Pimlical with smartphones, tablets, or any Google/Gmail account. Supports two-way sync of contacts, calendar, tasks and memos.

CompanionLink Express
Sync ACT!, Lotus Notes, HighRise, or GroupWise with smartphones, tablets, or any Google/Gmail account. Supports two-way sync of contacts, calendar, tasks and notes.

CompanionLink Professional
Sync Salesforce CRM, Goldmine, or any other supported database with smartphones, tablets, or any Google/Gmail account. Includes all the features of CompanionLink Express, plus the ability to sync to from multiple databases, sync with up to 5 devices, and advanced sync options.

CompanionLink for Google
Sync Microsoft Outlook contacts and calendar to Google Contacts, Google Calendar, and Google Tasks. Works with any Google, Gmail, or Google Apps account. Two-way sync is fully supported so you can make changes to data in Outlook or in Google.

CompanionLink for Outlook.com / Windows Live
Sync Outlook with your Windows Live Hotmail account. Supports two-way sync of contacts, calendar, and tasks.

CompanionLink for Time & Chaos
Sync Time & Chaos with smartphones, tablets, or any Google/Gmail account. Supports two-way sync of contacts, calendar, tasks and notes.

CompanionLink FA
Sync Wise Agent, Infusionsoft, SalesJunction, or Respond with smartphones, tablets, Outlook, or any Google/Gmail account. Supports two-way sync of contacts, calendar, tasks and notes.

CompanionLink for Mac
Sync Mac's Address Book and iCal with any Android device. You can also keep Outlook for Mac in sync with Android. Requires OS X Lion (10.7) or Mountain Lion (10.8).

For more information on CompanionLink and DejaOffice, follow the links below:

CompanionLink

CompanionLink FAQ's

Free computer diagnostics

Repairing a PC can sometimes be expensive, and that is why we offer free basic in-shop diagnostics. Give one of our professional and experienced technicians a call at (602) 795-1111, and let's see what we can do for you.

Check out our reviews

Geeks In Phoenix LLC, BBB Business Review

Customer service is #1

Here at Geeks in Phoenix, we take pride in providing excellent customer service. We aim to give the highest quality of service  from computer repair, virus removal, and data recovery.

Bring your computer to us and save

Repairing a computer can be time-consuming. That is why we base our in-shop service on the time we work on your computer, not the time it takes for your computer to work! From running memory checking software to scanning for viruses, these are processes that can take some time.

Contact us

If you have any questions, please feel free to give us a call at (602) 795-1111  and talk with one of our Geeks. Or you can send us a message from our contact page , and one of our Geeks will get back to you as soon as possible. Or you can stop by and see us. Here are our hours and location.

Like Geeks in Phoenix on Facebook

Follow Geeks in Phoenix on Twitter

Watch Geeks in Phoenix on YouTube