Skip to content

How-ToSSD

How to Create Symbolic Links and Junctions in Windows 11

Symbolic links and junctions let a folder appear in two places, which is handy for moving a bulky app folder off a full C: drive. We explain the difference between symbolic links, junctions and hard links, how to create each with mklink or PowerShell, when Developer Mode matters, and how to remove a link without losing data.

By , Systems & Technical Editor

5 min read

How to Create Symbolic Links and Junctions in Windows 11

Symbolic links and junctions let one folder or file appear in two places at once. To any app, a link looks like a normal folder or file, but the data lives somewhere else. That makes them handy for a common PC problem: moving a bulky folder off a full C: drive to a bigger SSD without the app that uses it noticing. Windows 11 has three types of link, created with the built-in mklink command or PowerShell, and each behaves differently. This guide explains the differences and shows how to use them safely, based on Microsoft's documentation as of 29 November 2026. It's a how-to built from Microsoft's docs.

Microsoft says the NTFS file system supports three types of file link: hard links, junctions and symbolic links.

Symbolic link

Junction

Hard link

mklink switch

none (file) or /d (folder)

/j

/h

Links to

Files or folders

Folders only

Files only

Target

Any path, relative or absolute

Folders on local volumes of the same PC, not mapped network drives

Files on the same volume only

  • Symbolic links are file system objects that point to another object, called the target. Microsoft describes them as transparent to users: they appear as normal files or folders and apps can act on them in exactly the same way. They were designed to help with migration and compatibility with UNIX systems, and Microsoft says it implemented them to work just like UNIX links. They've been available on NTFS since Windows Vista.

  • Junctions, also called soft links, link folders only. Microsoft says a junction can link directories on different local volumes on the same computer, so C:\dirx linked to D:\diry is allowed, but not a folder on a mapped network drive, and not individual files.

  • Hard links are a second name for the same file. Microsoft says hard links can't reference folders, only files, and can't reference files on a different volume. Every hard link points at the same data, so changes made through one are instantly visible through the others.

For the most common job, pointing a folder on C: at a folder on another internal drive, a junction is the simplest choice. Symbolic links are more flexible because they work for files as well as folders.

Step 1: Open a terminal with the right rights

mklink is a Command Prompt command, so run it in Command Prompt, or in a Command Prompt tab in Windows Terminal. Microsoft lists it as applying to Windows 11 and Windows 10.

Creating symbolic links is a privileged action. Microsoft's security documentation says the Create symbolic links user right belongs to the Administrators group by default and should only be given to trusted users, because symbolic links can expose security vulnerabilities in applications that aren't designed to handle them. In practice, that means running Command Prompt as administrator. On Windows 11 you can also use sudo for a single elevated command.

There's one exception. Since the Windows 10 Creators Update, Microsoft's Windows developer blog explains, an administrator can enable Developer Mode, after which any user on the PC can run mklink to create symbolic links without an elevated console. You'll find it in Settings > System > Advanced, in the For developers section (on versions before Windows 11 25H2, it's on a separate For developers page). Microsoft's own advice, though, is that there's no need to turn on Developer Mode if you use your PC for everyday things such as gaming, browsing, email or Office, so for occasional links, just use an admin prompt.

Microsoft gives the syntax as:

mklink [[/d] | [/h] | [/j]] <link> <target>

The link is the new name you're creating; the target is where the real data is. The order trips people up, so read it as "make this link, pointing at that target". Put paths with spaces in quotes.

  • File symbolic link (the default): mklink "C:\Users\You\Desktop\notes.txt" "D:\Docs\notes.txt"

  • Folder symbolic link: mklink /d "C:\Projects" "D:\Projects"

  • Junction: mklink /j "C:\Projects" "D:\Projects"

  • Hard link: mklink /h "C:\Data\copy.txt" "C:\Data\original.txt"

Create the link at a path that's free. If a real folder is already at that path, move it out of the way first, which is what the next section covers.

Moving a big folder to another drive with a junction

This is the most useful everyday job for links. Say an app keeps a large data folder in C:\AppData\BigApp and your C: drive is full.

  1. Check for a built-in option first. Many apps can change their own storage location, which is safer than a link. We have guides for moving Steam games, Ollama models and ComfyUI models the supported way.

  2. Close the app completely, including any tray icon or background service.

  3. Copy the folder to the new drive, for example to D:\BigApp. For large folders, Robocopy is more reliable than dragging in File Explorer.

  4. Check the copy, then rename the original rather than deleting it straight away, for example to C:\AppData\BigApp.old.

  5. Create the junction: mklink /j "C:\AppData\BigApp" "D:\BigApp"

  6. Open the app and check it works. Once you're happy, delete BigApp.old to free the space.

