Would you like to learn how to create a symbolic link using Powershell? In this tutorial, we are going to show you how to use Powershell to create a symbolic link on a computer running Windows.
• Windows 2012 R2
• Windows 2016
• Windows 2019
• Windows 10
• Windows 7
Equipment list
The following section presents the list of equipment used to create this tutorial.
As an Amazon Associate, I earn from qualifying purchases.
Related tutorial – PowerShell
On this page, we offer quick access to a list of tutorials related to PowerShell.
Tutorial Powershell – Creating a symbolic link
As an Administrator, start an elevated Powershell command-line.
Create a symbolic link to a directory.
Here is the command output.
In our example, a symbolic link named LINK was created on the root of drive C.
In our example, the symbolic link destination is the directory named SOURCE on the root of drive C.
Congratulations! You are able to create a symbolic link using Powershell.
Tutorial Powershell – Creating a directory junction
As an Administrator, start an elevated Powershell command-line.
Create a directory junction link.
Here is the command output.
In our example, a directory junction link named LINK was created on the root of drive C.
In our example, the directory junction link destination is the directory named SOURCE on the root of drive C.
Congratulations! You are able to create a directory junction using Powershell.
Tutorial Powershell – Creating a hard link
As an Administrator, start an elevated Powershell command-line.
Create a hard link to a file.
Here is the command output.
In our example, a hard link named LINK was created on the root of drive C.
In our example, the hard link destination is a text file named TEST.
Congratulations! You are able to create a Hard link using Powershell.