No access to my folders

I used my ThinkPad on my job where it was part of a domain. Now I am retired, but could keep my old ThinkPad. I had all my personal data on D: including Desktop, Documents etc.
I continued using it for half-a-year, then Microsoft started complaining about the Windows not being genuine.
I decided do cut all bonds to my computer's past and I pulled the computer out of the domain (which it had not been connected to for half-a-year anyway). I also installed a fresh version of Windows 7 Pro on my C-drive, and right now I am making a last-minute free upgrade to Win 10. Everything works fine, except that I probably was too tired when I stupidly pulled my computer out of the domain without copying my data on the D-drive to a safe place first. I forgot to take into account that my data folders are locked to the domain user who doesn't exist anymore. All permissions and ownerships now belong to a nonexisting user on a (an seen from the computer) nonexisting domain. I have tried to take over the ownership, but I am not allowed to do that - even as a local administrator. It looks like I have to be administrator of the old domain too.

The word CACLS comes to my mind, but I have forgotten too many details of the possible work-arounds to be able to handle this myself, so I need your help.

In order to fascilitate the description in your answer, here are some names:

Old user: kf  on the domain UNDERVISNING
New user: knud on a stand-alone computer
The locked data are subfolders to D:\kf

And yes, it is my own personal data I am trying to hack my way into!

Thank you for helping!

Knud Fjeldsted
Knud FjeldstedManagerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Davis McCarnOwnerCommented:
Try adding Take Ownership to the context menu and then use it on D:\KF.  Here is a tutorial:
Tom CieslikIT EngineerCommented:
To do this I recommend a little tool from Sysinternals called PsExec.exe
Download PsTools from
Unzip the content and copy PsExec.exe to C:\Windows\System32
Open a Command Prompt as admin
Launch a new Command Prompt using PsExec.exe. By using PsExec.exe you will open the new Command Prompt in the System Context and the account doing all the operations will be the LOCAL SYSTEM account.

PSExec.exe -s -i cmd.exe

Try list folders in d:\KF
If you'll see them then run explorer as Local System

PSExec.exe -s -i c:\windows\Explorer.exe

Now you should have all rights to folder and files.
If you still not going to be able copy over whatever you need I belive you can now take ownership and assign full right for your new local user to D:\KF folder and subfolders
Steve KnightIT ConsultancyCommented:
If you are an admin you should be able to take ownership regardless: find a level above the directory, sorry if stating the obvious here in case you have missed it, for Windows 10 - Right click, properties, Advanced button, change owner... replace on subfolders.

From CMD you could use various commands, takeown.exe or icacls.exe - run CMD as administrator

takeown /f d:\kf /r

icacls d:\kf /reset
icacls d:\kf /setowner %username%


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CompTIA Network+

Prepare for the CompTIA Network+ exam by learning how to troubleshoot, configure, and manage both wired and wireless networks.

Knud FjeldstedManagerAuthor Commented:
Thanx to
Davis for a fine reference, to
Tom for giving me knowledge about PsExec, and to
Steve for a very simple solution to the problem. The nice thing about takeown is that instead of terminating when hitting "forbitten areas" as the manual method does, it just asks you if you are sure you want to trespass, and continues if you say yes.
Have a nice X-mas!
Knud FjeldstedManagerAuthor Commented:
- and a Happy New Year!
Steve KnightIT ConsultancyCommented:
No problem, glad it helped. There is a command line option to continue automatically with takeown too I think,  nor by pc to look.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows OS

From novice to tech pro — start learning today.