How to Access Password-Protected Office Files After a Windows Reinstall
Question details
The user is unable to open password-protected Office files after reinstalling Windows or migrating to a new drive due to permission errors and encryption blocks.

- Product
- Microsoft Office
- Device & OS
- Windows
- Scenario
- Trying to open previously secured Office documents that were transferred or kept on a secondary drive after a Windows OS reinstallation.
- Observed behavior
- Windows denies access to the files due to missing permissions, and Excel or Word fails to open the file without the original encryption password, even with Windows Administrator rights.
Ensure you are logged into Windows with an Administrator account, as advanced privileges are required to modify file security settings and take ownership of the restricted folders.
Take Ownership and Grant Full Control Permissions
Use this method to resolve the Windows "Access Denied" error caused by mismatched user account security identifiers (SIDs) after an OS reinstall.
Right-click the folder or individual Office file you cannot access and select 'Properties' from the context menu.
Navigate to the 'Security' tab and click the 'Advanced' button near the bottom of the window.
Click 'Change' next to the current Owner's name. Enter your current Windows account username, click 'Check Names' to verify it, and click 'OK'.
Check the box that says 'Replace owner on subcontainers and objects', then click 'Apply'.
Close the Advanced window, go back to the Security tab, click 'Edit', select your username, and check 'Full Control' under the Allow column. Click 'OK' to save.

Open the Encrypted File with the Original Password
If the file opens but Excel or Word prompts for a password, you must supply the original document password.
Experience Seamless Document Management with WPS Office
Whether you are migrating to a new Windows installation or managing secure documents, WPS Office provides a lightweight, highly compatible, and free alternative to Microsoft Office.
- 1. Install WPS Office: Download and install the free version of WPS Office on your new Windows system.
- 2. Open Your Document: Right-click your restored Office file and select 'Open with WPS Office'.
- 3. Enter Your Password: Type the document's encryption password when prompted to instantly view and edit your file.

Frequently Asked Questions
Why do I get an access denied error after reinstalling Windows?
When Windows is reinstalled, your new user account gets a different security identifier (SID). Even if your username is exactly the same, Windows treats you as a completely different user, denying access to files owned by the old SID until you manually take ownership of them.
Can taking folder ownership remove an Excel file password?
No. Taking ownership only modifies the Windows NTFS file system permissions so you can move, copy, or open the file container. It does not decrypt or remove the internal password protection applied directly to the Excel or Word document contents.
What if I forgot the password for my encrypted Office file?
If you forgot the password used to encrypt the Office document, there is no built-in way to recover it using Windows permissions or Microsoft Office. You will either need to recall the password or utilize a specialized third-party password recovery tool.
Does WPS Office support password-protected Microsoft Office files?
Yes, WPS Office is fully compatible with encrypted Microsoft Office files. When you open a protected .docx or .xlsx file in WPS Office, you will be prompted to enter the password just as you would in Microsoft Office.