Keep the second drive connected: if the target drive is missing, the link points at nothing and the app will behave as if its data has gone. Don't do this with Windows system folders such as C:\Windows or C:\Program Files; it's a tool for app data and your own files.

Using PowerShell instead

PowerShell's New-Item cmdlet can create the same links. Microsoft lists SymbolicLink, Junction and HardLink as item types in a file system drive, for example:

New-Item -ItemType SymbolicLink -Path "C:\Projects" -Target "D:\Projects"

Microsoft notes that creating a SymbolicLink item on Windows requires elevation as administrator, except on Windows 10 build 14972 or newer with Developer Mode turned on. It also notes that relative targets for folder symbolic links work from PowerShell 7.1.

Removing a link should remove only the link, not the data it points to. Microsoft's mklink example removes a folder link with rd and a file link with del, for example rd "C:\Projects". Use plain rd with no extra switches, and double-check the path before pressing Enter. Hard links are different again: each is an equal name for the same file, and Microsoft says you can delete them in any order, regardless of the order in which they were created.

The bottom line

Use mklink /j to create a junction when you want a folder on C: to point at a folder on another local drive, the most common way to free space without breaking an app; use mklink or mklink /d for file or folder symbolic links, which need an admin prompt unless Developer Mode is on; and use mklink /h only for hard links to files on the same drive. Always prefer an app's own option to move its data, close the app and copy the folder before linking, keep the target drive connected, and remove links with rd or del rather than deleting the folder's contents.

Sources

  1. 01Microsoft Learn, mklink (syntax, /d, /h and /j switches, examples, applies to Windows 11 and 10)
  2. 02Microsoft Learn, Hard links and junctions (three NTFS link types, same-volume and cross-volume rules)
  3. 03Microsoft Learn, Symbolic links (definition, transparency, available since Windows Vista)
  4. 04Microsoft Learn, Create symbolic links security policy setting (Administrators by default, security warning)
  5. 05Windows Developer Blog, Symlinks in Windows 10! (Developer Mode allows mklink without elevation)
  6. 06Microsoft Learn, Settings for developers (where to find Developer Mode, not needed for everyday use)
  7. 07Microsoft Learn, New-Item (SymbolicLink, Junction and HardLink item types, elevation note)

About the author

Marcus Thorne

Systems & Technical Editor

Marcus writes Forge PC's step-by-step build, troubleshooting and system optimisation guides. His background spans Windows kernel and power-state diagnostics, UEFI/BIOS configuration, NVMe storage arrays, ATX 3.1 power delivery and running local AI and LLM workloads on consumer graphics cards.

More from Marcus Thorne

Read next

Best Free Emulators for PC in 2026

Best Picks

Best Free Emulators for PC in 2026

The best free emulators for PC in 2026: RetroArch for retro systems in one app, PCSX2 for PS2, Dolphin for GameCube and Wii, DuckStation for PS1 and PPSSPP for PSP. We compare the systems each covers, licences, BIOS needs, hardware requirements and features from each project's official site, and explain how to stay legal with your own games and BIOS dumps.

Hannah Vance6 min

How to Set Up PCSX2 on Windows: Play Your PS2 Games on PC

How-To

How to Set Up PCSX2 on Windows: Play Your PS2 Games on PC

PCSX2 can play much of the PlayStation 2 library on a Windows PC at higher resolutions than the original console. Using PCSX2's official documentation, we explain the hardware you need, how to install it, how to dump the BIOS from your own PS2 and your game discs, which renderer to choose, how to save safely and what to check if games run slowly.

Marcus Thorne8 min

Best Local AI Video Translation and Dubbing Tools in 2026

Best Picks

Best Local AI Video Translation and Dubbing Tools in 2026

Free AI tools can now transcribe a video, translate it and dub it into another language on your own PC. We pick the best: pyVideoTrans, VideoLingo, OpenCreator (formerly KrillinAI) and SoniTranslate, comparing offline use, languages, voices, setup, licences and hardware from each project's official docs.

Hannah Vance5 min

pyVideoTrans vs VideoLingo: Which Local AI Video Translator Should You Use?

Versus

pyVideoTrans vs VideoLingo: Which Local AI Video Translator Should You Use?

pyVideoTrans and VideoLingo are popular open-source tools for translating and dubbing videos with AI on your own PC. Using each project's official docs, we compare installation, speech recognition, translation engines, dubbing voices, offline use, GPU support and licences, and say which suits which job.

Callum Reid4 min