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

invoke-command with scriptblock is not working

$
0
0

Hi Gents,

I am trying to run a batch file exist on remote computer local drive (which  will install a .exe silently) with the below powershell command... its not giving any error but nothing happening on remote computer

 

Invoke-Command-ComputerName XXXXXX -ScriptBlock{Start-Process"c:\installagent.bat"}-Credential abc\XXX

 

Please help me, I am not much aware of powershell scripting.

Thanks

Raju 

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles