Skip to content

Commit 1a7ccfe

Browse files
authored
updated to test all valid teamviewer keys
either change the = to += or the second foreach is redundant as the goodpath is just the last path wich worked.
1 parent 4211d4a commit 1a7ccfe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/Win_Teamviewer_Get_ID.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ $Paths = @(foreach ($TeamViewerVersionsNum in $TeamViewerVersionsNums) {
1010

1111
foreach ($Path in $Paths) {
1212
If (Test-Path $Path) {
13-
$GoodPath = $Path
13+
$GoodPath += $Path
1414
}
1515
}
1616

@@ -24,4 +24,4 @@ foreach ($FullPath in $GoodPath) {
2424

2525

2626
}
27-
Write-Output $TeamViewerID
27+
Write-Output $TeamViewerID

0 commit comments

Comments
 (0)