Geeks in Phoenix

Geek Blog


How to change default programs in Windows 10

Updated August 8, 2020

The default programs that Windows 10 uses to open different file types are pretty good right from the start. But maybe you'd like to change what program opens music or photos? Here's how to change the default applications in Windows 10.

How to change default programs in Windows 10

As with previous versions of Windows, there can be multiple programs that can open the same type of file. Some are UWP (Universal Windows Platform), and some are standard Desktop programs. And then there are the programs you may install yourself. Knowing how to change the default programs in Windows 10 is essential since Windows 10 is prone to reset default programs when performing a Feature update.

How to change the default apps in Windows 10 Settings

  1. Left-click on the Start Windows logo button.
  2. Left-click on Settings (the gear icon).
  3. Left-click on Apps.
  4. In the left-hand column, left-click on Default apps.

Changing the default apps in Windows 10 Settings

The six (6) most common apps are listed at the top of the right-hand column. They are Email, Maps, Music player, Photo viewer, Video player, and Web browser. You will find three more advanced ways of modifying the default applications on the bottom of the right-hand column.

  • Choose default apps by type
    Warning! By choosing the wrong application for specific file types, you can make your system unusable. This method of setting the default program requires you to know the extension of the object you want to open. Be sure of the file extension before making any changes. When in doubt, use the Set defaults by app settings.
  • Choose default apps by protocol
    Warning! By choosing the wrong application for specific protocols, you can make your system unusable. This method of setting the default program requires you to know the protocol of the object you want to open. Be sure of the protocol before making any changes. When in doubt, use the Set defaults by app settings.
  • Set defaults by app
    When you choose this option, you are presented with a list of installed programs, and you can select what each one does or does not do. You can set an application to open all types of files it can or choose which types of files to open with that particular program.

Check Windows 10 system files with System File Checker

Updated September 26, 2024

I was thinking the other day about what program I use the most when doing computer repair. The one program I use the most on Windows computers would have to be System File Checker (SFC). SFC checks for system files that may have gotten corrupted or replaced with incorrect versions. Here's how to check Windows 10 system files with System File Checker.

Check Windows 10 system files with System File Checker

SFC has been included inside Windows since Windows XP and is a CLI (Command-Line Interpreter) program, meaning you must use an Administrative Command Prompt / PowerShell to run it.

Open a Command Prompt with Administrator privileges in Windows 10

  1. Left-click on the Start Windows logo button.
  2. Scroll down the program list and then left-click on the Windows System folder to expand.
  3. Right-click on Command Prompt.
  4. On the context menu that appears, hover your cursor over More and then left-click on Run as administrator. If you're prompted for an administrator password or confirmation, type the password or provide confirmation.

Open PowerShell with Administrator privileges in Windows 10

  1. Right-click on the Start Windows logo button to bring up the Power User menu.
  2. Left-click on Windows PowerShell (Admin). If you're prompted for an administrator password or confirmation, type the password or provide confirmation.

SFC running inside of Windows 10 Administrative Command Prompt

When you have an Admin Command Prompt or PowerShell open, you must type SFC and a combination of syntax and switch(s). The most commonly used syntax/switch is SFC /scannow. Here is a complete list of syntax/switches for SFC.

