Solved

access denied

Posted on 2016-11-01
7
21 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 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
Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

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.
How to record audio from input sources to your PC – connected devices, connected preamp to record vinyl discs, streaming media, that play through your audio card: Vista, Windows 7, Windows 8, Windows 8.1 and Windows 10 – both 32 bit & 64.
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

770 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