Need PowerShell equivalent to Cmd's "mklink" - by Charlie Russel - MVP

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 627099 Comments
Status Closed Workarounds
Type Suggestion Repros 0
Opened 12/2/2010 10:06:36 AM
Access Restriction Public


In my ongoing desire to eliminate the need for CMD, the one remaining functionality I can't find a workaround for is the CMD internal "mklink" that allows you to make hard or symbolic links in the filesystem. Please add this the next version of PowerShell!


Charlie Russel
(PowerShell MVP)
Sign in to post a comment.
Posted by Keith Hill MVP on 10/14/2014 at 3:32 PM
This is fixed in V5 with:

New-Item -ItemType SymbolicLink -Path c:\temp\symlinkedprofile.ps1 -Value $pshome\profile.ps1
Posted by Sen Harada on 2/13/2012 at 10:35 PM
Native support for creating a link is really needed. Calling cmd.exe doesn't provide error information if the command fails.

I don't think complicated operations should be supported natively. They should be done by an add-on like PSCX. But this is a very basic operation. I really wonder why this is not supported NATIVELY by PowerShell.