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: MKLINK Create and Use Links in Windows

07 Feb 2015   #50
Kari

Microsoft Community Contributor Award Recipient

 

Quote   Quote: Originally Posted by blumesan View Post
Many thanks for your reply. I am a bit confused:
...
...
About your original question, it will be messy and I cannot guarantee the outcome but as some files cannot be copied when they are used by the system, the only option as far as I can see it is to boot PC with a so called Live CD (a Linux Live CD or a WinPE disk) and then copy the files.

I read your posts again and I must say I would never do what you are thinking to do; doing this with MKLINK involves too much risks and might cause an unstable OS. That's of course only my very subjective opinion, the Live CD method should work and get you one step further in this.

About using the method I told you in an upgrade or repair installed system, here's a workaround, works like a charm. You just "lie" to Windows, tell it that contrary to what it thinks it has never been upgraded or repaired . Here's how:

information   Information

Open the Registry Editor (WIN + R, type regedit, hit Enter), browse to key HKEY_LOCAL_MACHINE\SYSTEM\Setup

Delete both the DWORD Upgrade (right pane) and KEY Upgrade (left pane), see screenshot. The system warns you that skies can fall down if you delete these items, just laugh loud and accept the deletion:
-7861d1415046982-users-folder-move-location-windows-10-7387d1414118859t-esd-iso-create-bootable.png
Still in Registry Editor, browse to key HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus, if either DWORD CleanupState or DWORD GeneralizationState has any other value than 7, change it to 7 by double clicking the DWORD in question and entering the new value:
-7862d1415047084-users-folder-move-location-windows-10-7388d1414118861t-esd-iso-create-bootable.png
Close the Registry Editor. Open Command Prompt, type slmgr /dli and hit Enter to open Software License Manager. Close it as soon as it opens, close Command Prompt.

Now you can sysprep, Windows thinks it has never been upgraded or sysprepped.


Kari




My System SpecsSystem Spec
.
07 Feb 2015   #51
blumesan

Win 7 x64
 
 

Kari,
Many thanks for your reply and for taking the time to help me out.
After rethinking the issue I have come up with a simpler solution which may work.

First migrate the system partition as it exists to the SSD. This should not be a problem because the current C:\ partition is only 120GB and the SSD is 250GB. After this is done I can simply move the largest sub-folders in the Users folder to a new folder created on an internal HDD. Then I can create a link (junction) on the SSD using the name of the moved sub-folder (Link) and the moved subfolder on the HDD as the target.

How does this sound?

P.S. What happens when one creates a Link to a Target folder containing several sub-folders? Does a reference to the Link gain access to all the sub-folders?
My System SpecsSystem Spec
07 Feb 2015   #52
Kari

Microsoft Community Contributor Award Recipient

 

Quote   Quote: Originally Posted by blumesan View Post
How does this sound?
Sounds good, should work.

Quote   Quote: Originally Posted by blumesan View Post
P.S. What happens when one creates a Link to a Target folder containing several sub-folders? Does a reference to the Link gain access to all the sub-folders?
Yes.
My System SpecsSystem Spec
07 Feb 2015   #53
kado897

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bit Service Pack 1
 
 

Instead of MKLINK you might also consider including the migrated folders in appropriate libraries. That's what I do.
My System SpecsSystem Spec
.

07 Feb 2015   #54
Kari

Microsoft Community Contributor Award Recipient

 

This is also a viable alternative: User Folders - Change Default Location
My System SpecsSystem Spec
07 Feb 2015   #55
blumesan

Win 7 x64
 
 

Quote   Quote: Originally Posted by Kari View Post
This is also a viable alternative: User Folders - Change Default Location
I did consider this alternative, however I discovered that some of the folders in my user folder (e.g. AppData) do not have a "location" tab when you examine properties.

Once again, much thanks for your help.
My System SpecsSystem Spec
07 Feb 2015   #56
Kari

Microsoft Community Contributor Award Recipient

 

To get AppData and even ProgramData folders to another drive, you really need the sysprep method. It is the only method to completely relocate Users (and ProgramData) which works without issues, fail safe.
My System SpecsSystem Spec
08 Feb 2015   #57
blumesan

Win 7 x64
 
 

Kari,

You have been a great help; thank you.
A check of my User profile shows that full half of the space is occupied by folders that can easily be relocated using the procedure you reference. The AppData and Programs can stay where they are.
My System SpecsSystem Spec
11 Feb 2015   #58
shriganesh

Windows 7 Ultimate x64
 
 

Very good tutorial! Even though I am an advanced PC user, I always had a hard time understanding the difference between Links/Junctions etc. This one is nice!!!
Thanks for it!
My System SpecsSystem Spec
16 Feb 2015   #59
schoondoggy

Winows 7 Ultimate
 
 

FYI this also worked for Windows 8, but it appears it causes issues with updates:
Windows 8.1 Update Error 80070026 - Microsoft Community
My System SpecsSystem Spec
Comment

 MKLINK Create and Use Links in Windows




Tutorial Tools Search this Tutorial
Search this Tutorial:

Advanced Search




Similar help and support threads
Windows 7 Tutorial Category
MKLINK, HIBERFIL.SYS amd SSD space
I have two drives, an SSD for the OS (C:) and a platter drive for data (D:). I want to be able to hibernate my PC but don't want HIBERFIL to wear out my SSD as I have lots of memory (24GB) being written to the SSD every time I hibernate. Can anyone please advise me whether it's possible to move...
General Discussion
MKLINK - Can not create what is already there
Not correct sentence but it is original in Swedish. Because i am not a fan of printscreen, so i will post what i have written: C:\Windows\system32>mklink /d "C:\Users\Susanne\AppData\Local\Opera Software\Ope ra Stable" "E:\" I am not really shure about the differens between "j" and "d",...
General Discussion
Create Skydrive share links within file explorer
I'm using skydrive often and I really like it. I also Like the Feature that I can send a link to my friends so that they can download the file. Unfortunately I always need to login on the Web Interface to create the link - with a lot of clicks. Is there a way to create this link directly from...
Software
Links Library - Create
How to Create a "Links" Library with Correct Icon in Windows 7 and Windows 8 This will show you how to create a Links library that has the correct Links folder icon on a glass plate for it's library icon in Windows 7 and Windows 8. The included folder C:\Users\(user-name)\Links is also the...
Tutorials
How to create my own folder links in the Start Menu
On the right hand side you have buttons (User, Pictures, Music, Video,etc) that I don't want/use. Would like to change some of these for my needs. Played around with it a bit but without luck. How do I do this?
Customization


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 00:28.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App