2016-04-06 51 views
0

所以我對PowerShell幾乎一無所知,但我一直在努力慢慢學習。-Windowstyle隱藏在Powershell上不起作用

的最終目標是讓PowerShell的開拓導航到「Google.com」與參數

-noframemerging Internet Explorer中的不可見的實例 - 私人

到目前爲止

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 Minimized的作品。

回答

0
Start-Process -WindowStyle Hidden iexplore.exe 
       -ArgumentList "google.com -noframemerging -private" 
+0

這是你試用的另一段代碼嗎?或者這是爲你工作?請編輯你的答案,並描述你的帖子的目的是什麼。 –