Skip to content

Instantly share code, notes, and snippets.

View SchoolforDesign's full-sized avatar

Aso Bahaldin SchoolforDesign

View GitHub Profile
@SchoolforDesign
SchoolforDesign / PConIDs.ps1
Last active November 4, 2017 16:18
kaka muhamed
$GetCon = Get-NetTCPConnection
$gpsc = Get-Process
$GName = foreach ($process in $GetCon) {
$processName = ($gpsc | ? id -EQ $process.OwningProcess).ProcessName
$processName | ForEach-Object{
if($processName.Length -ne 0){
$processName
}else{
$processName = "ProcessName Nya"
}