user2707263
user2707263

Reputation: 113

Powershell start IE on remote machine with specific URL

Is there a way to start IE on a remote machine pointing it to a specific URL using powershell.

This script will only open on my local machine:

$PC = Read-Host "Name of machine to run cookie creator on"
$URL = "http://www.google.co.uk"
$ie = New-Object -com InternetExplorer.Application
$ie.visible=$true
$ie.navigate($URL) 

Any ideas? Thanks

Upvotes: 0

Views: 2572

Answers (1)

alroc
alroc

Reputation: 28194

You can't.

When you use PowerShell remoting, it creates a session on the remote computer which cannot be interacted with and has no UI. So while you can start the IE process, the UI will never be visible to any user.

Upvotes: 4

Related Questions