PowerShell使用Invoke命令创建IE的远程实例

PowerShell使用Invoke命令创建IE的远程实例,powershell,powershell-2.0,powershell-remoting,Powershell,Powershell 2.0,Powershell Remoting,我正试图通过PowerShell远程生成一个IE实例 Invoke-Command -computername foo -scriptblock { $ie = New-Object -ComObject InternetExplorer.Application $ie.Visible = $true $ie.Navigate("http://duckduckgo.com") } 它生成实例,我可以在进程中看到它,但用户看不到它。我做错了什么?我想你没有做错什么 据我所

我正试图通过PowerShell远程生成一个IE实例

Invoke-Command -computername foo -scriptblock {
    $ie = New-Object -ComObject InternetExplorer.Application
    $ie.Visible = $true
    $ie.Navigate("http://duckduckgo.com")
}

它生成实例,我可以在进程中看到它,但用户看不到它。我做错了什么?我想你没有做错什么

据我所知,通过PSRemoting与远程用户的桌面交互是不可能的

如果Powershell无法做到这一点,则Microsoft的(以前是Sysinternal的)工具PSEXEC可以做到这一点(请查看-i参数)