PC Review


Reply
Thread Tools Rate Thread

run app remotely?

 
 
=?Utf-8?B?RGF2aWQgVGhpZWxlbg==?=
Guest
Posts: n/a
 
      21st Feb 2005
Hi;

Is there any way to run an application remotely? In other words, on machine
A can I run a program (that is on machine B) on machine B and get back the
std out and error?

And I assume I would have to make this call impersonating the user under
whom it would be running on the remote system.

--
thanks - dave
 
Reply With Quote
 
 
 
 
=?Utf-8?B?Q293Ym95IChHcmVnb3J5IEEuIEJlYW1lcikgLSBN
Guest
Posts: n/a
 
      21st Feb 2005
You can set up a service on machine b with a Remoting interface. You can also
set up your "service" in COM+ (realizing a bit of weight for Interop). A web
service interface is another option. The primary issue is setting up an
interface that can be accessed across the network. Following the SOA approach
(very 2.0 Framework), a web service (either ASMX or Remoting) is your best
option.


---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************


"David Thielen" wrote:

> Hi;
>
> Is there any way to run an application remotely? In other words, on machine
> A can I run a program (that is on machine B) on machine B and get back the
> std out and error?
>
> And I assume I would have to make this call impersonating the user under
> whom it would be running on the remote system.
>
> --
> thanks - dave

 
Reply With Quote
 
=?Utf-8?B?RGF2aWQgVGhpZWxlbg==?=
Guest
Posts: n/a
 
      22nd Feb 2005
The application on machine B is not ours. And it's a command line app.

I realize we can wrap it in a program of our own and call that. I was hoping
that maybe Windows provided a way to do that already though.

thanks - dave


"Cowboy (Gregory A. Beamer) - MVP" wrote:

> You can set up a service on machine b with a Remoting interface. You can also
> set up your "service" in COM+ (realizing a bit of weight for Interop). A web
> service interface is another option. The primary issue is setting up an
> interface that can be accessed across the network. Following the SOA approach
> (very 2.0 Framework), a web service (either ASMX or Remoting) is your best
> option.
>
>
> ---
>
> Gregory A. Beamer
> MVP; MCP: +I, SE, SD, DBA
>
> ***************************
> Think Outside the Box!
> ***************************
>
>
> "David Thielen" wrote:
>
> > Hi;
> >
> > Is there any way to run an application remotely? In other words, on machine
> > A can I run a program (that is on machine B) on machine B and get back the
> > std out and error?
> >
> > And I assume I would have to make this call impersonating the user under
> > whom it would be running on the remote system.
> >
> > --
> > thanks - dave

 
Reply With Quote
 
Peter Huang [MSFT]
Guest
Posts: n/a
 
      22nd Feb 2005
Hi David,

I agree with Gregory's suggestion.

Also here is a freeware tool which will need administrative privilege, you
may take a look.

PsExec
http://www.sysinternals.com/ntw2k/freeware/psexec.shtml

Inside PsExec
PsExec starts an executable on a remote system and controls the input and
output streams of the executable's process so that you can interact with
the executable from the local system. PsExec does so by extracting from its
executable image an embedded Windows service named Psexesvc and copying it
to the Admin$ share of the remote system. PsExec then uses the Windows
Service Control Manager API, which has a remote interface, to start the
Psexesvc service on the remote system.

The Psexesvc service creates a named pipe, psexecsvc, to which PsExec
connects and sends commands that tell the service on the remote system
which executable to launch and which options you've specified. If you
specify the -d (don't wait) switch, the service exits after starting the
executable; otherwise, the service waits for the executable to terminate,
then sends the exit code back to PsExec for it to print on the local
console.

http://www.windowsitpro.com/Windows/...919/42919.html

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Run VBS remotely Eddieduce Windows XP 0 18th Jun 2008 12:50 AM
Using BCM Remotely =?Utf-8?B?UGF1bCBI?= Microsoft Outlook BCM 0 12th Sep 2006 05:35 AM
Can't Log Off remotely TAG_ME Windows XP Work Remotely 1 17th Aug 2005 11:19 PM
How to install SNMP remotely automatically or remotely Dave Microsoft Windows 2000 Deployment 0 27th Aug 2004 03:50 PM
remotely possible 32 Mike Windows XP Accessibility 1 17th Apr 2004 03:42 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:19 PM.