administrator can't write to C:\


  1. Posts : 29
    windows 10 1909
       #1

    administrator can't write to C:\


    I was trying to save a batch file to C:\. Windows said I didn't have permission to do so. I was an administrator (groups->administrators) and the properties of C:\ showed that I had the full control. Since administrators have full control, I don't know why I couldn't write to C:\. How do I write to C:\?

    The owner of C:\ is trustedinstaller. Maybe I could change the ownership and get the control but I don't want to change the ownership.
      My Computer


  2. Posts : 67
    Win10 Home 64-bit, MX-Linux
       #2

    Windows has a thing called User Account Control. With that on, Administrators do not actually get to do things requiring elevated privileges until they give the OK in a dialog box. If you have turned UAC notifications off, then the action will simply fail without
    giving you the opportunity to OK it. I suggest you turn UAC notifications back on.
      My Computer


  3. Posts : 16,950
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #3

    I suggest you change your mind and save your scripts elsewhere. Just for example, I save mine in a folder C:\Tools that I created for the purpose and set appropriate access permissions for.
    Set up my Tools folder ditty - TenForums

    Windows is touchy about the C:\ drive root folder & applies special protection to it because it used to be used by malware as part of several exploits.

    Best of luck,
    Denis
      My Computer


  4. Posts : 16,950
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #4

    And ask any other questions you want as you sort things out.

    All the best,
    Thanks for the rep,
    Denis



    Welcome to TenForums.

    It's really worth making time to browse through the Tutorial index - there's a shortcut to it at the top of every page.
    - At the foot of the Tutorial index is a shortcut to download it as a spreadsheet.
    - I download a new copy each month.
    - By downloading it as a spreadsheet I can benefit from Excel's excellent filtering capabilities when I search for topics of interest.
    - Tutorials are also listed by category at Tutorials - there's also a shortcut to that at the top of every page.
    - Both tutorial lists are searchable.
    - You can also search for TenForumsTutorials in many general search engines, such as Google, by adding site:tenforums.com/tutorials after your search term. For example,
    taskbar toolbars site:tenforums.com/tutorials

    You can search TenForums using the search box in the top-right corner of all TenForums webpages or using Advanced Search - TenForums
    - You can also search TenForums threads in many general search engines, such as Google, by adding site:tenforums.com after your search term. For example,
    Search for drivers by HardwareID site:tenforums.com
    - [This is what the search box in the top-right corner of TenForums webpages does automatically]
      My Computer


  5. Posts : 31,675
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #5

    yky378 said:
    I was trying to save a batch file to C:\. Windows said I didn't have permission to do so.....
    The owner of C:\ is trustedinstaller. Maybe I could change the ownership and get the control but I don't want to change the ownership.
    Best not to change anything, it's a good way to break your system

    Windows restricts what you can do on the root of C:\, you cannot directly create a new file there.
    For cases like that, save the file somewhere else. Windows will let you move it to C:\ if you click Continue to invoke your admin rights.

    administrator can't write to C:\-image.png
      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 07:29.
Find Us




Windows 10 Forums