1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
$a=Get-Process -Module | Group-Object | Select-Object name foreach($mem in $a){ $ap=[String]$mem.name.replace("System.Diagnostics.ProcessModule ","") $ap=$ap.ToLower() $ap=$ap.replace("(","") $ap=$ap.replace(")","") $ap=$ap.replace(".dll","") $ap=$ap.replace(".exe","") $urls="https://www.procexample.com"+$ap $urls $result=Invoke-WebRequest $urls $en=$result.AllElements | ? {$_.tagName -eq "DIV"} foreach($aen in $en.innerText){ $aen } } |