logo       

Re: Re: Runas problem (kind of....): msg#00240

windows.autoit.user

Subject: Re: Re: Runas problem (kind of....)

Larry,

I assume you're asking how I'm running the software now....

Right now I'm having to put all of the Win2K domain users in as Domain admins in order to get the software to run.  This, obviously, is undesirable.  On a non-domain model, the software will apparently run on an individual machine under Power User.  But I hadn't tried anything beyond using the 'run as other user' option in the shortcut, and manually logging in as Admin, which of course is also not that desirable.

So I'm basically hoping that I can get this working, as I don't really have any other options.

-KMH
 
red, try adding the /profile to the runas string...

KMH, how do you run the program manually, using runas?

Larry

--- In AutoItList@xxxxxxxxxxxxxxx, "Kenneth M. Hargis"
<stiletto@xxxx> wrote:
> Got it put together, put in my variables, and when it ran I got the
message
> box saying it was successful, and then got the same error I get in
my
> script: MISSING FILE: C"\WINNT\SYSTEM32\PMCONFIG.DAT
>
> which is a data file for the program, located in the same directory
as the
> program executable, and the scripts.
>
> Any other ideas?
>
> -KMH
>
> >Found a mistake as I was looking at it again so make sure you have
> >the one that is dated today.
> >
> >red
> >--- In AutoItList@xxxxxxxxxxxxxxx, "Redndahead" <amoore@xxxx>
wrote:
> > > I wrote a runas function which you can find here:
> > >
> >
<http://groups.yahoo.com/group/AutoItList/files/FUNCTIONS/Runas.aut>ht
tp://groups.yahoo.com/group/AutoItList/files/FUNCTIONS/Runas.aut
> > >
> > > Here are the options
> > > ;4 Arguments
> > > ;      $Argument1 = Path and name of the executable
> > > ;      $Argument2 = Username to run it under including domain.
If
> > > local account use computer name. Format Domain\\User
> > > ;      $Argument3 = Password
> > > ;      $Argument4 = Amount of time to wait for the command
window
> > > before giving an error. Time is in seconds
> > > ;
> > > ;Output
> > > ;      $ErrorLevel = 0 it ran successfully, 1 it was
unsuccessfull
> > > ;
> > > ;Example
> > >
> > > Here is how to make the script make sure runas.aut is in the
same
> > > folder as the script.
> > >
> > > SetBatchLines,150
> > > SetEnv,$Argument1,notepad
> > > SetEnv,$Argument2,
> > > SetEnv,$Argument3,
> > > SetEnv,$Argument4,5
> > > GoSub,$Runas
> > > IfEqual,$ErrorLevel,0,MsgBox,0,,It was successfull.
> > > IfEqual,$ErrorLevel,1,MsgBox,0,,It was unsuccessfull.
> > > Exit
> > > #Include runas.aut
> > >
> > > If you have any questions feel free to ask.
> > >
> > > red
> > > --- In AutoItList@xxxxxxxxxxxxxxx, "Kenneth M. Hargis"
> > > <stiletto@xxxx> wrote:
> > > > Okay.  I am trying to get an application to run under
> > > Administrator, but
> > > > for some reason it can't seem to find the directory that the
> > > software is
> > > > installed to, even if I have it in the path on the machine. 
It
> > > seems to be
> > > > looking for the associated files for the program in
> >\winnt\system32
> > > only,
> > > > and I get errors when it can't find them.
> > > >
> > > > The script I'm using is:
> > > >
> > > > HideAutoItWin, on
> > > > SetCapslockState, off
> > > > Run, C:\\WINNT\\System32\\runas.exe /user:%computername%
> > > \\Administrator
> > > > "C:\\YARDI\\PMWPROG\\MMW.EXE",C:\\YARDI\\PMWPROG,,hide
> > > > Send, <password>{ENTER}
> > > > Exit
> > > >
> > > > Am I correct in thinking that putting the path for the
program as
> > > the next
> > > > thing in the command line /should/ give it the appropriate
> >working
> > > > directory?  If that's the case, it doesn't seem to.  Any
> > > suggestions/ ideas?
> > > >
> > > > Thanks!
> > > >
> > > > KMH
> >
> >
> >Yahoo! Groups Sponsor
>
><http://rd.yahoo.com/M=251812.3170658.4537139.1261774/D=egroupweb/S=1
705144708:HM/A=1564415/R=0/SIG=11t6t7kdo/*http://www.netflix.com/Defau
lt?mqso=60164784&partid=3170658>86df57.jpg
> >
> >86dfd9.jpg
> >
> >To unsubscribe from this group, send an email to:
> >AutoItList-unsubscribe@xxxxxxxxxxxxxxx
> >
> >
> >
> >Your use of Yahoo! Groups is subject to the
> ><http://docs.yahoo.com/info/terms/>Yahoo! Terms of Service.


Yahoo! Groups Sponsor
9732a2.jpg 
973324.jpg

To unsubscribe from this group, send an email to:
AutoItList-unsubscribe@xxxxxxxxxxxxxxx



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


To unsubscribe from this group, send an email to:
AutoItList-unsubscribe@xxxxxxxxxxxxxxx



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise