从 Powershell 脚本最大化打开 IE? [英] Open IE maximized from Powershell script?

查看:69
本文介绍了从 Powershell 脚本最大化打开 IE?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果这个问题太简单,请原谅我,但到目前为止,我在帮助文件或网上找不到任何关于此的内容.我正在打开一个新的浏览器窗口来测试基于 Web 的应用程序的登录/注销功能,但我想以最大化模式打开 IE 窗口.我可以将大小设置为:

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

$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?

/马特

推荐答案

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

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

这篇关于从 Powershell 脚本最大化打开 IE?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