Skip to content

Commit c6ba389

Browse files
committed
Adds Get-FileHash for 2008 R2 in WinRM script
1 parent 8a0c20b commit c6ba389

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

SetupWinRMAccessSelfSigned.ps1

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ $ErrorActionPreference = "Stop"
22

33
Import-Module BitsTransfer
44

5+
if($PSVersionTable.PSVersion.Major -lt 4) {
6+
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
7+
. "$scriptPath\GetFileHash.ps1"
8+
}
9+
510
$opensslPath = "$ENV:HOMEDRIVE\OpenSSL-Win32"
611

712
function VerifyHash($filename, $expectedHash) {

0 commit comments

Comments
 (0)