Pcornel
Windows · Filesystem

Junctions

Cheat sheet · https://pcornel.dk/topic.php?topic=2967

Back to the Topic

Answer

A junction is an NTFS reparse point that redirects a folder to another local folder, like C:\Documents and Settings to C:\Users. Create one with mklink /J; it works without admin rights.

Remember

  • Junctions redirect only to local folders.
  • They do not need admin rights.
  • Backup tools may follow or skip them.

First checks

  • Get-Volume — volumes, filesystem type, health and free space
  • fsutil fsinfo volumeinfo C: — filesystem features
  • chkdsk C: /scan — online scan
  • Get-WinEvent -FilterHashtable @{LogName='System';ProviderName='Ntfs'} -MaxEvents 20 — NTFS events

Verify in this order

junction (reparse point) → redirected to a local directory

Where it usually breaks

First mismatch in target identity/version → persistent configuration/source of truth → provider/service/control plane → runtime/effective state → user/workload-visible result → event/log evidence; preserve identity/native error/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2967

Confirmation

Confirm action

Continue?