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
Denmark
Knud FjeldstedManagerAsked:
Who is Participating?
 
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%

Steve
0
 
Davis McCarnOwnerCommented:
Try adding Take Ownership to the context menu and then use it on D:\KF.  Here is a tutorial:
https://www.tenforums.com/tutorials/3841-add-take-ownership-context-menu-windows-10-a.html
0
 
Tom CieslikIT EngineerCommented:
To do this I recommend a little tool from Sysinternals called PsExec.exe
Download PsTools from https://download.sysinternals.com/files/PSTools.zip
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
0
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

 
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
1
 
Knud FjeldstedManagerAuthor Commented:
- and a Happy New Year!
0
 
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.

Syeve
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.