• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 233
  • Last Modified:

remote execution on Windows

I have an a program which I want to run on remote Windows servers. I heard that it was possible to do this using Windows PowerShell, however tried to play around with it and did not succeed.
Can anybody help - is it indeed possible to execute programs remotely using PowerShell? and which setup is needed on the remote server to do this?
0
Miritm
Asked:
Miritm
1 Solution
 
pony10usCommented:
psexec \\<server> cmd will run the command prompt on the remote server.

psexec \\<server> "c:\app.exe" (quotes needed only if spaces in name) will run an application that resides on the remote servers C: drive.

Is that what you are after?
0
 
Raheman M. AbdulCommented:
0
 
footechCommented:
It's certainly possible to do this with PowerShell (and with PsExec as mentioned by pony10us).  PowerShell Remoting is what you're after.  There's a good amount of help built in to PS that goes over remoting.  Here's a few help topics.
about_Remote
about_PSSessions
about_Remote_Disconnected_Sessions
about_Remote_Requirements
about_Remote_FAQ
about_Remote_TroubleShooting
about_Remote_Variables
Enter-PSSession
Invoke-Command
New-PSSession

A good link for learning.
http://blogs.technet.com/b/heyscriptingguy/archive/2012/07/23/an-introduction-to-powershell-remoting-part-one.aspx
(there's four other parts as well)
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now