Searching open port in Netstat
1 2 3 4 5 |
#Process id $processid=Get-Process -Name TeamViewer_Service netstat -ano | ForEach-Object { Select-String $processid.Id -input $_ -AllMatches } |
Searching the registry «TeamViewer»
1 2 3 |
Get-ChildItem HKCU:\ -rec -ea SilentlyContinue | ForEach-Object { Select-String "TeamViewer" -input (Get-ItemProperty -Path $_.PsPath) -AllMatches } |
Searching file «TeamViewer»
1 2 3 |
Get-ChildItem c:\ -rec -ea SilentlyContinue | ForEach-Object { Select-String "TeamViewer" -input (Get-ItemProperty -Path $_.PsPath) -AllMatches } |