From d1c2deafa3e5902327b515438ce612f262ccbcf5 Mon Sep 17 00:00:00 2001 From: Tess Gauthier Date: Fri, 24 Jun 2022 10:09:53 -0400 Subject: [PATCH] modify system path update instructions --- Install-Win32-OpenSSH-Using-MSI.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Install-Win32-OpenSSH-Using-MSI.md b/Install-Win32-OpenSSH-Using-MSI.md index d4e9cd5..d5a97b0 100644 --- a/Install-Win32-OpenSSH-Using-MSI.md +++ b/Install-Win32-OpenSSH-Using-MSI.md @@ -31,7 +31,7 @@ The commands to run, are as follows: ## 2. Update SYSTEM PATH (Required for SCP and SFTP) Append the Win32-OpenSSH install directory to the system path, by running the following command: -`[Environment]::SetEnvironmentVariable("Path", $env:Path + ';' + ${Env:ProgramFiles} + '\OpenSSH', [System.EnvironmentVariableTarget]::Machine)` +`[Environment]::SetEnvironmentVariable("Path", [Environment]::GetEnvironmentVariable("Path",[System.EnvironmentVariableTarget]::Machine) + ';' + ${Env:ProgramFiles} + '\OpenSSH', [System.EnvironmentVariableTarget]::Machine)` To verify that the System Path variable was modified properly, the Environment Variables can be viewed in Control Panel, under the Advanced tab. ## 3. Verify OpenSSH Install