Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Starting exe file using Invoke-command

$
0
0

Hi,

I having a problem to start an exe file remotely using Invoke-Command.

$scriptbl = {Start-Process -filepath "D:\pack\setup.exe"}

Invoke-Command -ComputerName 10.10.10.10 -Credential domain\user -ScriptBlock $scriptbl

There are no errors in running but i do not see the setup UI. other commands in the scriptblock are working like dir or get-process so it is not a connection issue.

Where can i be wrong?

Daniel


Viewing all articles
Browse latest Browse all 6937

Trending Articles