SFC [/SCANNOW] [/VERIFYONLY] [/SCANFILE=<file>] [/VERIFYFILE=<file>] [/OFFWINDIR=<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 file's intergrity with full path <file>. No repair operation is performed)
/OFFBOOTDIR (For offline repair specify the location of the offline boot directory)
/OFFWINDIR (For offline repair specify the location of the offline Windows directory)

Examples

sfc /scannow sfc /verifyfile=c:\windows\filetobereplaced.dll sfc /scanfile=d:\windows\filetobereplaced.dll /offbootdir=d:\ /offwindir=d:\windows sfc /verifyonly

Once SFC is done scanning the system files, it will give one of four possible results:

  • Windows Resource Protection did not find any integrity violations.
    All system files are fine, and you're good to go.
  • Windows Resource Protection could not perform the requested operation.
    There may be another program preventing SFC from running. In this case, boot the system into safe mode and run SFC from there.
  • Windows Resource Protection found corrupt files and successfully repaired them.
    All system files are now correct, and you're ready to go. If you want to view the repair details, see below.
  • Windows Resource Protection found corrupt files but was unable to fix some of them.
    If you get this message, SFC found a file or files it couldn't repair. The next thing you will need to do is find the name of the file(s). Using the Find String utility, you can filter out the SFC results with only the scanned components and create a text file with that information on your Desktop called sfcdetails.txt. Just copy the following code into an Administrative Command Prompt (it will not run using PowerShell) and press Enter.

findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log >"%userprofile%\Desktop\sfcdetails.txt"

Manually replacing a corrupt system file in Windows 10

Note: To replace a corrupt system file, you must have a known good copy of the file(s) in question. Another computer or virtual machine running Windows 10 is a good source for files. Since I do computer repair for a living, I have all Windows versions that are still supported by Microsoft running inside of Oracle VirtualBoxes.

The first thing to do is note the location (path) and name of the file(s) that must be replaced from the sfcdetails.txt file. Once you have another copy of the corrupt file(s), you will need to take administrative ownership of the file(s). To do this, modify the following command with the path\filename of the file you want to replace and then type it into an Administrative Command Prompt:

takeown /f path\filename

Example: takeown /f C:\Windows\FileToBeReplaced.dll

Next, you will have to grant administrators full access to the file(s) being replaced. To do this, modify the following command with the path\filename of the file you want to replace and then type it into an Administrative Command Prompt:

icacls path\filename /grant administrators:F

Example: icacls C:\Windows\FileToBeReplaced.dll /grant administrators:F

The third thing to do is copy over the new file(s) and replace the corrupt one(s).To do this, modify the following command with the path\filename of the file you want to replace and then type it into an Administrative Command Prompt:

copy path\filename path\filename

Example: copy C:\Temp\FileToBeReplaced.dll C:\Windows\FileToBeReplaced.dll

Maintain your drive with SpinRite

Updated September 22, 2024

When it comes to maintaining HDDs (Hard Disk Drive) or SSDs (Solid State Drive), running a disk check will usually find any software-related issues. But when I need to check the hardware inside a drive, I will use SpinRite from Gibson Research Corporation.

Intro screen from GRC SpinRite
Intro screen from GRC SpinRite

SpinRite is a storage data recovery, repair, and maintenance program that works on HDDs and SSDs. SpinRite includes a feature called DynaStat that can reassemble missing data from bad sectors. SpinRite is a self-contained program that runs on top of a version of FreeDOS (Free Disk Operating System).

Graphic Status Display screen from GRC SpinRite
Graphic Status Display screen from GRC SpinRite

SpinRite has five (5) levels of operation, each building on the previous level.

  • Level 1 - Examine storage media: This operation rapidly read-scans the entire storage media surface independent of whatever data and/or file system that may be present. This level will read every sector of the selected drive(s) psychical surface, looking for areas that appear healthy but could fail.
  • Level 2 - Recover unreadable data: This operation rapidly read-scans the entire storage media for any unreadable or difficult to read data sectors. Spinrite will then attempt to recover unreadable data using the built-in advanced recovery technology.
  • Level 3 - Refresh storage media: This operation performs all of the scanning and data recovery of Level 2. This level will read and write every sector of the selected storage media psychical surface, mainly exercising the hard drive. It tests and verifies every sector on the drive(s).
  • Level 4 - Refresh and verify media: This operation performs all of the scanning and data recovery of Level 3. This level will read, write, and invert every sector twice of the selected drive(s) psychical surface. This tests and verifies that every 'bit' on the selected partition can be successfully written to and retrieved.
  • Level 5 - Exercise storage media: This operational level should only be used on HDDs. This level does everything that all other levels do and restores any areas that may have been previously marked as defective but are now reliable.

DynaStat Data Recovery screen from GRC SpinRite
DynaStat Data Recovery screen from GRC SpinRite

Note: If your Windows-based computer uses BitLocker drive encryption, it must be paused or disabled before you can run Spinrite. See the link below for instructions on how to do this.

Now, I have been using SpinRite for several years, and running it used to be fairly simple. If you could not get your system to boot from the SpinRite media, just go into the BIOS and change the boot mode. But with BitLocker drive encryption, things have changed.

For you to be able to run SpinRite on your system, it needs to be able to boot using either BIOS (Basic Input-Output System) or UEFI (Unified Extensible Firmware Interface) with BIOS capability support. For you to boot your system, you may have to turn off secure boot.

Warning: Secure boot is directly tied into BitLocker drive encryption, and if your drive is encrypted and you turn off the secure boot function without pausing or turning off BitLocker, you can lose access to that drive. Here is how to turn off BitLocker drive encryption.

GRC does have a free app called BootAble that will create a bootable USB drive to verify whether your system can boot using the SpinRite version of FreeDos. SpinRite is available from Gibson Research Corporation for $89 (as of this writing). For more information on SpinRite, follow the link below.

Gibson Research Corporation SpinRite

How to use Windows 10 Advanced Boot Options

Updated September 26, 2024

Since I do computer repair for a living, there are times when I need to boot a Windows 10 system up into Safe Mode. But with newer computers utilizing UEFI (Unified Extensible Firmware Interface) and fast/safe boot features, this can be challenging. So here is how to use the Windows 10 Advanced Boot Options.

How to use Windows 10 Advanced Boot Options

In previous versions of Windows, getting to the advanced boot options was pretty easy. All you had to do was press the F8 key at startup. But with Windows 10, getting the advanced boot options is a little different. You can bring up the advanced boot options just one time or set it up permanently. Both require the system to be able to boot up into Windows 10 first.

Enable Windows 10 Advanced Boot Options screen one-time

You can bring up the one-time Windows 10 boot options, either logged on or off. Since I repair computers for a living, I prefer not to log in under any user's profile. That way, I don't have to deal with any of the programs that may load when a user signs in. There are two (2) ways (logged in and logged out) of getting to the Windows 10 one-time boot options.

When you are logged in to Windows 10:

  1. Left-click the Start Windows logo button to bring up the Start menu.
  2. Left-click on Settings (the gear icon).
  3. Left-click on Update & Security.
  4. In the left column, left-click on Recovery.
    Windows 10 advanced startup option when logged in
  5. Under Advanced startup, left-click on Restart now. The computer will log you off and bring up the Choose an option screen.

When you are logged out of Windows 10:

  1. At the login screen, left-click on the Power button in the lower right-hand corner to bring up the different options.
    Windows 10 advanced startup option when logged out
  2. Hold down the Shift key on the keyboard and right-click on Restart. This will bring up the Choose an option screen.

When you get to the Choose an option screen:

Windows 10 choose an option screen

  1. Left-click on Troubleshoot.
    Windows 10 troubleshoot screen
  2. Left-click on Advanced options.
    Windows 10 advanced options screen
  3. Left-click on Startup Settings.
    Windows 10 startup settings screen
  4. Left-click on the Restart button.
    Windows 10 standard advanced boot options screen
  5. When the Startup Settings page appears, select the number that coincides with the function you would like to perform.

Enable Windows 10 Advanced Boot Options screen permanently

This option should be used very carefully. Not only do you have to edit the boot configuration of your Windows 10 computer, but once permanently enabled, you will have to select a boot option you want to use every time your computer starts or restarts. There is no timer for this screen, unlike in previous Windows versions. You will need to use an administrative command prompt to edit the boot configuration.

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

The first thing we have to do is turn on the Windows 10 Advanced Boot Options. Type or cut and paste the following code into an administrative command prompt:

bcdedit /set {globalsettings} advancedoptions true

To turn off the Windows 10 Advanced Boot Options, type or cut and paste the following code into an administrative command prompt:

bcdedit /set {globalsettings} advancedoptions false

You can also change the default boot manager used with the advanced boot options. The default is the Windows 10 standard version, but you can change it to the legacy version if you like the old DOS look.
Windows 10 legacy advanced boot options screen
To change to the legacy boot manager used in previous Windows versions, like Windows 7, you can type or cut and paste the following code into an administrative command prompt:

bcdedit /set {default} bootmenupolicy legacy

To restore the boot menu to the default, type or cut/paste the following code into an administrative command prompt.

bcdedit /set {default} bootmenupolicy standard

Clean up Windows 10 with Disk Cleanup

Updated September 24, 2024

There are a lot of programs out there that can clean up your Windows 10 computer. But did you know that one of the best comes with Windows 10? Here's how to clean up your Windows 10 computer with Disk Cleanup.

Clean up Windows 10 with Disk Cleanup

Disk Cleanup has been included with Windows since Windows XP and is part of my regular scheduled maintenance. Disk Cleanup can be run intwo (2) different ways and can have three (3) different sets of options. The first way to run it is from any of the shortcuts built into Windows (Start menu or disk properties). When you use a built-in shortcut, you will have two (2) different sets of options: user and system.

Disk Cleanup user options in Windows 10
Disk Cleanup user options in Windows 10
Disk Cleanup system options in Windows 10
Disk Cleanup system options in Windows 10

When you run Disk Cleanup with user options, you can clean up user-specific files such as downloaded program files, temporary Internet files, and the recycle bin. With system options, you can also clean up Windows system files like Windows temporary files, device driver packages, and previous installations of Windows, to name a few.

Disk Cleanup command line options in Windows 10
Disk Cleanup command line options in Windows 10

Disk Cleanup can also be run using command line switches. When you do this, you get the maximum options available. But you will have to run it at an administrative command prompt to configure these options. These options include all user and system options plus a few more, like old chkdsk files, Windows Update Cleanup, and Windows ESD installation files.

How to run Disk Cleanup from the Start menu

  1. Left-click on the Start Windows logo button.
  2. Scroll down to Windows Administrative Tools and left-click to expand.
  3. Left-click on Disk Cleanup. If you have more than one (1) drive, you will be prompted on which drive you want to clean up.

Disk Cleanup will scan your system for files that it can remove and open with the available user options. You can now choose which user files you would like to delete. To activate the system options, you will need to select Clean up system files in the lower left-hand corner. When you do this, Disk Cleanup will close and rescan your computer.

This time, Disk Cleanup will now include system files that can be removed. It will also have a second tab on top called More Options. Under More Options, you will find other options: Programs and Features and System Restore and Shadow Copies.

Programs and Features will take you to the Control Panel, where you can uninstall programs or add/remove Windows features. Selecting System Restore and Shadow Copies will delete all but the most recent restore point. Use this carefully, as you cannot get back any restore points once they are deleted.

How to run Disk Cleanup from an administrative command prompt

You can run Disk Cleanup with or without command-line switches. When you run Disk Cleanup without any switches, it opens with the system options selections. When you run it with switch /sageset:n, you will get even more options than the system settings.

The first thing you will need to do is open an Administrative Command Prompt.

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

Then, type the following into the command prompt to run Disk Cleanup.

cleanmgr

Disk Cleanup can also be used with command-line switches, further expanding on its features. And when used with the /sageset:n and /sagerun:n switches, you can save multiple configurations that can be used in a shortcut or as a scheduled task. Here's an explanation of the /sageset:n and /sagerun:n switches.

cleanmgr /sageset:n

/sageset:n - This switch displays the Disk Cleanup settings dialog box and creates a registry key to store the settings you select. The n value is stored in the registry and allows you to specify different tasks for Disk Cleanup to run. The n value can be any integer value from 0 to 65535. To get all the available options when using the /sageset switch, you may need to specify the drive letter that contains the Windows installation.

cleanmgr /sagerun:n

/sagerun:n - This switch runs the specified tasks assigned to the n value by using the /sageset switch. All drives in the computer will be enumerated, and the selected profile will be run against each drive.

How to run Disk Cleanup as a Scheduled Task

First, you will need to have created a preset configuration using the /sageset:n switch. Then open Task Scheduler and create a new task.

  1. Left-click on the Start Windows logo button.
  2. Scroll down to Windows Administrative Tools and left-click to expand.
  3. Left-click on Task Scheduler.
  4. In the right column labeled Actions, select Create Basic Task. The Create a Basic Task Wizard will appear.
  5. Give the task a name and description, and then select Next.
  6. Select when you want it to run (trigger).
  7. When prompted for what task (action) you want to perform, select Start a program, then select Next.
  8. When prompted for a program/script to start, select Browse and navigate to C:\Windows\System32\ and select cleanmgr.exe.
  9. In the Add arguments section, type /sagerun:n and then select Next.
  10. Then select Finish, and you're all set.

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