Jump to content
Sign in to follow this  

Need Help, New Here.

Recommended Posts

hi ,

i am new in autoIT, so i dunno much about autoIT. but i am facing some problem.

so call now in windows 2000. i have several profile. with the restriction of the security. Normal user wont be having the administrator right. they can simply install anysoftware. so i want to send the administrator login and password in order for me to install in the PC eventhough i have no priviledge.

1. how to send login and password to a PC?

from the script below what is the problem? i cant send the login and password when i login as not administrator. can anyone teach me how to send the login and password ??

; AutoIt Version: 3.x

; Language: US English


; Script Function:

; Run RunAs as Administrator with Password.

Run("runas.exe /user:%COMPUTERNAME% \administrator cmd")



;Run("d:\Windows2000-KB839645-x86-ENU.exe /quiet /passive /norestart","",@SW_HIDE)

Run("H:\Software\MSPatch\Windows2000-KB839645-x86-ENU.exe /quiet /passive /norestart","",@SW_HIDE)

;Run("M:\mspatches\MS04-024\Windows2000-KB839645-x86-ENU.exe /quiet /passive /norestart","",@SW_HIDE)

your help is greatful to me ..


Share this post

Link to post
Share on other sites

Take a look at @comspec and the example there to run a cmd line utility

You don't need to use send if you pass cmd.exe a properly formatted line.

Use & as a string concatenator


'foobar' is identical to 'foo' & 'bar'

use either single or double quotes to indicate strings, and remember to quote your spaces.....

@comspec & ' /c '

; note the leading and trailing space surrounding /c

use the example in the help file around @comspec as a start , you can also append

' > autoit_runas.bat ' to pipe your output to a .bat file to test your syntax directly.

Reading the help file before you post... Not only will it make you look smarter, it will make you smarter.

Share this post

Link to post
Share on other sites


sorry to disturb you guys again.

for Larry advise..

i have tried your way..but once it run..it wont stop executing. means that i click once... it will keep on executing nonstop.

for flyingboz

i dunno what exactly you mean in your guidance. coz i am really very new in this.

can you please explain more or give some ex on simple code??

thanks for you help

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...