Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Getting started

Windows Junction Manager is a portable PowerShell 7 tool for Windows 11. It has no installer and no background service.

Requirements

RequirementNotes
Windows 11Junctions are a Windows reparse-point feature
PowerShell 7.xpwsh must be on PATH for the batch launchers
Local filesystemJunction links and targets must be local, not UNC network paths

Ordinary user-profile junctions usually work without elevation. Protected system locations are refused by policy, not by privilege.

Verify PowerShell

where pwsh
pwsh -NoProfile -Command "$PSVersionTable.PSVersion"

If pwsh is missing, install PowerShell 7 with your normal package manager and reopen the terminal. The project itself never embeds or hard-codes a PowerShell install path.

Launch the tool

Open the interactive terminal UI:

JunctionManager.bat

Run a headless command:

JunctionManager.bat --list

Invoke the root script directly if you prefer:

pwsh -NoProfile -File .\JunctionManager.ps1 --list

The launcher resolves its own folder, so the project can live anywhere.

First safe session

  1. Run JunctionManager.bat --list to confirm the catalog loads. You should see 5 modules and 24 actions.
  2. Run JunctionManager.bat --scan to discover junctions in the standard application locations.
  3. Press D in the TUI, or pass --dry-run on the CLI, before trying a mutating action.
  4. Inspect a single junction with --inspect <path> to confirm its status and target.
flowchart LR
    A[Launch] --> B[List catalog]
    B --> C[Scan locations]
    C --> D[Inspect a junction]
    D --> E{Change needed?}
    E -- No --> F[Stop]
    E -- Yes --> G[Dry-run preview]
    G --> H[Apply with confirmation]

Where files go

ArtifactLocation
Diagnostic logslogs\windows-junction-manager-YYYY-MM-DD.log when logging is enabled
Backup snapshotsbackups\junction-inventory-YYYYMMDD-HHmmss.json

Exports can be written anywhere you choose. Backups and logs are created relative to the project unless you pass an explicit export path.

Next steps