Windows cannot open or copy a .DAT file (originally a .DOCX) after reinstalling Windows – shows encryption/permission error


mehdi1976

New member
Local time
8:27 AM
Posts
1
OS
windows
I had a normal .DOCX file in my previous Windows installation. A long time ago, I manually changed its extension to .DAT (I did not use encryption or EFS).

After reinstalling Windows (clean install), Windows now refuses to:

  • open the file
  • copy it
  • rename it
  • or open it even after changing extension back to .DOCX
Windows shows a message related to encryption or permission, as if the file is locked or encrypted.

Important notes:

  • I never enabled “Encrypt contents to secure data”
  • The file was inside my previous Windows user profile
  • I no longer have access to the old Windows user or the old SID
  • Even with antivirus (NOD32) disabled, the behavior is the same
  • Other files copied from the old Windows work fine — only this .DAT file is locked
It looks like Windows thinks the file belongs to the previous user SID or considers it encrypted, but I cannot decrypt or take ownership.

How can I regain access to this file? Is there any method to override the encryption/permissions or recover the file contents?
 

My Computer

System One

  • OS
    windows
    Computer type
    Laptop
    Manufacturer/Model
    dell
Most .DAT files are binary files, sometimes they are just plain text files.
You can't just rename a .DOCX file, which in fact is a XML format, and expect it to function as .DAT.

You could, if the desired destination file has to be a plain text file, write that file into plain text (within Word or similar app).
And then rename it to .DAT. That should function.

I am not surprized that MS has decided to avoid the use of renamed .DOCX files as .DAT. files.
Would have expected they would do that earlier already.

BTW. I did a search for .DAT files on my system drive, and changed the extension of 5 of them (after copying them to a scratch area).
The files that I took were:
1. aeheur_gwf.dat
2. amde31a.dat
3. EdgeWebView.dat
4. tsprint-datafile.dat
5. wia.dat

Then I changed the extension to .txt and tried to open them.
1 to 3 reported to be binary files
For instance file 1 was looking like this:

000806.webp

While file 4 showed pure text:
This is the data file for the Terminal Services Easy Print
printer driver. It does not contain any real data - it is just
that the printer driver model requires us to have a data file,
and we oblige!

Sincerely,
G.a.u.r.a.v. D.a.g.a
Z.a.r.d.o.s.h.t K.a.s.h.e.f.f
V.i.s.h.a.l M.a.r.u
M.a.k.a.r.a.n.d P.a.t.w.a.r.d.h.a.n
P.r.i.y.a R.a.g.h.a.v.a.n
V.l.a.d.i.m.i.r S.t.o.y.a.n.o.v

And that happens with many files.

I will try to simulate your problem and see if I can reproduce it, by renaming a .DOCX file into .DAT., but that takes time.
 
Last edited:

My Computer

System One

  • OS
    Windows 11 Pro 25H2 26200.8457
    Computer type
    PC/Desktop
    Manufacturer/Model
    Build by vendor to my specs
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    MSI PRO B550M-P Gen3
    Memory
    Kingston FURY Beast 2x16GB DIMM DDR4 2666 CL16
    Graphics Card(s)
    MSI GeForce GT 730 2GB LP V1
    Sound Card
    Creative Sound Blaster Audigy FX
    Monitor(s) Displays
    Samsung S24E450F 24"
    Screen Resolution
    1920 x 1080
    Hard Drives
    1. SSD Crucial P5 Plus 500GB PCIe M.2
    2. SSD-SATA Crucial MX500-2TB
    PSU
    Corsair CV650W
    Case
    Cooler Master Silencio S400
    Cooling
    Cooler Master Hyper H412R with Be Quiet Pure Wings 2 PWM BL038 fan
    Keyboard
    Cherry Stream (wired, scissor keys)
    Mouse
    Asus WT465 (wireless)
    Internet Speed
    70 Mbps down / 80 Mbps up
    Browser
    Firefox 130.0
    Antivirus
    F-Secure (Internetprovider version)
    Other Info
    Router: FRITZBox 7490
    Oracle VirtualBox 7 for testing software on Win 10 or 11
I did try 3 files, that were normal .docx documents. Changed them to .dat files and opened them in the notebook app.
I got the warning that they were binary files, nevertheless opened them and they looked like this:


000807.webp

But when I renamed them into .docx, I could use them again in a similar app like Word!

So I have not been able to reproduce your problem.
Or did you try to use that .DAT file in some program, different from the notebook app I used?
 

My Computer

