Is there ANY Way to Save a Tiny File to a Restricted Folder?

Page 1 of 2 12 LastLast

  1. Posts : 16
    Windows 10 Pro x64

    Is there ANY Way to Save a Tiny File to a Restricted Folder?

    HELLO !
    As you all know, there are some folders in Win10 in which MS disallows any edit (Example:: Normally, you Can't Save a file to folder "C:\Program Files\WindowsApps").

    I have a ZERO-byte (Empty) file that I have (for Many Hours) been trying to figure out a way (with ZERO success) to save to the above-named folder. The reason this would be very helpful to me is because I have a Dynamite File-Search Program that permits me to Exclude Any Folder -- BUT! its Exclusion-Engine requires the existence of just a single filename (but Not folder-name) so it can identify the folder(s) the user wants excluded.

    So, I have placed this ZERO-byte file in a dozen Folders, but I continue to get false hits from the Restricted folders that contain HUGE numbers of files simply because MS forbids even a NO-byte addition.

    Does anybody know of ANY way I can get a Zero-byte file into a Folder like C:\Program Files\WindowsApps?
    {I might also point out that IF that WindowsApp folder had natively contained A Single File, that would have sufficed.}

    Thank You For Your Help!!

    - Chuck
      My Computer

  2. Posts : 2,790
    Linux Mint 20.1 Win10Prox64

    For something like this, I would use any LINUX DISTRO such as mint mate: Linux Mint 18.3 "Sylvia" - MATE (64-bit) - Linux Mint
    which does not impose any restriction on Windows Permission. Download and put in a USB stick to boot up then explore the folder to copy file to.
      My Computer

  3. Posts : 25,076
    10 Home x64 (21H2) (10 Pro on 2nd pc)

    topgundcp said:
    For something like this, I would use any LINUX DISTRO....
    Actually, booting anything other than your normal Windows 10 will be enough to gain access. The Windows 10 recovery environment will do. If you are comfortable using a command prompt you can create a file in C:\Program Files\WindowsApps from the Command Prompt in Advanced Startup. Use...

    echo > YourFileName create a small file called YourFileName in the current directory.

    Boot to Advanced Startup Options in Windows 10

    Open Command Prompt at Boot in Windows 10
      My Computers

  4. Posts : 16
    Windows 10 Pro x64
    Thread Starter


    Thank you VERY MUCH TopGunDCP And Bree.


    - Chuck
      My Computer

  5. Posts : 809

    1. Create your 0-byte file somewhere accessible.
    2. Download PSexec (PsExec - Windows Sysinternals | Microsoft Docs) and unzip somewhere.
    3. In an admin CMD window run psexec -i -s cmd
    4. A new CMD window will open with SYSTEM privileges. You can now copy the 0-byte file to your desired destination.

    Note that you'd still have to run your search program as admin since only Admin, SYSTEM, and TrustedInstaller can list the contents of WindowsApps.
      My Computer

  6. Posts : 430
    Windows 10 Pro
      My Computer

  7. Posts : 16
    Windows 10 Pro x64
    Thread Starter

    Thank You PolarNettles ! :)
      My Computer

  8. Posts : 25,076
    10 Home x64 (21H2) (10 Pro on 2nd pc)

    Stitch194 said:
    Chuck Is this any help?
    How to Get Access to WindowsApps Folder in Windows 10
    As inconvenient as it is, I would leave TrustedInstaller as the owner of WindowsApps. You don't want to find out the hard way that TrustedInstaller no longer has the neccessary permissions to update or install apps.
      My Computers

  9. Posts : 16
    Windows 10 Pro x64
    Thread Starter

    Thank you, Stitch!
    Unfortunately, After 2016, MS seems to have changed access to that folder's permissions: When I follow those instructions & get to the Change Permissions Screen, they are all grayed out. Seems that ol' MS has become increasingly domineering with each ""update"".
      My Computer

  10. Posts : 1,983
    Windows 10 x86 14383 Insider Pro and Core 10240

    Dism++ | New Windows Utility
    This has a version of Windows File Explorer in the Toolkit menu that bypasses rights checking:

    Is there ANY Way to Save a Tiny File to a Restricted Folder?-image.png

    You can open and paste files and folders into C:\Program Files\WindowsApps using this tool effortlessly.
      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 19:33.
Find Us

Windows 10 Forums