Distributable PsExec Alternative

Hi,

I need to deploy my application using PsExec.exe. On checking I got to know that the license does not permit distribution. I use Delphi 2007. Is there any other method.

Regards
Allan
Allan_FernandesAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CodedKSenior Software EngineerCommented:
Hi Allan.

PsExec contains another executable as a binary resource.

This executable is like a Win32 service that acts like a server. The main program creates a file in :
"\\RemoteSystemName\ADMIN$\System32" and saves the resource file inside. This is how it works.

I've never saw another application providing the same options like PsExec but I am sure that if one is around it will be marked as a virus/trojan like PsExec for many AVs.
So using something other than PsExec, even PsExec is bad for distribution in general!

Anyway if you can mimic the things PsExec do you can build something like this too and distribute your application until its marked as a virus from AVs.

Check this link also :
http://www.ntkernel.com/w&p.php?id=15

Hope this helps.
0
CodedKSenior Software EngineerCommented:
0
CodedKSenior Software EngineerCommented:
0
OWASP: Threats Fundamentals

Learn the top ten threats that are present in modern web-application development and how to protect your business from them.

CodedKSenior Software EngineerCommented:
0
bbaoIT ConsultantCommented:
if all the alternatives won't work beautifully as you expected, why don't you just simply provide a link from your deployment application and allow end users to install PsExec themselves and your application call it afterward? :-))
0
johnb6767Commented:
I was in your other thread, and I still dont know why it needs to be included with the setup of your app...

If a package is run on the server to install it locally, are you trying to make it install remotely on the clients to as a part of the process??
0
Allan_FernandesAuthor Commented:
Hi John,

My application needs to reside on all the machines within the LAN of my customer. One machine is designated as the Server. All clients interact via Sockets to the Server and to each other. No sharing of drives is necessary. If I do not remotely install the clients then I will need to physically go to every machine in the office and request the user to hand me the machine for at least a minute. This I have been doing till now.
PsExec has come as a saviour. If other options do not work then I may have to settle in for bbao's solution. CodedK has given fantastic input too.

Thanks
Allan
0
johnb6767Commented:
Is there an AD Domain involved?
0
Allan_FernandesAuthor Commented:
Not really. Why do you ask ?


0
johnb6767Commented:
Theres other ways to deploy applications natively in GPO......
0
Allan_FernandesAuthor Commented:
Hi,

My application needs to be installed on any (and across any)  platform of windows, Win98/2000 onwards.

My Application Server can be installed on a low end win98 machine too.

If remote install does not happen across some platforms it is quite OK.

Is there any Delphi code equivalent to PSExec basic code. If not I will settle in for Download from the net at user end.

Thanks
Allan

0
johnb6767Commented:
Sorry, not a coder....
0
johnb6767Commented:
Might go as far as to contact MS Support and inquire about thier licensing....
0
CodedKSenior Software EngineerCommented:
Hi Allan,

I am a coder and I can tell you that building an app that acts the same way like PsExec is difficult and its the subject of more than one question and last its a lost cause because it will act like a virus and it will be blocked. It will raise every flag possible from firewalls and antivirus.

First you'll have to build the client and the server part. This is easy there are many examples out there, even in Delphi folder.

2. You have to embed/merge those 2 applications. This requires knowledge on reading and extracting a resource from a PE.

3. As the article i posted above you have to extract it and give the commands you want.

The second and the third part is the "virus" like behavior.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Networking

From novice to tech pro — start learning today.