pwps_dab.ps1

$Host.Runspace.ThreadOptions = "ReuseThread"
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 
Write-Host -ForegroundColor DarkYellow "Security Protocol now set to TLS 1.2"
$myPath = $MyInvocation.MyCommand.Path
$myDir = Split-Path $mypath -Parent
$versionInfo = Get-ChildItem -File "$myDir\PWPS_DAB.dll" | Select-Object -ExpandProperty VersionInfo
Write-Host -ForegroundColor DarkYellow "PWPS_DAB Version is $($versionInfo.ProductVersion)"
$processType = "This is a 32-bit process."
if ([Environment]::Is64BitProcess -eq $true) { $processType = "This is a 64-bit process." }
Write-Host -ForegroundColor DarkYellow $processType


# SIG # Begin signature block
# MIIa2wYJKoZIhvcNAQcCoIIazDCCGsgCAQExDzANBglghkgBZQMEAgEFADB5Bgor
# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCAQU8vb9dnIcK6d
# 7h4nIpgEnpFYwsJH/DHWU1/gvQITYqCCCn8wggUwMIIEGKADAgECAhAECRgbX9W7
# ZnVTQ7VvlVAIMA0GCSqGSIb3DQEBCwUAMGUxCzAJBgNVBAYTAlVTMRUwEwYDVQQK
# EwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdpY2VydC5jb20xJDAiBgNV
# BAMTG0RpZ2lDZXJ0IEFzc3VyZWQgSUQgUm9vdCBDQTAeFw0xMzEwMjIxMjAwMDBa
# Fw0yODEwMjIxMjAwMDBaMHIxCzAJBgNVBAYTAlVTMRUwEwYDVQQKEwxEaWdpQ2Vy
# dCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdpY2VydC5jb20xMTAvBgNVBAMTKERpZ2lD
# ZXJ0IFNIQTIgQXNzdXJlZCBJRCBDb2RlIFNpZ25pbmcgQ0EwggEiMA0GCSqGSIb3
# DQEBAQUAA4IBDwAwggEKA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