Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Take Ownership only for files+folders of user "karl"?

01 Jun 2017   #1
pstein

win7pro 64bit
 
 
Take Ownership only for files+folders of user "karl"?

Assume I have a huge directory tree with lots of files and folders.
Some of them belong to (simplified) user "karl" (or unknown user "S-1-5-21-107808153") others not.

When I execute now a command like

takeown /f * /a /r /d y

then ALL files+folders get the "Administrators" account as owner.
I don't want this.

I just want to change ownership ONLY for files+folders with owner "karl" (or unknown
user "S-1-5-21-107808153").

How can I achieve this?

All the existing permissions should be kept.

Maybe there is another command which allows an operation "replace user 'karl' with user 'Adminstrators'"?

Peter


My System SpecsSystem Spec
.
01 Jun 2017   #2
Brink

64-bit Windows 10 Pro
 
 

Hello Peter,

If you like, you can use the "Take Ownership" context menu added from the tutorial below to make doing this easy. It will change the owner and give full permission to the current administrator account instead of the "Administrators" group.

Take Ownership Shortcut - Windows 7 Help Forums
My System SpecsSystem Spec
Reply

 Take Ownership only for files+folders of user "karl"?




Thread Tools




Similar help and support threads
Thread Forum
Switch ownership of "normal" folders (tree): Disadvantages?
When I inspect my file system some of my "normal" (=non system) folders then I can see owners like "S-1-5-21-15185678....." or "S-1-5-21-107808153 Why do only approx 30% of all folders have "S-1-5-21-151..." as owner and all others "Administrator"? I dislike these "S-1-5-21-......" owners...
General Discussion
Does "Windows.old" keep "Date Created" timestamps of files & folders ?
Hi. I'm thinking about repairing Windows 7Home Premium 32bit with the DVD, because of BSOD, but I hesitate. I first need to know if the backup folder called "Windows.old" will keep the "Date Create" attribute of all files or update it to the current date. Thanks. If you don't know but have...
Backup and Restore
"Take Ownership" of files not working
Hey all, I have been wracking my brain trying to find a way to fix this issue. Backstory: (2010) My computers hard drive (herein referred to as driveA) filled up and I installed a second drive (herein referred to as driveB) to hold all my files. Simple. Next, I updated my windows from XP to 7...
General Discussion
Access denied (5) when trying to backup "User-folders" using Syncback
Hi, Brand new PC. Only one user (which is Admin). Running Syncback trying to backup "user-folders" like images and videos etc I get Access denied problems. I'm able to browse the folders just fine. I have checked the check-box on the program to run as admin. I do NOT want to use Libraries!...
Backup and Restore
Bypass "Ownership" and "permissions" to files altogether!
Hello all! I don't understand what the issue is but I am logged on as administrator on my computer and only a few of my files I can access. the window will pop up stating that i don't have permission to view the file! if I am the adminitrator i should have full access to any file, right? this...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 05:00.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App