logo       

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

windows.autoit.user

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

I have reproduced your situation... I could script a work around, but
I am trying to resolve... stay tuned...

Larry

--- In AutoItList@xxxxxxxxxxxxxxx, "Kenneth M. Hargis"
<stiletto@xxxx> wrote:
> Larry,
>
> No dice. I /still/ get the same error. Missing File, and it's
looking in
> the WINNT\SYSTEM32 directory for it.
>
> -Ken
>
> >try...
> >
> >SetEnv,user,UserNoDomain
> >SetEnv,password,your_password_here
> >SetEnv,your_program,c:\\my program\\here.exe
> >
> >SetTitleMatchMode,2
> >;next line word-wrapped
> >Run,%comspec% /c runas /user:%user% "%
> >your_program%",C:\\YARDI\\PMWPROG
> >
> >WinWait,cmd.exe,,30
> >IfEqual,errorlevel,1,Goto,noGood
> >Sleep,1000
> >IfWinNotActive,cmd.exe,,WinActivate,cmd.exe
> >WinWaitActive,cmd.exe,,30
> >IfEqual,errorlevel,1,Goto,noGood
> >
> >Send,%password%{ENTER}
> >Exit
> >
> >noGood:
> >MsgBox,4096,Error,Script Error
> >Exit
> >
> >
> >
> > > Run, C:\\WINNT\\SYSTEM32\\runas.exe /user:%computername%
> >\\Administrator
> > > "cmd.exe"
> > > Send, macman{ENTER}
> > > Send, CD C:\\YARDI\\PMWPROG{ENTER}
> > > Send, Y.EXE{ENTER}
> > > WinClose, cmd.exe
> > > EXIT
> > >
> > > It definitely seems to be a problem with just not finding the
path
> >to the
> > > directory.
> > >
> > > -Ken
> > >
> > >
> > > >--- In AutoItList@xxxxxxxxxxxxxxx, "Private Name"
> ><larrydalooza@xxxx>
> > > >wrote:
> > > > >
> > > > >
> > > > >
> > > > > --- In AutoItList@xxxxxxxxxxxxxxx, "Kenneth M. Hargis"
> > > > > <stiletto@xxxx> wrote:
> > > > > >
> > > > > > Well, right now I'm actually testing it on my network at
home,
> > > > > which is
> > > > > > /not/ on a domain model. I'm just trying to get it to
run as
> > > >local
> > > > > > Admin. If I can even get that much working, it would be
fine
> >for
> > > > > my purposes.
> > > > > >
> > > > > > -Ken
> > > > > >
> > > > > >
> > > > > > >Run,Runas.exe /user:username@xxxx "your exe.exe"
> > > > > > >
> > > > > > >are you using the domain name...
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >Yahoo! Groups Sponsor
> > > > > >
> > > > >
> > > >
> >
><<<http://rd.yahoo.com/M=249982.3179269.4495679.1261774/D=egroupweb/S
=>ht
> > tp://rd.yahoo.com/M=249982.3179269.4495679.1261774/D=egroupweb/S=
> >1>ht
> > > >
tp://rd.yahoo.com/M=249982.3179269.4495679.1261774/D=egroupweb/S=1
> > > > >
> > >
> >
>705144708:HM/A=1524963/R=0/SIG=12ongbbsq/*<<http://hits.411web.com/cg
i>ht
> > tp://hits.411web.com/cgi
> >->http://hits.411web.com/cgi-
> > > > > bin/autoredir?
> > > > > camp=556&lineid=3179269&prop=egroupweb&pos=HM>aa97d1.jpg
> > > > > > >
> > > > > > >aa9818.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/>http://docs.yahoo.com/info/terms
/>ht
> > tp://docs.yahoo.com/info/terms/
> >
> > > > >Yahoo! Terms of Service.
> > > >
> > > >
> > > >Yahoo! Groups Sponsor
> > > >
> > >
> >
><<http://rd.yahoo.com/M=247865.3425083.4707139.1261774/D=egroupweb/S=
1>ht
> > tp://rd.yahoo.com/M=247865.3425083.4707139.1261774/D=egroupweb/S=1
> >705144708:HM/A=1482387/R=0/SIG=16n3l7144/*<http://ads.x10.com/?
>http://ads.x10.com/?
> >bHlhaG9vaG0xLmRhd=1055465577%
>
>3eM=247865.3425083.4707139.1261774/D=egroupweb/S=1705144708:HM/A=1482
3
> >87/R=1=1055465577%
>
>3eM=247865.3425083.4707139.1261774/D=egroupweb/S=1705144708:HM/A=1482
3
> >87/R=2>cfb920.jpg
> > > >cfb95d.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/>http://docs.yahoo.com/info/terms/
>Y
> > ahoo! Terms of Service.
> >
> >
> >Yahoo! Groups Sponsor
>
><http://rd.yahoo.com/M=251812.3170658.4537139.1261774/D=egroupweb/S=1
705144708:HM/A=1564416/R=0/SIG=11ti81skc/*http://www.netflix.com/Defau
lt?mqso=60164797&partid=3170658>da35bb.jpg
> >
> >da35e3.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 ---------------------~-->
Looking for the latest Free IT White Papers?
Visit SearchMobileComputing.com to access over 500 white papers.
Get instant access at SearchMobileComputing.com Today
http://us.click.yahoo.com/ZyjvfD/PLNGAA/uitMAA/EGnolB/TM
---------------------------------------------------------------------~->

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



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/





<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise