Solved

failed logon in dos running utility

Posted on 2010-09-16
11
250 Views
Last Modified: 2012-05-10
Hello there,

I am trying to run a utility that sits on a 64bit system (it needs to be run on a 32 bit system - which I am doing)
From dos - I map to the drive and utility on the server  prefixing it with start /d \\. The utility looks to run but then fails with a failed logon message. Te account I am logged into does have access to the other server. Can you help?


Thanks!
0
Comment
Question by:Jakkkkkkks
[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
  • 4
  • 3
11 Comments
 
LVL 3

Expert Comment

by:Zach2001
ID: 33696380
if you are mapping a drive (EG X:) you don't need the back slasshes
Start /D x:\utility.exe

But I would try just runing the utility directly first, whilst honed onto it's local drive eg:
x:
utility
0
 

Author Comment

by:Jakkkkkkks
ID: 33696418
So I would map a drive from the 32 bit pc first in Explorer and use that drive letter to run the utility? How does that explain the fialed logon though?
0
 
LVL 3

Accepted Solution

by:
Zach2001 earned 500 total points
ID: 33696456
without seeing the full command that you are deploying with 'start' I can't be sure, it couldn't just be a generic logon error.

If you can map the drive without being prompted for credentials then you know that pass-through authentication is working and you should be able to run the utility fine.

To map a drive in DOS / CMD run
net use x: \\servername\sharename

To explicitly define a logon to that share use:

net use x: \\servername\sharename /user:username
Or
net use x: \\servername\sharename /user:domainname\username

I would only use START wothin a script to call a process / batch I wanted to be run parralell to the one being executed already.
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 70

Expert Comment

by:Qlemo
ID: 33696458
The utility itself is not a DOS program? Most such applications can't use UNC paths as working directories. Can you show us a bit more of the start command you use? You are running the tool on your 32bit PC, and the program is located on the 64bit Server?
0
 
LVL 70

Expert Comment

by:Qlemo
ID: 33696477
Zach,

start can be useful if you need to change the working directory of the program. And it is the only way you can wait for applications to end which do normally be spawned without waiting, like notepad.
Besides that, I agree that there is almost no reason to use start for launching a program.
0
 

Author Comment

by:Jakkkkkkks
ID: 33696523
Start /d \\server\shareddirectory \\newserver\shared directory\utility.exe –u this is run from the 32 bit station (it also needs to call an ini file on the 64bit) I originally did it without the start but it said it couldn't find the ini file.

There is a log that is written to the 64bit server and in that it say that I have a failed login.

I hope I am not confusing you and sorry my dos is atroucious!
0
 
LVL 3

Expert Comment

by:Zach2001
ID: 33696540
OK, try using mapped drives, rather than UNC and no start
0
 

Author Comment

by:Jakkkkkkks
ID: 33696555
thanks. I will try that tomorrow at work and let you know.
0
 
LVL 70

Expert Comment

by:Qlemo
ID: 33696577
Concur.
0
 

Author Comment

by:Jakkkkkkks
ID: 33696582
to clarify:

net use x: \\servername\sharename /user:username process.exe -u (?)
0
 
LVL 70

Expert Comment

by:Qlemo
ID: 33696597
No.
net use x: \\servername\sharename /u:username
x:
process.exe -u

Or, if you do not need a login:
pushd \\servername\harename
process.exe -u
0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

One of my most closely kept secrets is revealed in this discussion How to output text on the same line This question was recently posted in EE by Simon336697 (http://www.experts-exchange.com/Programming/Languages/Scripting/Shell/Batch/Q_2459…
VALIDATING DATES One method of validating dates is to jam the date into the DATE command and see if it accepts it by examining the system's errorlevel value. A non-zero result indicates failure. A typical example might look something like the fol…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

739 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