Change Default Program Files Location in Windows 10: A Step-by-Step Guide
When you install new software on your Windows 10 computer, the program files are typically saved to the default location, which is usually the C:\Program Files or C:\Program Files (x86) folder. However, you may want to change this default location to free up disk space, improve performance, or maintain a separate folder structure. In this article, we'll show you how to change the default program files location in Windows 10.
Why Change the Default Program Files Location?
There are several reasons why you might want to change the default program files location:
- To free up disk space on your primary drive by moving the program files to a larger secondary drive or a network location.
- To improve system performance by moving resource-intensive programs to a faster drive or a drive with more free space.
- To maintain a separate folder structure for different types of programs or to keep program files organized by category.
- To comply with company policies or regulatory requirements that mandate separate storage for software and data.
System Requirements
Before you start, make sure you meet the following system requirements:

- Windows 10 operating system (Home, Pro, or Enterprise).
- Administrative privileges to make changes to the system settings.
Step 1: Create a New Folder for Program Files
First, you need to create a new folder where you want to store the program files. You can create a new folder on any drive or network location that has enough free space to store the program files.
Example: Let's say you want to store the program files on a secondary drive called D:\Program Files. You would create a new folder called D:\Program Files.
Step 2: Assign Permissions to the New Folder
Next, you need to assign the necessary permissions to the new folder so that the system can write to it. To do this, follow these steps:

- Right-click on the new folder and select Properties.
- In the Properties window, click on the Security tab.
- Click on Edit to modify the permissions.
- Click on Add and select Users (or your username) and click OK.
- In the Permissions for Users window, select Full control and click OK.
Step 3: Change the Default Program Files Location
Now, you need to change the default program files location to point to the new folder. To do this, follow these steps:
- Go to Control Panel > System and Security > System.
- Click on Advanced system settings on the left side of the window.
- Click on Environment Variables.
- Under User variables for
, click on New and enter the following variables:
| Variable name | Variable value |
|---|---|
| PROGRAMFILES | D:\Program Files |
| PROGRAMFILES(x86) | D:\Program Files (x86) |
Step 4: Verify the Changes
After changing the default program files location, you need to verify that the changes have taken effect. You can do this by installing a new program or checking the program files location for an existing program.
Example: Let's say you installed a new program called Microsoft Office. You can check the program files location by following these steps:
- Go to the Control Panel > Programs and Features.
- Click on Turn Windows features on or off on the left side of the window.
- Scroll down and look for Microsoft Office. Click on the Change button.
- Click on Repair and then click Next.
- On the Ready to Repair screen, click Install.
- After the repair is complete, go to the program files location by following these steps:
Go to the File Explorer and navigate to D:\Program Files. You should see the program files for Microsoft Office located in this folder.
Conclusion
Changing the default program files location in Windows 10 can help you free up disk space, improve system performance, and maintain a separate folder structure for different types of programs. By following the steps outlined in this article, you can easily change the default program files location and take advantage of these benefits.