Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
-WindowsStyle隐藏在Powershell上不起作用_Powershell_Internet Explorer - Fatal编程技术网

-WindowsStyle隐藏在Powershell上不起作用

-WindowsStyle隐藏在Powershell上不起作用,powershell,internet-explorer,Powershell,Internet Explorer,所以我对PowerShell几乎一无所知,但我一直在努力慢慢学习 最终目标是让PowerShell打开一个不可见的Internet Explorer实例,该实例使用参数导航到“Google.com” -noframemerging-private 到目前为止 Start-Process -FilePath 'C:\Program Files\Internet Explorer\iexplore.exe' 'google.com -noframemerging -private' 用于创建IE,

所以我对PowerShell几乎一无所知,但我一直在努力慢慢学习

最终目标是让PowerShell打开一个不可见的Internet Explorer实例,该实例使用参数导航到“Google.com”

-noframemerging-private

到目前为止

Start-Process -FilePath 'C:\Program Files\Internet Explorer\iexplore.exe' 'google.com -noframemerging -private'
用于创建IE,但不隐藏

我还尝试了另一段代码

Start-Process -WindowStyle Hidden -FilePath 'C:\Program Files\Internet Explorer\iexplore.exe' 'google.com -noframemerging -private'
但IE窗口仍然可见。我怎样才能解决这个问题


而且
-WindowStyle最小化了
的效果。

这只是您尝试过的另一段代码吗?还是这对你有用?请编辑你的答案,并描述你文章的目的。
Start-Process -WindowStyle Hidden iexplore.exe 
              -ArgumentList "google.com -noframemerging -private"