Re: Best way to execute a shell command remotely

From: Torgeir Bakken (MVP) (Torgeir.Bakken-spam@hydro.com)
Date: 02/11/03


From: "Torgeir Bakken (MVP)" <Torgeir.Bakken-spam@hydro.com>
Date: Tue, 11 Feb 2003 03:37:06 +0100


James Cline wrote:

> I need to execute a program that can be ran from the command prompt normally
> on the server but from a remote machine. Anyone know the best way to do
> this? Remote Scripting? Any shell utilities? IIS?

Hi

For a command line solution, take a look at PsExec.exe in the free PsTools
suite, found at http://www.sysinternals.com

More details about PsExec.exe here:

From: Torgeir Bakken (MVP) (Torgeir.Bakken-spam@hydro.com)
Subject: Re: Automating MS update installs
Newsgroups: microsoft.public.scripting.wsh
Date: 2002-10-04 17:44:03 PST
http://groups.google.com/groups?selm=3D9E348C.E51CF526%40hydro.com

--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and a ONLINE version of the 1328 page
Scripting Guide: http://www.microsoft.com/technet/scriptcenter


Relevant Pages

  • Re: Script needed: Users with Remote Access permissions on a server
    ... Remote Access permissions on a server? ... Microsoft's "Scripting guy" archive has a script that lists all users with ... I need to query a particular server or list of servers. ... Microsoft MVP Scripting and ADSI ...
    (microsoft.public.scripting.vbscript)
  • Re: netsh problem
    ... First get connected to the remote machine using the following command: ... This will get you to the netsh context on the remote server. ... If you want to do it within your automation and execute it on the remote ...
    (microsoft.public.windows.server.networking)
  • Re: Script needed: Users with Remote Access permissions on a server
    ... Remote Access permissions on a server? ... I need to query a particular server or list of servers. ... Microsoft MVP Scripting and ADSI ...
    (microsoft.public.scripting.vbscript)
  • Re: simple question re DELETEing in linked DB
    ... string can be executed by the remote server. ... query than just passing the query string. ... If you only want SQL Server ... can be used to execute a remote procedure, as you can do with a linked ...
    (microsoft.public.sqlserver.programming)
  • Cyboards Remote Code Execution
    ... vulnerabilites exist in the /include directory which may result in allowing the attacker ... Remote Arbitrary Code Execution: ... allow remote attacker to include their own remote arbitrary code and run it on the server. ... php will execute the attackers code. ...
    (Bugtraq)