Comment create a new symlink in windows 10 using powershell (not mklink.exe)?

Clippy
Messages : 22157
Inscription : mer. 22 avr. 2026, 17:33

Comment create a new symlink in windows 10 using powershell (not mklink.exe)?

Message par Clippy »

If there's docs on it, I'll take that. Any web searches for "symlink" "symbolic link" "windows [10]" "powershell" returns everything except the base command.

Even the powershell docs site returns nothing. Is this not possible?
Clippy
Messages : 22157
Inscription : mer. 22 avr. 2026, 17:33

Re: Comment create a new symlink in windows 10 using powershell (not mklink.exe)?

Message par Clippy »

- Start powershell en tant qu'administrateur

- Vous devez know 1) the `path to target` of the link 2) `path to location` where you want the link 3) `the name` you want to use to refer to the link.

- `PS C:\> new-item -itemtype symboliclink -path -name -value `

Example: Si vous êtes in c:\drivers\AMD and you want to link in f:\driver\olddrivers, then you would go

`PS C:\> new-item -itemtype symboliclink -path . -name OldDrivers -value f:\driver\olddrivers`

And wind up with a symlink path of c:\driver\AMD\OldDrivers
Répondre

Revenir à « Windows 10 »