Skip to content

Commit 044f878

Browse files
author
Blake Drumm
authored
Update Start-ScomETLTrace.ps1
1 parent a1f0ec7 commit 044f878

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Powershell/Start-ScomETLTrace.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -346,15 +346,15 @@ exit 0
346346
}
347347
do
348348
{
349-
if ($VerboseTrace -eq "" -or $DebugTrace -eq "")
349+
if (!$VerboseTrace -and !$DebugTrace)
350350
{
351351
$answer = Read-Host -Prompt "Would you like to perform a Verbose or Debug Trace? (V/D)"
352352
}
353-
elseif ($null -ne $VerboseTrace)
353+
if ($VerboseTrace)
354354
{
355355
$answer = "verbose"
356356
}
357-
elseif ($null -ne $DebugTrace)
357+
elseif ("" -ne $DebugTrace)
358358
{
359359
$answer = "debug"
360360
}
@@ -542,9 +542,9 @@ exit 0
542542

543543
C:\Windows\explorer.exe "/select,$destfile"
544544
}
545-
if (($GetAdvisor -or $GetAPM -or $GetApmConnector -or $GetBID -or $GetConfigService -or $GetDAS -or $GetFailover -or $GetManaged -or $GetNASM -or $GetNative -or $GetScript -or $GetUI))
545+
if (($GetAdvisor -or $GetAPM -or $GetApmConnector -or $GetBID -or $GetConfigService -or $GetDAS -or $GetFailover -or $GetManaged -or $GetNASM -or $GetNative -or $GetScript -or $GetUI -or $VerboseTrace -or $DebugTrace))
546546
{
547-
Start-ETLTrace -GetAdvisor:$GetAdvisor -GetApmConnector:$GetApmConnector -GetBID:$GetBID -GetConfigService:$GetConfigService -GetDAS:$GetDAS -GetFailover:$GetFailover -GetManaged:$GetManaged -GetNASM:$GetNASM -GetNative:$GetNative -GetScript:$GetScript -GetUI:$GetUI
547+
Start-ETLTrace -GetAdvisor:$GetAdvisor -GetApmConnector:$GetApmConnector -GetBID:$GetBID -GetConfigService:$GetConfigService -GetDAS:$GetDAS -GetFailover:$GetFailover -GetManaged:$GetManaged -GetNASM:$GetNASM -GetNative:$GetNative -GetScript:$GetScript -GetUI:$GetUI -DebugTrace:$DebugTrace -VerboseTrace:$VerboseTrace
548548
}
549549
else
550550
{

0 commit comments

Comments
 (0)