Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

How do I execute a program on a remote computer?

Posted on 2002-07-21
12
Medium Priority
?
369 Views
Last Modified: 2010-04-13
How do I execute a program on a remote computer?
0
Comment
Question by:logindani
12 Comments
 

Expert Comment

by:mustaki
ID: 7167964
What os is the remote computer using

you can use telnet , terminal server , dameware
or any remote control software

also you can install services from remote location
using srvinstw.exe from w2k resource kit
0
 
LVL 7

Expert Comment

by:jmiller47
ID: 7168003
If you give us some more information on what you really want to do, then we can give you some ideas... It really depends on the situation, but I have found ways for running most things remotely. But as I said, it depends on what you're trying to do.
0
 

Author Comment

by:logindani
ID: 7168023
Basically I'm trying to insert a REG file into the registry using "regedit /s <Filename>"

But I would like to be able to run any application like notepad.exe for example.

I saw it is simple to do with WMI, but I can't rely on it being installed on the remote machine.
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 3

Expert Comment

by:hendrik999
ID: 7168074
With regedt32 you can access the registry of a remote Windows NT/2000/XP computer. You can do this via Registry |Select Computer |\\name001
You need to have sufficient rights to do this.

With rcmd from the Windows 2000 resouce kit you can execute remote commands.

Hope this helps.



0
 
LVL 7

Expert Comment

by:jmiller47
ID: 7168079
hendrik999 has exactly what you need for that scenario. You can use WMI or other ways, but if that's all you need then those two should accomplish the taks you mentioned.
0
 

Author Comment

by:logindani
ID: 7168088
Guys, guys ... I need to do it from WITHIN THE CODE ...,
and I need it to work for NT, 2000 and XP.

Since I don't have WMI on NT, I need one of the 'other ways' you mentioned.
0
 
LVL 7

Expert Comment

by:jmiller47
ID: 7168150
Ahhh, that's what I was talking about. We need to know exactly what you need to do. We did not know that you wanted code to run a remote application. The suggestion that hendrik999 offered met every requirement that you made here.

Now, what do you mean "from WITHIN THE CODE"?

What code are you speaking of? Do you wish to create a VB app or such that you can run on your computer that will execute applications on a remote computer and you want code that you can run to accomplish this?

One of the OTHER WAYS I mentioned would be in fact to use shell scripting to run a remote app such as hedrick999 mentioned. To remotely administer the registry, there are other shell scripting commands you can use to accomplish that using the Windows 2000 Resource Kit Tools. We need to know your requirements a bit better...
0
 

Author Comment

by:logindani
ID: 7168751
I'm building a VB app that is responsible for configuring servers. I'm mostly configuring the registry but I also need to run exexutables on those servers. I have to support servers that run on NT and 2000.
0
 
LVL 3

Expert Comment

by:gro031899
ID: 7168936
Hi logindani,
ok, my comment is not for including in your code, but it's a separate file but it works very fine.
Here http://www.sysinternals.com/ntw2k/freeware/psexec.shtml you can find a very good working remote execute tool. This tool works also with download the exe-file if it doesnt exist on the remote site.
Hope it helps a bit
gro
0
 
LVL 7

Expert Comment

by:jmiller47
ID: 7169588
Well then Hendrik999's idea will work fine then. Using VB code, there is a shell command (I can't remember it off the top of my head.. I haven't programmed in a while) to run shell cripts such as batch files, executables, or others with parameters. Get the Resource kit tools or the application mentioned by gro and call the executables with parameters.
0
 
LVL 5

Expert Comment

by:cempasha
ID: 7829084
Dear questionner/expert(s)

No comment has been added lately, so it's time to clean up this TA.
I'll leave a recommendation in the Cleanup topic area that this question is to be:

- PAQ'd and pts removed

Please leave any comments here within the next seven days.

==> PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER ! <==

Pasha

Cleanup volunteer
0
 
LVL 5

Accepted Solution

by:
Netminder earned 0 total points
ID: 7907715
Per recommendation, points NOT refunded and question closed.

Netminder
EE Admin
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
The number of companies understanding the potential of IoT on B2B market is growing with each day. And yet only a small share of IoT developers have managed to equalize incomes and stay competitive in the international market.
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses
Course of the Month15 days, 7 hours left to enroll

575 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question