File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1246,7 +1246,7 @@ Function Install-LTService{
1246
1246
Write-Host - NoNewline ' .'
1247
1247
Start-Sleep 5
1248
1248
$tmpLTSI = (Get-LTServiceInfo - EA 0 - Verbose:$False - WhatIf:$False - Confirm:$False - Debug:$False | Select-Object - Expand ' ID' - EA 0 )
1249
- } Until ($sw.elapsed -gt $timeout -or $tmpLTSI -gt 1 )
1249
+ } Until ($sw.elapsed -gt $timeout -or $tmpLTSI -ge 1 )
1250
1250
Write-Host " "
1251
1251
$sw.Stop ()
1252
1252
Write-Verbose " Completed wait for LabTech Installation after $ ( ([int32 ]$sw.Elapsed.TotalSeconds ).ToString()) seconds."
@@ -1263,7 +1263,7 @@ Function Install-LTService{
1263
1263
If ( $WhatIfPreference -ne $True ) {
1264
1264
$tmpLTSI = Get-LTServiceInfo - EA 0 - Verbose:$False - WhatIf:$False - Confirm:$False - Debug:$False
1265
1265
If (($tmpLTSI )) {
1266
- If (($tmpLTSI | Select-Object - Expand ' ID' - EA 0 ) -gt 1 ) {
1266
+ If (($tmpLTSI | Select-Object - Expand ' ID' - EA 0 ) -ge 1 ) {
1267
1267
Write-Output " LabTech has been installed successfully. Agent ID: $ ( $tmpLTSI | Select-Object - Expand ' ID' - EA 0 ) LocationID: $ ( $tmpLTSI | Select-Object - Expand ' LocationID' - EA 0 ) "
1268
1268
} ElseIf (! ($NoWait )) {
1269
1269
Write-Error " ERROR: Line $ ( LINENUM) : LabTech installation completed but Agent failed to register within expected period." - ErrorAction Continue
You can’t perform that action at this time.
0 commit comments