powershell - 通过 powershell 脚本使 ms-edge 窗口全屏显示(通常是 F11)

标签 powershell microsoft-edge

我正在尝试通过 powershell 脚本使 ms-edge 窗口全屏显示(通常是 F11)。

这是我用来启动 edge 的 powershell 脚本示例:

Start-Process -FilePath msedge -ArgumentList '--new-window www.google.com'

这很好用。但是,我希望边缘窗口是全屏的,就像在浏览器中按 F11 时发生的情况一样。此操作不能依赖于 Windows 用户或个人用户 ms-edge 配置文件设置。我需要它从脚本中完成 - 如果可能的话 - 所以当所有用户运行脚本时,操作都是相同的。

最佳答案

Start-Process msedge.exe https:\\google.com -WindowStyle Maximized

关于powershell - 通过 powershell 脚本使 ms-edge 窗口全屏显示(通常是 F11),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72577507/

相关文章:

powershell - 设置PDF文件为只读

powershell - 使用任务计划程序在重新启动后启动 PowerShell 脚本

Windows 在文件的特定行号上添加新行

c# - 你能捕捉到使用Powershell调用C#控制台应用抛出的错误码和异常信息吗?

google-analytics - https ://ssl. google-analytics.com/ga.js 标签未找到 MS Edge 错误

html - 带有本地文件 :///URL is not shown in the Microsoft Edge web browser 的 Img 标签

powershell - -Exclude和-Filter可以一起使用吗?

javascript - 将 Selenium 与 Edge Chromium、Javascript 绑定(bind)一起使用时,出现 "WebDriverError: Unknown error"

css - 字体在 Microsoft Edge 或 IE 中不起作用

css - 如何将用户 CSS 附加到 Microsoft Edge?