#Searching open port in Netstat
#Process id
$processid=Get-Process -Name TeamViewer_Service
netstat -ano | ForEach-Object {
Select-String $processid.Id -input $_ -AllMatches
}
#Searching the Registry “TeamViewer”
Get-ChildItem HKCU:\ -rec -ea SilentlyContinue | ForEach-Object {
Select-String “TeamViewer” -input (Get-ItemProperty -Path $_.PsPath) -AllMatches
}
#Searching file “TeamViewer”
Get-ChildItem c:\ -rec -ea SilentlyContinue | ForEach-Object {
Select-String “TeamViewer” -input (Get-ItemProperty -Path $_.PsPath) -AllMatches
}
The post Searching TeamViewer in our system appeared first on Scripting.