Quantcast
Channel: foreach | Operating systems, scripting, PowerShell and security | jesusninoc.com
Viewing all articles
Browse latest Browse all 409

Searching TeamViewer in our system

$
0
0

#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.


Viewing all articles
Browse latest Browse all 409

Trending Articles