Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Powershell installing .exe remotely. Maybe double hop error or bad scripting

$
0
0

Hi I am trying to install .exe file from a fileserver to another server through powershell remoting but I am having no luck. This is my script

$cred=Get-Credential 
Invoke-Command  -computername xxx-fs-2.ads.xxx.edu  -Credential $cred -ScriptBlock {start-process -filepath "\\xxx-fs-1.xxx.ucr.edu\software\npp.6.3.3.Installer.exe" -argumentlist "/s" -Credential $cred} 

so there are 2 servers(B,C) and 1 computer(A) 

From A I am trying to install from .exe file from C to B 

But I get evaluation error if I used credssp 

or Access denied if I don't use credssp but I have admin rights on both of those Servers

I have enabled winrm on all of them.


Viewing all articles
Browse latest Browse all 21975

Trending Articles