[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

PSEXEC - Errors executing a remote APP

Posted on 2003-11-20
9
Medium Priority
?
1,400 Views
Last Modified: 2013-12-23
Hi,
I have been trying to use psexec to excute an VC++ app remotely.
This is my scenario:
On the remote PC, i have a bat file, called startme.BAT,  that contains commands:
pskill StartApplication.exe
.
.
start /b D:\.....\StartApplication.exe

Now, if i run this BAT file, on the server itself, WinNT 4.0 SP6, then the BAT File functions normally by restarting the Application.

The problem starts when I try to execute startme.BAT from a remote workstation.

This is how i am executing it:
psexec \\computername -u domainAdmin -p domainPassword -i D:\..\startme.bat

Where DomainAdmin is a part of the local Admin group on the remote server.

The Bat file executes fine till the point where it has to restart the Application. I get a VC++ runtime error and the thing quits ???

Any help would be helpful.

Thanks.
0
Comment
Question by:karnso77
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
9 Comments
 
LVL 37

Expert Comment

by:bbao
ID: 9793494
whats the vc++ runtime error? please give a exact message with error id.

btw, how are the remote workstation and the server connected? any firewall between them? are the two hosts netbios enabled?
0
 

Author Comment

by:karnso77
ID: 9793792
I just get a VC++ Runtime Error Popup Box.

All it says is :
Program Termination:
Program: Name of program
Abnormal program termination

I cannot execute the BAT file from any workstation / server on the network. This includes trying to execute the BAT file from a machine on the same subnet to across networks. the hosts have netbios enabled.
Another funny thing.....
I changed startme.bat, on the server, replacing the start /b .. command with:
psexec \\local machine name -u DomainAdmin -p DomainPass -i StartApplication.exe

I got an error: Access Denied...cannot install the psexec service

The DomainAdmin password is a member of the local admin group ....

0
 
LVL 37

Expert Comment

by:bbao
ID: 9794337
o? cannot install the psexec service? it is a service?
if so, what happens if you run psexec to invoke locall application on the workstation?
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

Author Comment

by:karnso77
ID: 9799991
the "cannot install psexec service" resulted as a result of trying to start another psexec session on the server..ie using psexec on the workstation, i executed a BAT file on the server that had another psexec command in it. I guess that was stupid but it did not solve the problem.
I tried another thing, instead of the BAT file i created a VB exe that calls the application by using the WinExec API.
It did not work too and i got a return code, from WinExec, of 33.

Does anyone know what that means ?
0
 

Author Comment

by:karnso77
ID: 9800342
bbao,
Thanks for all your help but I figured out how to make it work.
Instead of using the -u ... -p ... option, i used -s and it works under the Systesm Account.
I am closing the question and thanks once again.
0
 
LVL 37

Expert Comment

by:bbao
ID: 9800417
nice to hear it works. good luck, bbao
0
 
LVL 37

Expert Comment

by:bbao
ID: 9804985
oh, does it mean my contribution has no help to the question at all...
0
 
LVL 2

Accepted Solution

by:
Lunchy earned 0 total points
ID: 9821470
PAQed, with points refunded (250)

Lunchy
Friendly Neighbourhood Community Support Admin
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

We recently endured a series of broadcast storms that caused our ISP to shut us down for brief periods of time. After going through a multitude of tests, we determined that the issue was related to Intel NIC drivers on some new HP desktop computers …
I'm a big fan of Windows' offline folder caching and have used it on my laptops for over a decade.  One thing I don't like about it, however, is how difficult Microsoft has made it for the cache to be moved out of the Windows folder.  Here's how to …
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

649 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