PowerShell creates remote IE instance with Invoke-Command

I am trying to start an instance of IE remotely through PowerShell.

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

It starts the instance, I see it in the processes, but it does not become visible to the user. What am I doing wrong?

+3
source share
1 answer

I think you are not doing anything wrong.

As far as I understand, it is simply impossible to interact with the user's remote desktop via PSRemoting.

If Powershell cannot do this, the Microsoft (formerly Sysinternal's) PSEXEC tool can do this (look at the -i option).

+2
source

All Articles