Announcement

Collapse
No announcement yet.

Maximized IE window?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Maximized IE window?

    I use the following syntax to open 3 sites in Internet Explorer, each in another tab:

    $ie = New-Object -ComObject "InternetExplorer.Application"
    $ie.Navigate("http://www.microsoft.com")
    $ie.Navigate2("http://www.google.com", 2048 )
    $ie.Navigate2("http://www.outlook.com", 2048 )
    $ie.Visible = $true

    The IE window is not maximized. How can I do that?
    Sorry for the space after "2048". When I don't do that here, I get a smiley.

  • #2
    It would appear you are not the first to his this problem and a few seconds with your line 3 gives a link to:
    https://social.technet.microsoft.com...ipt?forum=ITCG
    It seems you need to import a system DLL and call a method there
    Tom Jones
    MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
    PhD, MSc, FIAP, MIITT
    IT Trainer / Consultant
    Ossian Ltd
    Scotland

    ** Remember to give credit where credit is due and leave reputation points where appropriate **

    Comment


    • #3
      Thank you very much for the fast reply and the link with the solution for my problem Ossian!

      Comment

      Working...
      X