How would I use Takeown to take ownership of all folders on one drive?
up vote
5
down vote
favorite
I have a hard drive which I need to recover specific files from but all the folders in the K: drive are denying me access even though I took owner ship of the full drive I.E
C:WindowsSystem32>takeown /F K:
This granted me access to the drive and see the folders but I can not access any of the folders after that.
Is there a way in which I can use Takeown to apply ownership to every directory on the drive>
windows-7 cmd.exe
add a comment |
up vote
5
down vote
favorite
I have a hard drive which I need to recover specific files from but all the folders in the K: drive are denying me access even though I took owner ship of the full drive I.E
C:WindowsSystem32>takeown /F K:
This granted me access to the drive and see the folders but I can not access any of the folders after that.
Is there a way in which I can use Takeown to apply ownership to every directory on the drive>
windows-7 cmd.exe
add a comment |
up vote
5
down vote
favorite
up vote
5
down vote
favorite
I have a hard drive which I need to recover specific files from but all the folders in the K: drive are denying me access even though I took owner ship of the full drive I.E
C:WindowsSystem32>takeown /F K:
This granted me access to the drive and see the folders but I can not access any of the folders after that.
Is there a way in which I can use Takeown to apply ownership to every directory on the drive>
windows-7 cmd.exe
I have a hard drive which I need to recover specific files from but all the folders in the K: drive are denying me access even though I took owner ship of the full drive I.E
C:WindowsSystem32>takeown /F K:
This granted me access to the drive and see the folders but I can not access any of the folders after that.
Is there a way in which I can use Takeown to apply ownership to every directory on the drive>
windows-7 cmd.exe
windows-7 cmd.exe
asked Sep 19 '14 at 10:53
ThunderToes
25031028
25031028
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
up vote
15
down vote
accepted
Is there a way in which I can use takeown
to apply ownership to every directory on the drive?
This can be done in two different ways, using takeown
or icacls
.
Take Ownership of an Object using takeown
Command
This command will take ownership of the folder or drive, and all files and subfolders in the folder or drive.
Open an elevated command prompt (administrator).
To grant ownership to administrators group:
takeown /F "full path of folder or drive" /A /R /D Y
To Take Ownership of a Folder or Drive and All Contents using icacls
Command
Open an elevated command prompt (administrator).
To set administrators group as owner:
icacls "full path of folder or drive" /setowner "Administrators" /T /C
Further Reading
An A-Z Index of the Windows CMD command line - An excellent reference for all things Windows cmd line related.
icacls - Change file and folder permissions - display or modify Access Control Lists (ACLs) for files and folders.
takeown - Take ownership of a file (Windows 2003/7/2008).
This provides a lot more depth Thank you :)
– ThunderToes
Sep 19 '14 at 11:09
This worked for me, but I had to do it from a system level prompt. Running from a cmd.exe as Administrator was not enough. To do that, I first had to runpsexec -i -s cmd.exe
from an Administrator command prompt, then run the commands from this answer.
– Andrew Brock
Sep 27 at 8:15
add a comment |
up vote
1
down vote
You will need to add a /R on your command to recurse throughout the subfolders and files...
Remembering also that the NTFS permissions also come in to affect once you are the owner.. If the NTFS permissions does not allow access to the creator/owner then it will make no difference being the owner...
– CharlesH
Sep 19 '14 at 11:08
yes thank you for this I just this minute found it out haha
– ThunderToes
Sep 19 '14 at 11:08
add a comment |
up vote
1
down vote
Sorry Stupid question, but for future reference to other users, I used Takeown /? to find that I could write in CMD:
C:WindowsSystem32>takeown /f K: /R
This then gave me permission to all folder and subfolders
If you use the takeown command or any command in CMD use /? to get the information on what features you can use and what they do.
add a comment |
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
15
down vote
accepted
Is there a way in which I can use takeown
to apply ownership to every directory on the drive?
This can be done in two different ways, using takeown
or icacls
.
Take Ownership of an Object using takeown
Command
This command will take ownership of the folder or drive, and all files and subfolders in the folder or drive.
Open an elevated command prompt (administrator).
To grant ownership to administrators group:
takeown /F "full path of folder or drive" /A /R /D Y
To Take Ownership of a Folder or Drive and All Contents using icacls
Command
Open an elevated command prompt (administrator).
To set administrators group as owner:
icacls "full path of folder or drive" /setowner "Administrators" /T /C
Further Reading
An A-Z Index of the Windows CMD command line - An excellent reference for all things Windows cmd line related.
icacls - Change file and folder permissions - display or modify Access Control Lists (ACLs) for files and folders.
takeown - Take ownership of a file (Windows 2003/7/2008).
This provides a lot more depth Thank you :)
– ThunderToes
Sep 19 '14 at 11:09
This worked for me, but I had to do it from a system level prompt. Running from a cmd.exe as Administrator was not enough. To do that, I first had to runpsexec -i -s cmd.exe
from an Administrator command prompt, then run the commands from this answer.
– Andrew Brock
Sep 27 at 8:15
add a comment |
up vote
15
down vote
accepted
Is there a way in which I can use takeown
to apply ownership to every directory on the drive?
This can be done in two different ways, using takeown
or icacls
.
Take Ownership of an Object using takeown
Command
This command will take ownership of the folder or drive, and all files and subfolders in the folder or drive.
Open an elevated command prompt (administrator).
To grant ownership to administrators group:
takeown /F "full path of folder or drive" /A /R /D Y
To Take Ownership of a Folder or Drive and All Contents using icacls
Command
Open an elevated command prompt (administrator).
To set administrators group as owner:
icacls "full path of folder or drive" /setowner "Administrators" /T /C
Further Reading
An A-Z Index of the Windows CMD command line - An excellent reference for all things Windows cmd line related.
icacls - Change file and folder permissions - display or modify Access Control Lists (ACLs) for files and folders.
takeown - Take ownership of a file (Windows 2003/7/2008).
This provides a lot more depth Thank you :)
– ThunderToes
Sep 19 '14 at 11:09
This worked for me, but I had to do it from a system level prompt. Running from a cmd.exe as Administrator was not enough. To do that, I first had to runpsexec -i -s cmd.exe
from an Administrator command prompt, then run the commands from this answer.
– Andrew Brock
Sep 27 at 8:15
add a comment |
up vote
15
down vote
accepted
up vote
15
down vote
accepted
Is there a way in which I can use takeown
to apply ownership to every directory on the drive?
This can be done in two different ways, using takeown
or icacls
.
Take Ownership of an Object using takeown
Command
This command will take ownership of the folder or drive, and all files and subfolders in the folder or drive.
Open an elevated command prompt (administrator).
To grant ownership to administrators group:
takeown /F "full path of folder or drive" /A /R /D Y
To Take Ownership of a Folder or Drive and All Contents using icacls
Command
Open an elevated command prompt (administrator).
To set administrators group as owner:
icacls "full path of folder or drive" /setowner "Administrators" /T /C
Further Reading
An A-Z Index of the Windows CMD command line - An excellent reference for all things Windows cmd line related.
icacls - Change file and folder permissions - display or modify Access Control Lists (ACLs) for files and folders.
takeown - Take ownership of a file (Windows 2003/7/2008).
Is there a way in which I can use takeown
to apply ownership to every directory on the drive?
This can be done in two different ways, using takeown
or icacls
.
Take Ownership of an Object using takeown
Command
This command will take ownership of the folder or drive, and all files and subfolders in the folder or drive.
Open an elevated command prompt (administrator).
To grant ownership to administrators group:
takeown /F "full path of folder or drive" /A /R /D Y
To Take Ownership of a Folder or Drive and All Contents using icacls
Command
Open an elevated command prompt (administrator).
To set administrators group as owner:
icacls "full path of folder or drive" /setowner "Administrators" /T /C
Further Reading
An A-Z Index of the Windows CMD command line - An excellent reference for all things Windows cmd line related.
icacls - Change file and folder permissions - display or modify Access Control Lists (ACLs) for files and folders.
takeown - Take ownership of a file (Windows 2003/7/2008).
edited Oct 27 '16 at 20:20
answered Sep 19 '14 at 11:08
DavidPostill♦
102k25220255
102k25220255
This provides a lot more depth Thank you :)
– ThunderToes
Sep 19 '14 at 11:09
This worked for me, but I had to do it from a system level prompt. Running from a cmd.exe as Administrator was not enough. To do that, I first had to runpsexec -i -s cmd.exe
from an Administrator command prompt, then run the commands from this answer.
– Andrew Brock
Sep 27 at 8:15
add a comment |
This provides a lot more depth Thank you :)
– ThunderToes
Sep 19 '14 at 11:09
This worked for me, but I had to do it from a system level prompt. Running from a cmd.exe as Administrator was not enough. To do that, I first had to runpsexec -i -s cmd.exe
from an Administrator command prompt, then run the commands from this answer.
– Andrew Brock
Sep 27 at 8:15
This provides a lot more depth Thank you :)
– ThunderToes
Sep 19 '14 at 11:09
This provides a lot more depth Thank you :)
– ThunderToes
Sep 19 '14 at 11:09
This worked for me, but I had to do it from a system level prompt. Running from a cmd.exe as Administrator was not enough. To do that, I first had to run
psexec -i -s cmd.exe
from an Administrator command prompt, then run the commands from this answer.– Andrew Brock
Sep 27 at 8:15
This worked for me, but I had to do it from a system level prompt. Running from a cmd.exe as Administrator was not enough. To do that, I first had to run
psexec -i -s cmd.exe
from an Administrator command prompt, then run the commands from this answer.– Andrew Brock
Sep 27 at 8:15
add a comment |
up vote
1
down vote
You will need to add a /R on your command to recurse throughout the subfolders and files...
Remembering also that the NTFS permissions also come in to affect once you are the owner.. If the NTFS permissions does not allow access to the creator/owner then it will make no difference being the owner...
– CharlesH
Sep 19 '14 at 11:08
yes thank you for this I just this minute found it out haha
– ThunderToes
Sep 19 '14 at 11:08
add a comment |
up vote
1
down vote
You will need to add a /R on your command to recurse throughout the subfolders and files...
Remembering also that the NTFS permissions also come in to affect once you are the owner.. If the NTFS permissions does not allow access to the creator/owner then it will make no difference being the owner...
– CharlesH
Sep 19 '14 at 11:08
yes thank you for this I just this minute found it out haha
– ThunderToes
Sep 19 '14 at 11:08
add a comment |
up vote
1
down vote
up vote
1
down vote
You will need to add a /R on your command to recurse throughout the subfolders and files...
You will need to add a /R on your command to recurse throughout the subfolders and files...
answered Sep 19 '14 at 11:07
CharlesH
1,8732817
1,8732817
Remembering also that the NTFS permissions also come in to affect once you are the owner.. If the NTFS permissions does not allow access to the creator/owner then it will make no difference being the owner...
– CharlesH
Sep 19 '14 at 11:08
yes thank you for this I just this minute found it out haha
– ThunderToes
Sep 19 '14 at 11:08
add a comment |
Remembering also that the NTFS permissions also come in to affect once you are the owner.. If the NTFS permissions does not allow access to the creator/owner then it will make no difference being the owner...
– CharlesH
Sep 19 '14 at 11:08
yes thank you for this I just this minute found it out haha
– ThunderToes
Sep 19 '14 at 11:08
Remembering also that the NTFS permissions also come in to affect once you are the owner.. If the NTFS permissions does not allow access to the creator/owner then it will make no difference being the owner...
– CharlesH
Sep 19 '14 at 11:08
Remembering also that the NTFS permissions also come in to affect once you are the owner.. If the NTFS permissions does not allow access to the creator/owner then it will make no difference being the owner...
– CharlesH
Sep 19 '14 at 11:08
yes thank you for this I just this minute found it out haha
– ThunderToes
Sep 19 '14 at 11:08
yes thank you for this I just this minute found it out haha
– ThunderToes
Sep 19 '14 at 11:08
add a comment |
up vote
1
down vote
Sorry Stupid question, but for future reference to other users, I used Takeown /? to find that I could write in CMD:
C:WindowsSystem32>takeown /f K: /R
This then gave me permission to all folder and subfolders
If you use the takeown command or any command in CMD use /? to get the information on what features you can use and what they do.
add a comment |
up vote
1
down vote
Sorry Stupid question, but for future reference to other users, I used Takeown /? to find that I could write in CMD:
C:WindowsSystem32>takeown /f K: /R
This then gave me permission to all folder and subfolders
If you use the takeown command or any command in CMD use /? to get the information on what features you can use and what they do.
add a comment |
up vote
1
down vote
up vote
1
down vote
Sorry Stupid question, but for future reference to other users, I used Takeown /? to find that I could write in CMD:
C:WindowsSystem32>takeown /f K: /R
This then gave me permission to all folder and subfolders
If you use the takeown command or any command in CMD use /? to get the information on what features you can use and what they do.
Sorry Stupid question, but for future reference to other users, I used Takeown /? to find that I could write in CMD:
C:WindowsSystem32>takeown /f K: /R
This then gave me permission to all folder and subfolders
If you use the takeown command or any command in CMD use /? to get the information on what features you can use and what they do.
answered Sep 19 '14 at 11:08
ThunderToes
25031028
25031028
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f813878%2fhow-would-i-use-takeown-to-take-ownership-of-all-folders-on-one-drive%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown