Open IE maximized from Powershell script?

powershell

Solution

(new-object -com wscript.shell).run("url",3)

Problem

Pardon me if this is too simple a question, but I'm not finding anything in the help files or online so far regarding doing this. I'm opening up a new browser window to test the login/logout feature of a web based application, but I want to open the IE window in maximized mode. I could set the size as: $ie.height = 1024 $ie.width - 768 But is there a keyword or anything that I can use to just open it up maximized automatically or would I need to query the screen size first and then fill in the values from that query? /matt

Original source