Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just installed Windows 7 Pro, and I'm configuring it to my preferences. I go to set up a symbolic link (since it supports symlinks).

But I don't seem to have the mklink program in C:\Windows\system32.

In administrator mode in Powershell:

PS C:\> mklink
The term 'mklink' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spel
ling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:7
+ mklink <<<<
    + CategoryInfo          : ObjectNotFound: (mklink:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
share|improve this question
I can't find that file under %WINDIR% either, but running mklink on my side just works. I guess it's a built in system command. Does it say mklink is not a recognized command or something? – kizzx2 Jan 20 '10 at 18:20
A similar question was asked over at SO. See… for more information and workarounds. – Kez Jan 20 '10 at 18:59
@kez: Hunh...didn't think SO was the best place to ask this. ::shrug:: – Paul Nathan Jan 20 '10 at 20:32
up vote 35 down vote accepted
cmd /c mklink [arguments]

can be used to call cmd.exe builtins.

share|improve this answer
Above line doesn't work in cmd on win7, though opening a cmd and then mklink works. – mosh Oct 14 '15 at 5:30
this works also on Windows 10 Pro – bluantinoo Nov 30 '15 at 15:57

The solution is that mklink is a builtin on cmd.exe. Powershell therefore cannot directly access it.

Negative kudos to whoever thought that one up.

share|improve this answer

PowerShell is not a complete replacement for CMD. Many CMD functions do not work in PS. Switch to CMD to run mklink

share|improve this answer
Yeah, I hear you. Pretty frustrating though. – Paul Nathan Jan 20 '10 at 18:56

You must log in to answer this question.

protected by nhinkle Sep 26 '11 at 21:55

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged .