Strange Windows 10 Pro File Explorer Behavior

Page 1 of 2 12 LastLast

  1. Posts : 68
    Windows 10 Pro x64 Version 22H2
       #1

    Strange Windows 10 Pro File Explorer Behavior


    I open the File Explorer and navigate to a folder. When I select a file in that folder (it happens to be an App.js file), I can view it in the preview pane. Now, I go up one level to the folder in which that file is located. There, I right click and select Open in new window from the menu. In that new File Explorer window I can't view any file in the Preview pane. Instead, I see a message in the pane that reads: "The file you are attempting to preview could harm your computer. If you trust the file source you received it from, open it to view its contents."

    I have viewed that file many times. I regularly have opened its containing folder in vscode and registered it as from a trusted source. I have also copied its containing folder's contents (it's an src folder) into another location (a template with node_modules installed), and viewed it in the File Explorer's Preview pane often before. I don't understand this behavior. Of course, I can just ignore it. I do have other indirect ways of viewing it. But this is just another annoying, baffling Windows inexplicable behavior. Does anyone know what causes that and why? What is Microsoft trying to do there?

    Sorry, my Windows Version is 10.0.18363. Yes, it's not up to date. My updates have been failing for some time. I really have to re-install. Maybe it has something to do with that? I did get some helpful instructions from you guys on this forum to do the update fix, but I haven't done it yet.
      My Computer


  2. Posts : 21,421
    19044.1586 - 21H2 Pro x64
       #2

    Hello silvanet and welcome to TF ,

    I would recommend making a full backup of your boot drive: Backup and Restore with Macrium Reflect . Do also make the Macrium Reflect bootable Rescue USB. There are tutorials on YouTube showing the use of Macrium Reflect if that would help you.

    Then do Repair Install Windows 10 with an In-place Upgrade to upgrade to the latest Windows 10 version where you should get the option to keep your apps and files. Hopefully this fixes any issues you're having - otherwise we can address them later.
      My Computer


  3. Posts : 68
    Windows 10 Pro x64 Version 22H2
    Thread Starter
       #3

    Thank you so much. I'm following the Macrium tutorial procedures but I ran into a little problem. I have a drive that contains data that was recovered by a company. For the recovery, I purchased a recovery drive from them. For whatever reason, the drive was write protected. I finally got around to copying the files I wanted to keep and now want to use that drive for my backups. I can't remove the write protection. I can't reformat it. I get a message that I don't have sufficient permissions to do that. Can you tell me how I should go about making that drive read/writable?
      My Computer


  4. Posts : 21,421
    19044.1586 - 21H2 Pro x64
       #4

    What kind of drive is it?

    Please be careful and don't format the wrong drive:
    How to Remove Write Protection from a USB
      My Computer


  5. Posts : 68
    Windows 10 Pro x64 Version 22H2
    Thread Starter
       #5

    Thank you so much. I'm following the Macrium tutorial procedures but I ran into a little problem. I have a drive that contains data that was recovered by a company. For the recovery, I purchased a recovery drive from them. For whatever reason, the drive was write protected. I finally got around to copying the files I wanted to keep and now want to use that drive for my backups. I can't remove the write protection. I can't reformat it. I get a message that I don't have sufficient permissions to do that. Can you tell me how I should go about making that drive read/writable? I tried using diskpart and clearing the readonly attribute on the disk, but the process failed to clear the attribute.
      My Computer


  6. Posts : 3,512
    Windows 10 Pro 64-bit 21H1 (May 2021 build 19043.1083)
       #6

    if the drive contains some code that marks it as read-only and assuming you don't care about its current contents, you can use Diskpart to wipe the drive. To avoid any mistakes search for Computer Management and open it. Go to Disk Manager and note the disk number of your target disk (eg disk 1). Now search for cmd to find command prompt, right-click on it and select to Run as Administrator. Type this code to wipe the disk:

    Code:
    diskpart
    list disk
    select disk x
    clean
    exit
    exit
    Substitute x with the appropriate disk number. Last command wipes all partitions and data on disk and returns it at factory state (unpartitioned, blank). Now you should be able to use it however you want. Go to Disk Manager, initialize it and create a new partition before using.
      My Computer


  7. Posts : 68
    Windows 10 Pro x64 Version 22H2
    Thread Starter
       #7

    steve108 said:
    What kind of drive is it?

    Please be careful and don't format the wrong drive:
    How to Remove Write Protection from a USB
    It wasn't a USB flash drive. It's an external hard disk I've got connected on USB 3.0 port.

    It is a Seagage BUP Slim Media I bought from the service that recovered data on a drive that stopped spinning. I actually got two of them over a few years of recovering data from old dying drives. I should have had backups. I didn't. I ran diskpart and when I listed the disks it was there. I could tell from its size and I knew the other drives as well. I had copied the files I wanted to keep. I couldn't format it. I got the "insufficient permissions" message. Then I selected the disk and tried to remove the readonly attribute on it. I didn't think to clean it. I just tried the clear readonly attribute command. That failed.

    To make things worse, Windows stopped recognizing the drive at all. It disappeared from the disk manager. I could not see it on the file explorer. My bios went goofy and also didn't recognize it. Thankfully it was formatted so I could also connect it to my Mac. I did and can see the drive again. I'll try to find how to reformat it there for use on either the Mac or Windows without write protection.
      My Computer


  8. Posts : 21,421
    19044.1586 - 21H2 Pro x64
       #8

    silvanet said:
    It wasn't a USB flash drive. It's an external hard disk I've got connected on USB 3.0 port.

    It is a Seagage BUP Slim Media I bought from the service that recovered data on a drive that stopped spinning. I actually got two of them over a few years of recovering data from old dying drives. I should have had backups. I didn't. I ran diskpart and when I listed the disks it was there. I could tell from its size and I knew the other drives as well. I had copied the files I wanted to keep. I couldn't format it. I got the "insufficient permissions" message. Then I selected the disk and tried to remove the readonly attribute on it. I didn't think to clean it. I just tried the clear readonly attribute command. That failed.

    To make things worse, Windows stopped recognizing the drive at all. It disappeared from the disk manager. I could not see it on the file explorer. My bios went goofy and also didn't recognize it. Thankfully it was formatted so I could also connect it to my Mac. I did and can see the drive again. I'll try to find how to reformat it there for use on either the Mac or Windows without write protection.
    I would download any diagnostics software you can find on Seagate website and run it. They have versions for Mac and Windows.
      My Computer


  9. Posts : 4,782
    Windows 11 Pro 64 Bit 22H2
       #9

    On the Mac, go to Disk Utilities, select the disk, and choose the Erase Tab, choose to Erase (Format) the drive either exFAT or MS DOS (FAT32) That will also remove the Write Protection.
    How to Remove Write Protection from a USB on a Mac
      My Computer


  10. Posts : 14,007
    Win10 Pro and Home, Win11 Pro and Home, Win7, Linux Mint
       #10

    I keep a GPARTED LiveCD on hand [created from the downloaded .iso file] and boot to it for cleaning stubborn drives, wipe off all the partitions which puts it back to the blank as-shipped condition. It runs a 'lite' version of Linux and has several formats available that can be used when creating new. Mac OS X has an issue writing NTFS [don't know about the newer macOS] but can read it. Windows can't create or format a partition over 32GB as FAT32 but can read them if created by other means, example is the 64GB [maybe larger] USB Thumb drives that come factory-formatted as FAT32. Mac, PC and Linux can format as exFAT.
    GParted -- A free application for graphically managing disk
    device partitions
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 17:14.
Find Us




Windows 10 Forums