Question about using Powershell to run programs on remote computers


i attempting use bill stewarts ps script to test running programs on remote computers.  however, having trouble creating ps session computer testing on.  remote computer win 7 pro , have started "windows remote management" service on remote computer.  when run command "new-pssession -computername client1....." keep getting error 1 below:  need open port or start other services??  thanks

[client1] connecting remote server failed following error message : client cannot connect destination specified in request. verify service on destination running , accepting requests. consult logs , documentation ws-management service running on destination, commonly iis or winrm. if
destination winrm service, run following command on destination analyze , configure winrm service: "winrm quickconfig". more information, see about_remote_troubleshooting topic.
    + categoryinfo          : openerror: (system.manageme....remoterunspace:remoterunspace) [], psremotingtransportexc
   eption
    + fullyqualifiederrorid : pssessionopenfailed

hi,

we not use powershell run programs on remote computer don't have powershell installed. psexec this.

more information psexec:

http://ss64.com/nt/psexec.html

in addition, if have poweshell installed, below link helpful you:

using powershell , psexec invoke expressions on remote computers

http://www.leeholmes.com/blog/2007/10/02/using-powershell-and-psexec-to-invoke-expressions-on-remote-computers/

regards,

yan li


yan li

technet community support



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Group Policy Event ID 1058 Error Code 1326 (The user name or password is incorrect)

Suspicious event log Event ID: 4905

DCOM received error "2147746132" from...