# # Copyright (c) 2014, 2017 by Delphix. All rights reserved. # Set-Variable UTF8_CODEPAGE 65001 -option readonly Set-Variable UTF8_ENCODING "System.Text.UTF8Encoding" -option readonly # Expand the width and height of the host's RawUI output buffer so that PS output does not get cut off or word wrapped $host.UI.RawUI.BufferSize = new-object System.Management.Automation.Host.Size(9999,80) # Turn on tracing # Set-PSDebug -Trace 2; ###### Check iSCSI related properties ##### $installedSoftware = Get-ChildItem "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" -ErrorAction SilentlyContinue | ForEach-Object {Get-ItemProperty $_.pspath -ErrorAction Continue} [bool] $found = $false # Loop through the network interfaces searching for TcpAckFrequencey ForEach ($package in $installedSoftware) { $item_path = $package.PSPath if ($package.DisplayName -eq 'DelphixConnector') { $found = $true Write-Host -ForeGroundColor Green "DelphixConnector: ${item_path}\DisplayVersion: " $package.DisplayVersion break } } if (-Not $found) { Write-Host -ForeGroundColor Red "ERROR: DelphixConnector not found!" }