Creating a new file in C: drive gives error 0x80070522


  1. dxm
    Posts : 4
    Windows 7 Ultimate 64-bit (Service Pack 1)
       #1

    Creating a new file in C: drive gives error 0x80070522


    If I try to create a new file in C: drive, I get this error:
    Error 0x80070522: A required privilege is not held by client.
    I first noticed this error after doing a 'frugal' install of BackTrack 5R3 (Linux distribution) setup on C: using UNetbootin. I thought it must be preventing me from creating files so that they don't interfere with the Backtrack setup.

    I ran the setup, but did not install BackTrack. And after that, I installed UNetbootin. Uninstalling removed newly-created 'frugal' install files and UNetbootin boot entry.

    UNetbootin had changed permissions for C: (It seemed so). I tried to revert them manually by changing one permission from 'Applies to: Subfolders and filers' to 'Applies to: This folder, subfolders and files'.

    On some forums (including Microsoft Answers), people were recommending to use
    takeown and cacls. That did not solve my problem. And the commands they suggested applied on all subfolders and files as well. I have no problem with subfolders.

    The previous Owner was 'TrustedInstaller'. After using
    takeown, icacls and cacls, I could not revert the Owner back to TrustedInstaller, or to SYSTEM (as the owner of other partitions is 'SYSTEM') using command-line.

    I have checked the permissions and the permissions for C: seem to be the same as for D: or E:, and they work fine.


    And, yes, a point of note:

    This error appears when I try to create a file by using
    Right-click > New > Text document. Or when I use notepad (or any other application) to save to C: drive. But, if I run notepad (or other applications) as administrator, the file is saved without error.


    UPDATES:

    - System Restore does not solve the problem.

      My Computer


  2. Posts : 5,642
    Windows 10 Pro (x64)
       #2

    It was perfectly normal for you not to be able to create a file in the root of C. It is setup that way by default. Administrative power is required (aka, Run as Administrator) to create file (folders can be made, however!) in the root of C.
      My Computer


  3. dxm
    Posts : 4
    Windows 7 Ultimate 64-bit (Service Pack 1)
    Thread Starter
       #3

    Oh God... I wish I knew that earlier.... I wasted days trying to fix a problem which wasn't a problem in the first place....

    Thanks for your reply.
      My Computer


  4. Posts : 5,642
    Windows 10 Pro (x64)
       #4

    So your solution is to turn off UAC? That is not a valid solution, in my opinion.
      My Computer


  5. Posts : 1
    WINDOWS 10 PRO X64
       #5

    Thank for you help

    but when i use this setting (means turn off the uac) to my win 10pro x64 pc it will off microsoft edge

    please guide me.
      My Computer


  6. Posts : 451
    Windows 7 Home Premium x64
       #6

    The question is, do you really need to create a file in the root C: directory? You can probably create it in another folder if it's a text file or image or something. I can understand if there is a direct need to create in C: but if there isn't then there's no point in going through all this.
      My Computer


 

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

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