1
0 Comments

I am trying to create junctions in my Windows 10 filesystem and also need to delete a directory with process-locked files in it. I would like to use SysInternals’ handle and junction tools for this, but I am having trouble installing them.

  1. I have tried downloading the junction source directly and using ./junction64.exe /install=agent, but this only prints a message in the terminal and does not make the program accessible from the PATH.
  2. I also tried following the instructions in this article, but it only provides two PowerShell scripts and when I try to run the install script at C:\chocolatey\lib\sysinternals.2018.12.27\tools\chocolateyInstall.ps1 with Set-ExecutionPolicy Bypass -Scope Process -Force | Powershell .\chocolateyInstall.ps1, I get an error saying that the keyword “Install-ChocolateyZipPackage” is not recognized.

I am not very experienced with package managers and I am having trouble finding a solution. I realize now that I could have used Chocolatey for the entire process by using choco info SysInternals to find available packages with this name and then choco install <packageName>. This would make all executables within SysInternals available from $Path.

Askify Moderator Edited question May 4, 2023