Skip to content

Commit 33a20fe

Browse files
author
Wesley Couch
authored
Allow powershell script to be ran from any location and update to powershell copy method
Adding in $PSScriptRoot allows this powershell script to be ran from anywhere. Before if you were not in the openssh directory in powershell it wouldn't be able to find ssh-lsa.dll Also switched the copy method to the powershell method of copying files.
1 parent 68250e4 commit 33a20fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/win32/openssh/install-sshlsa.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
copy .\ssh-lsa.dll $env:windir\system32
1+
Copy-Item -Path $PSScriptRoot\ssh-lsa.dll -Destination "$env:windir\system32"
22
$subkey = 'SYSTEM\CurrentControlSet\Control\Lsa'
33
$value = 'Authentication Packages'
44
$reg = [Microsoft.Win32.RegistryKey]::OpenBaseKey('LocalMachine', 0)

0 commit comments

Comments
 (0)