DOS XCOPY does not copy files due to security

Posted on 2009-12-16
Last Modified: 2012-06-27

I was using XCOPY to copy files off a laptop hard drive that had a corrupt Vista install on it and would no longer boot. I'm copying from the LT booted to the Vista DVD, using the DOS recovery mode, to an external USB hard drive.

I was unable to copy the user files from her desktop and My Docs though because I get an access denied message.

I know the user name and pasword and she id a local administrator. Is there a ways to feed those credentials in to the the XCOPY command so that I can copy all the files off? Or some oher way to get the files?

Question by:akus1
    LVL 38

    Accepted Solution

    Take ownership of the directories.
    LVL 38

    Assisted Solution

    In your scenario you might have to use the takeown command.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
    Online collaboration can help businesses be more efficient, help employees grow their skills and foster a team environment.
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now