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

Page 1 of 2 12 LastLast

  1. Posts : 10
    Windows 10 Pro x64
       10 Dec 2017 #1

    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 ComputerSystem Spec


  2. Posts : 2,253
    Ubuntu14.04x64 MintMate17x64 Win10Prox64
       10 Dec 2017 #2

    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 ComputerSystem Spec


  3. Posts : 5,545
    10 Home x64 (1709) (10 Pro on 2nd pc)
       10 Dec 2017 #3

    topgundcp said: View Post
    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

    ...to 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 ComputersSystem Spec


  4. Posts : 10
    Windows 10 Pro x64
    Thread Starter
       10 Dec 2017 #4

    WOW!

    Thank you VERY MUCH TopGunDCP And Bree.

    VERY HELPFUL INDEED! !

    - Chuck
      My ComputerSystem Spec

  5.    10 Dec 2017 #5

    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 ComputerSystem Spec

  6.    10 Dec 2017 #6
      My ComputerSystem Spec


  7. Posts : 10
    Windows 10 Pro x64
    Thread Starter
       10 Dec 2017 #7

    Thank You PolarNettles !
      My ComputerSystem Spec


  8. Posts : 5,545
    10 Home x64 (1709) (10 Pro on 2nd pc)
       10 Dec 2017 #8

    Stitch194 said: View Post
    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 ComputersSystem Spec


  9. Posts : 10
    Windows 10 Pro x64
    Thread Starter
       10 Dec 2017 #9

    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 ComputerSystem Spec


  10. Posts : 1,922
    Windows 10 x86 14383 Insider Pro and Core 10240
       11 Dec 2017 #10

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

    Click image for larger version. 

Name:	image.png 
Views:	3 
Size:	71.8 KB 
ID:	167727

    You can open and paste files and folders into C:\Program Files\WindowsApps using this tool effortlessly.
      My ComputersSystem Spec


 
Page 1 of 2 12 LastLast

Related Threads
Hi, I can't access to Change folder option in Windows 10 File Explorer. Gives Error : “This operation has been cancelled due to restrictions in effect on this computer. Please contact your system administrator.” 148973
Hi all, I want to be able to view the files that I've accessed in File Explorer so that I can review (and preferably search through) them at any time. Essentially what I want is the "Recent items" menu that comes up on the File Explorer homepage,...
hi i transfer img files from android via bt to pc, after all have been transferred, win10 asks in which folder they must be saved - this is the easy part. if there is a transmission error on say img 200 out of 250, bt freezes and i have to redo...
Hello everyone. New to the forum. I have recently downloaded Windows 10. My clients will send me a PDF document, and up until now I have been saving them to a specified folder. Now when I try to save it says something like "you do not have...
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 14:26.
Find Us