Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources: Active Threads
Viewing all articles
Browse latest Browse all 8411

Issue with the shell.application com object and IE9

$
0
0
I have an issue with the shell.application com object and IE9.

This code:

set-variable win (New-Object -comObject shell.Application) -Scope Global
set-variable handle ((Select-Window -Title $window).handle ) -Scope Global
set-variable IE (@($win.windows() | ? { $_.HWND -eq $handle})[0]) -Scope Global


Works perfectly for IE8, but not for IE9.

What am I doing wrong?

Viewing all articles
Browse latest Browse all 8411

Trending Articles