auto exec app on remote system

Red Squirrel

No Lifer
May 24, 2003
69,973
13,474
126
www.anyf.ca
Say I have the IP and local admin credentials of a PC. How do I go about executing an app remotely. without installing software beforehand.?

I heard WMI can, but where do I actually use it? I found some code but there must be some way to do it without coding anything.
 

chronodekar

Senior member
Nov 2, 2008
721
1
0
I am a little confused here. :confused:

Do you want to run an app already on your remote system? Or do you want to run an app present on your local system to run on the remote system ?
 

Red Squirrel

No Lifer
May 24, 2003
69,973
13,474
126
www.anyf.ca
well I would get it on that system via \\pc\c$ share. But I want to be able to make it execute on the remote machine.

The idea is I want to be able to make a silent installer package for stuff and push it that way, without the need to have some kind of program already running to do this.

I'd have to be able to run it as administrator as well (not the currently logged in user).
 

chronodekar

Senior member
Nov 2, 2008
721
1
0
AHH!!!

I understand you now. To answer the main question, I do not think it can be done the way you are doing it.

When you share a drive, that's all it is. As far as your local system is concerned, you are just running a file on your local machine. The fact that the data has to stream in from another system, is not relevant.

Also, from the remote system point of view, all it's doing is copying a file over to you. It has no idea what you're doing with the data it sends. And for that matter, it won't even care.

If you want to run the app on the remote system, you'll need to be logged into that machine. That way, from the remote setup point-of-view, you are on the system, and running stuff on it.

Perhaps you can consider remote desktop or the like ?

 

Red Squirrel

No Lifer
May 24, 2003
69,973
13,474
126
www.anyf.ca
Originally posted by: chronodekar
AHH!!!

I understand you now. To answer the main question, I do not think it can be done the way you are doing it.

When you share a drive, that's all it is. As far as your local system is concerned, you are just running a file on your local machine. The fact that the data has to stream in from another system, is not relevant.

Also, from the remote system point of view, all it's doing is copying a file over to you. It has no idea what you're doing with the data it sends. And for that matter, it won't even care.

If you want to run the app on the remote system, you'll need to be logged into that machine. That way, from the remote setup point-of-view, you are on the system, and running stuff on it.

Perhaps you can consider remote desktop or the like ?

Yes but some systems such as AV deployment systems can actually "push" the install to a fresh machine (no specialized apps already installed on the machine, such as psexec which requires a server component).

I heard this can be done through WMI just not sure how to actually do it. Like, what packets do I need to send to the system, or is there utilities that do it for me?

Basically what I want to do is remotely tell a system to run a file that is on that system. so I'll push the file on the C$ share but then I need to tell that machine to execute it (on the machine). There are ways to do this as I've seen various AV solutions do it.

There are programs such as altiris as well, but I'm looking into a way without needing to have something already installed on the system. So if someone plugs a fresh XP box into the network, gives me the local admin credentials, I should be able to push it through and execute on that machine without actually remoting in. I believe simple file sharing has to be on though, and so does remote registry, but other then that I know it's doable as I've seen it done just not sure how.
 

chronodekar

Senior member
Nov 2, 2008
721
1
0
I was googling around and I found these,

A way to reboot a system remotely using WMI,
http://www.c-sharpcorner.com/U...oteServerUsingWMI.aspx

Someone on the MSDN forums seems to have asked exactly the same thing you want,
http://social.msdn.microsoft.c...9e6-960b-d390bf2a48e5/

This just looks like some techno-dribble. (I don't understand it)
http://www.serverwatch.com/tut...ls/article.php/1476661


Hmmm... I just re-read your OP and noticed that you don't want to code... -sigh- well, all the above links are to code, so I guess they won't help. Still, ... let me see if I can find anything else.
 

Red Squirrel

No Lifer
May 24, 2003
69,973
13,474
126
www.anyf.ca
Originally posted by: chronodekar
I was googling around and I found these,

A way to reboot a system remotely using WMI,
http://www.c-sharpcorner.com/U...oteServerUsingWMI.aspx

Someone on the MSDN forums seems to have asked exactly the same thing you want,
http://social.msdn.microsoft.c...9e6-960b-d390bf2a48e5/

This just looks like some techno-dribble. (I don't understand it)
http://www.serverwatch.com/tut...ls/article.php/1476661


Hmmm... I just re-read your OP and noticed that you don't want to code... -sigh- well, all the above links are to code, so I guess they won't help. Still, ... let me see if I can find anything else.

Code is an option mind you, but I just don't want to reinvent the wheel. If windows has a built in util or if I can download an util that does it then better. But on the other hand I may just go ahead and code an utility myself. In fact considering this is so hard to find if I do code something half decent I can then redistribute it and I'm sure it would become popular. So something to look at, not completly rejecting idea of coding. If I do code I'd want it to be C++/ win32 as that's what I know the most as far as windows goes. WEll not so much win32, but I want to learn it anyway so it will be my chance.