Solved

access denied

Posted on 2016-11-01
7
19 Views
Last Modified: 2016-11-24
i have a HDD with XP on, my PC is not booting so i removed the HDD and inserted it as  external, i am trying to copy the data off to backup, but eachtime i say copy and paste it gives me the following error: you don't currently have permission to access this folder.
0
Comment
Question by:Bizfolio
  • 4
  • 2
7 Comments
 
LVL 26

Expert Comment

by:MacroShadow
ID: 41868129
Assuming you have a admin account, copy the following text to a text file, save it as GrantPermissions.vbs and run it from the HDD now connected as an external drive.
    Dim oShell, oFSO, oNetWork, oFile, strSysDir, strPath, strScriptDir, strUserName, strToolPath, strCommand

    Set oFSO = CreateObject("Scripting.FileSystemObject")
    Set oShell = CreateObject("WScript.Shell")
    Set oNetWork = CreateObject("WScript.NetWork")

    strSysDir = oFSO.GetSpecialFolder(1).Path
    If Right(strSysDir, 1) <> "\" Then strSysDir = strSysDir & "\"

    strToolPath = strSysDir & "icacls.exe"
    strPath = Wscript.ScriptFullName
    Set oFile = oFSO.GetFile(strPath)
    strScriptDir = oFSO.GetParentFolderName(oFile)
    strUserName = oNetWork.UserName

    strCommand = """" & strToolPath & """" & "" & strScriptDir & "" & "  /grant " & """ & strUserName & """ & ":(OI)(CI)F /T"

    oShell.Run strCommand, 1, True

Open in new window

0
 

Author Comment

by:Bizfolio
ID: 41868199
hi
I followed the steps above, but still no luck.

any other suggestions?
0
 
LVL 26

Expert Comment

by:MacroShadow
ID: 41868207
Right-click on the drive, select Properties.
In the Security tab add the required permissions.
0
Promote certifications in your email signature

Has your company recently won an award or achieved a certification? They'll no doubt want to show it off. Email signature images used to promote certifications & awards can instantly establish credibility with a recipient and provide you with numerous benefits.

 

Author Comment

by:Bizfolio
ID: 41868250
nope still not working
0
 
LVL 23

Accepted Solution

by:
NVIT earned 250 total points (awarded by participants)
ID: 41868605
Take ownership of the drive.

Click Start , click All programs , and click Accessories . 2. Right-click Command Prompt and click Run as administrator . takeown /F (external drive letter) and press Enter

http://answers.microsoft.com/en-us/windows/forum/windows_7-security/access-denied-on-external-hard-drive/a534c0e9-0f19-4d1a-be93-52d7b1a0e922

If the OS is XP, takeown may not be available. Instead, use the Security tab per https://technet.microsoft.com/en-us/library/Cc753659.aspx
0
 
LVL 26

Assisted Solution

by:MacroShadow
MacroShadow earned 250 total points (awarded by participants)
ID: 41875623
You can use a freeware app NTFS Access to quickly and easily remedy your problem.
0
 
LVL 26

Expert Comment

by:MacroShadow
ID: 41900305
Question not closed by OP. I recommend a point split between the two answers which should solve the OPs question.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup". After a while, you have entered a loop for Auto repair which does not fix anything and you will be in a  panic as all your work w…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…

706 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

19 Experts available now in Live!

Get 1:1 Help Now