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.
This commit is contained in:
Wesley Couch 2016-10-02 12:27:42 -04:00 committed by GitHub
parent 68250e4059
commit 33a20fe97d
1 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,4 @@
copy .\ssh-lsa.dll $env:windir\system32
Copy-Item -Path $PSScriptRoot\ssh-lsa.dll -Destination "$env:windir\system32"
$subkey = 'SYSTEM\CurrentControlSet\Control\Lsa'
$value = 'Authentication Packages'
$reg = [Microsoft.Win32.RegistryKey]::OpenBaseKey('LocalMachine', 0)