Solved

How do I execute a program on a remote computer?

Posted on 2002-07-21
12
349 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
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
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

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

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…
A Short Story about the Best File Recovery Software – Acronis True Image 2017
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

744 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

11 Experts available now in Live!

Get 1:1 Help Now