How to get rights to copy to Root of C:

Page 1 of 5 123 ... LastLast

  1. Posts : 95
    Windows 10 Pro
       #1

    How to get rights to copy to Root of C:


    In order to effect a repair using DISM.EXE on Windows 10, the instructions tell me I must copy a file (install.wim) from my setup disk to the root of C: on my computer. However, despite the fact that I am logged in as the administrator and the "properties"of C:\ show that I have copy rights, it tells me that I do not have those rights. How can I copy that file to the root of C:?
      My Computer


  2. Posts : 2,799
    Linux Mint 20.1 Win10Prox64
       #2

    You don't need to copy install.wim to C:, I normally copy to desktop.

    Example:
    DISM /Online /Cleanup-Image /RestoreHealth /Source:WIM:%USERPROFILE%\Desktop\Install.wim:1 /LimitAccess

    But if you want, create a text file. copy and paste:
    Code:
    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
    "EnableLUA"=dword:00000000
    Change file extension to .reg, double click to merge into the registry then reboot PC.
    Last edited by topgundcp; 11 Mar 2018 at 10:29.
      My Computer


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

    dahermit,

    If, as suggested above in that reg file Registry hack, you ever turn off UAC temporarily to get a particular job done then you can choose to do so through the UI instead - see the TenForums UAC tutorial.

    Denis
      My Computer


  4. Posts : 95
    Windows 10 Pro
    Thread Starter
       #4

    No joy. I cut and pasted your DISM command into the Power Shell (as per your first option), ran it, and it generated this error:

    "Image Version: 10.0.15063.0[===========================81.0%============== ]Error: 0x800f081fThe source files could not be found.Use the "Source" option to specify the location of the files that are required to restore the feature. For more information..."

    Your second option was unclear/could not understand the command and how it would access a text file.
      My Computer


  5. Posts : 95
    Windows 10 Pro
    Thread Starter
       #5

    Try3

    If, as suggested above in that reg file Registry hack, you ever turn off UAC temporarily to get a particular job done then you can choose to do so through the UI instead - see the TenForums UAC tutorial.
    I went to the UAC tutorial and it just seemed to show how to change "when I want to be notified"...not how to turn off UAC temporarily. I am 74 years old for Christ's sake...I need a clear step-by-step procedure, have some patience with an old man.
      My Computer


  6. Posts : 16,932
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #6

    dahermit,

    1 About "Your second option was unclear/could not understand the command and how it would access a text file"

    • That code the other user posted was a method for turning off UAC so that you could copy files to the root folder.
    • You can achieve the same thing through the UI [to set UAC to its lowest setting] or using the other methods shown in the tutorial I gave you a link to.
    • With UAC off or at its lowest setting, you can copy files to the root folder. But you would want to turn it back on again afterwards.


    2 More generally, if you are going to use that DISM command, put in the full path to your Desktop instead of using %UserProfile% if you have ever relocated your User files Desktop folder.

    • Windows is very bad at finding a relocated Desktop folder using %UserProfile%\Desktop.
    • I am not a Dism expert and I would study the TenForum tutorials on the subject if I had to check a particular command [I only use Dism to mess about with driver backups and restoration and have never tried its many other uses].


    Denis
    Last edited by Try3; 11 Mar 2018 at 13:12.
      My Computer


  7. Posts : 16,932
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #7

    dahermit,

    Our posts have been crossing over each other but I did not notice your latest post until returning just now.

    Before doing anything else, please could you explain why you are trying to use Dism. It is not a run-of-the-mill tool but it is in fact a very advanced tool.

    If you are at all unsure about Dism use but really do want to use it then I recommend System file check (SFC) Scan and Repair System Files & DISM to fix things SFC cannot - ZigZag article in MSAnswers forum.
    • This article starts off with using SFC to check for problems and then explains how to use Dism to fix them.
    • I have always found ZigZag's procedures to be reliable.
    • ZigZag takes you all the way through in a logical sequence and ends with the command you are trying to use.
    • Note that ZigZag recommends using a "mounted" ISO file as the source of the install.wim. To "mount" an ISO file, you double-click on it then wait up to a minute for it to appear in your File explorer as an additional drive in your system.
    • ZigZag does not suggest copying the install.wim file anywhere but if you have already done so then I think you can just substitute

    the full drive and folder path to where you have put your install.wim file
    in place of
    X:\Sources\Install.wim

    Denis
      My Computer


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

    topgundcp said:
    You don't need to copy install.wim to C:, I normally copy to desktop...
    dahermit said:
    No joy. I cut and pasted your DISM command ... it generated this error:

    Error: 0x800f081f
    The source files could not be found....
    If you want to copy a file to the root of C: you can. It's easiest if you are signed in with an account that is an administrator. When you try to copy you'll see this....

    How to get rights to copy to Root of C:-copy-root-c.png

    ....just click 'Continue' to complete the copying.

    A standard user can copy to C:\ too, but after clicking Continue you'll be asked for the name and password of an administrator account in order to finish the copying.

    If as a standard user you are NOT offered the chance to give an administrator password then you have FAR bigger problems than just not being able to copy. It means you have no administrator accounts at all on this PC - a situation that means you can no longer make any significant changes to your PC, such as creating new users or installing software.
      My Computers


  9. Posts : 2,799
    Linux Mint 20.1 Win10Prox64
       #9

    • Windows is very bad at finding a relocated Desktop folder using %UserProfile%\Desktop.
    What do you mean ? Here's the screen shot:
    How to get rights to copy to Root of C:-p1.jpg
      My Computer


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

    TopgunDCP - "Windows is very bad at finding a relocated Desktop folder using %UserProfile%\Desktop" - the simplest example of the potential for problems can be seen by entering %UserProfile%\Desktop into the File explorer address bar after relocating the Desktop folder. Given the OP's subsequent comments, I do not think this factor is relevant as I imagine that the OP would probably have mentioned user folder relocation. Perhaps the error the OP had using your example was something simpler such as a username that included spaces [I have never tried any Dism commands with a path containing spaces so can only guess that the normal way of using it within " would be sufficient]. However, having said all that, I would like to know why the OP wants to use Dism in the first place. Perhaps there is a simpler alternative for the OP's particular case. Denis
      My Computer


 

  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 16:57.
Find Us




Windows 10 Forums