Solved

access denied

Posted on 2016-11-01
7
23 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
7 Comments
 
LVL 27

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 27

Expert Comment

by:MacroShadow
ID: 41868207
Right-click on the drive, select Properties.
In the Security tab add the required permissions.
0
Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

 

Author Comment

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

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 27

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 27

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Determining the an SCCM package name from the Package ID
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

740 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