Skip to content

Commit

Permalink
#152 PS51/NET48 and PS73/NET70 Get ready to release like PR, GitHub A…
Browse files Browse the repository at this point in the history
…ctions issues 010 automated build....Later deep dive into folder cmdlets based on OpenApi
  • Loading branch information
ddemeyer committed Aug 28, 2023
1 parent 52b62fe commit cca3671
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/ISHRemote/Trisoft.ISHRemote/ISHRemote.PesterSetup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ $hostname=$Matches['hostname']
$webServicesConnectionConfigurationUrl = $webServicesBaseUrl + "connectionconfiguration.xml"
Write-Host "Running ISHRemote.PesterSetup.ps1 Detect version over webServicesConnectionConfigurationUrl[$webServicesConnectionConfigurationUrl] webServicesConnectionConfigurationUrl.Length[$($webServicesConnectionConfigurationUrl.Length)]"
$connectionConfigurationRaw = Invoke-RestMethod -Uri $webServicesConnectionConfigurationUrl #Only PS7#-SkipCertificateCheck
$connectionConfigurationXml = [xml]($connectionConfigurationRaw.Replace([char]0xEF+[char]0xBB+[char]0xBF,"")) #Removes incorrect UTF8 BOM in PS5 and PS7
[version]$infosharesoftwareversion = $connectionConfigurationXml.connectionconfiguration.infosharesoftwareversion
$connectionConfigurationRaw -match "<infosharesoftwareversion>(?<myVersion>.*)</infosharesoftwareversion>" # Straight string handling avoids UTF8-BOM cross-platform handling
[version]$infosharesoftwareversion = $matches['myversion']
if ($infosharesoftwareversion.Major -lt 15) # 14SP4 and earlier, initialize ONE session over -IshUserName/-IshPassword
{
$global:ishSession = New-IshSession -Protocol WcfSoapWithWsTrust -WsBaseUrl $webServicesBaseUrl -IshUserName $ishUserName -IshPassword $ishPassword -WarningAction SilentlyContinue
Expand Down

0 comments on commit cca3671

Please sign in to comment.