System One

  • OS
    Windows 11 Pro 25H2 26200.8457
    Computer type
    PC/Desktop
    Manufacturer/Model
    Build by vendor to my specs
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    MSI PRO B550M-P Gen3
    Memory
    Kingston FURY Beast 2x16GB DIMM DDR4 2666 CL16
    Graphics Card(s)
    MSI GeForce GT 730 2GB LP V1
    Sound Card
    Creative Sound Blaster Audigy FX
    Monitor(s) Displays
    Samsung S24E450F 24"
    Screen Resolution
    1920 x 1080
    Hard Drives
    1. SSD Crucial P5 Plus 500GB PCIe M.2
    2. SSD-SATA Crucial MX500-2TB
    PSU
    Corsair CV650W
    Case
    Cooler Master Silencio S400
    Cooling
    Cooler Master Hyper H412R with Be Quiet Pure Wings 2 PWM BL038 fan
    Keyboard
    Cherry Stream (wired, scissor keys)
    Mouse
    Asus WT465 (wireless)
    Internet Speed
    70 Mbps down / 80 Mbps up
    Browser
    Firefox 130.0
    Antivirus
    F-Secure (Internetprovider version)
    Other Info
    Router: FRITZBox 7490
    Oracle VirtualBox 7 for testing software on Win 10 or 11
You might be able to unlock the file by using an unlocker program.
I use the freeware program ThisIsMyFile for that.
Download adress: ThisIsMyFile 4.44 Download
But there are more of such programs!
 

My Computer

System One

  • OS
    Windows 11 Pro 25H2 26200.8457
    Computer type
    PC/Desktop
    Manufacturer/Model
    Build by vendor to my specs
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    MSI PRO B550M-P Gen3
    Memory
    Kingston FURY Beast 2x16GB DIMM DDR4 2666 CL16
    Graphics Card(s)
    MSI GeForce GT 730 2GB LP V1
    Sound Card
    Creative Sound Blaster Audigy FX
    Monitor(s) Displays
    Samsung S24E450F 24"
    Screen Resolution
    1920 x 1080
    Hard Drives
    1. SSD Crucial P5 Plus 500GB PCIe M.2
    2. SSD-SATA Crucial MX500-2TB
    PSU
    Corsair CV650W
    Case
    Cooler Master Silencio S400
    Cooling
    Cooler Master Hyper H412R with Be Quiet Pure Wings 2 PWM BL038 fan
    Keyboard
    Cherry Stream (wired, scissor keys)
    Mouse
    Asus WT465 (wireless)
    Internet Speed
    70 Mbps down / 80 Mbps up
    Browser
    Firefox 130.0
    Antivirus
    F-Secure (Internetprovider version)
    Other Info
    Router: FRITZBox 7490
    Oracle VirtualBox 7 for testing software on Win 10 or 11
Please show a screenshot of the actual error. There may be detail there that could help us help you.

Check your Windows Defender settings and ensure that Controlled folder access is OFF.

Then try this simple test:
  • Create a text file (i.e. right-click desktop and select New > Text document)
  • Change the text file's extension from .TXT to .DAT
  • Double-click the file. Do you get the same error?
  • Right-click the file and select Open with. What is displayed (post a screenshot)?
 

My Computer

System One

  • OS
    Windows 10/11
    Computer type
    Laptop
    Manufacturer/Model
    Acer
Windows now refuses to:
...
open it even after changing extension back to .DOCX

1 Please post a screenshot of the error dialog shown when you try to open it as a .docx file.
[Do please crop the rest of the screenshot out so you are only posting the bit that matters.]

2 Which applications have you opened the file in since renaming it as .dat?

3 How does its Date modified compare to the date you last opened it in MSWord?

4 What were you trying to achieve by renaming it to .dat?


Denis
 

My Computer

System One

  • OS
    Windows 11 Home x64 Version 25H2 Build 26200.8037
Use this free online converter to Convert your .DAT file to .DOCx
 

My Computer

System One

  • OS
    Windows 11 Pro Insider 64 bit 25H2 26200.5742
    Computer type
    PC/Desktop
    Manufacturer/Model
    Gigabyte Z390 UD
    CPU
    Intel Core i7 9700K 3.60
    Motherboard
    Gigabyte Z390 UD
    Memory
    16 GB
    Graphics Card(s)
    nVidia GEForce RTX 2060 Super
    Sound Card
    onboard
    Monitor(s) Displays
    Two 27" Dell 4K monitors
    Screen Resolution
    3840 x 2160
    Hard Drives
    M.2 NVME SSD, 500 GB; Two 2TB Mechanical HDD's
    PSU
    850w PSU
    Case
    Cyberpower PC
    Cooling
    Water cooled
    Keyboard
    Backlit Cyberpower gaming keyboard
    Mouse
    Backlit Cyberpower gaming mouse
    Internet Speed
    1 GB mbps
    Browser
    Brave
    Antivirus
    Windows Security
Back
Top Bottom