Solved

How do I execute a program on a remote computer?

Posted on 2002-07-21
12
354 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
 
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
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 
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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

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…
This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

914 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now