Get process ID from Com Object
-
29-09-2019 - |
문제
It is possible to get the Process ID from this new Com Object ($ie) ?
$ie=New-Object -comobject InternetExplorer.Application
$ie.visible=$true
$ie.Navigate("www.stackoverflow.com")
해결책
The following will give you the parent IE process:
(Get-Process -Name iexplore)| Where-Object {$_.MainWindowHandle -eq $ie.HWND}
제휴하지 않습니다 StackOverflow