How do I create file hardlink in PowerShell on Windows 10?
PSCX has New-Hardlink
, but is it still needed on Windows 10?
You could always shell out to mklink
, but from powershell that requires you prefix the command with cmd /c
, which is ugly and hard to remember.
*-Item
cmdlets have dynamic parameters that are based on the PS Provider (in this the case the filesystem provider) so it doesn't always list all possible parameters. But I'm just speculating. – Laflam-ItemType Hardlink
was present in downlevel OSes. But, I have serious doubts, since the plumbing for .NET to call OS APIs changed significantly in Win 8.1 and Win 10. Just checking! – Borderer