home *** CD-ROM | disk | FTP | other *** search
/ PC World 2006 February / PCWorld_2006-02_cd.bin / software / vyzkuste / triky / triky.exe / autoit-v3-setup.exe / Examples / RunAsSet.au3 < prev    next >
Text File  |  2004-09-22  |  221b  |  9 lines

  1. ; Set the RunAs parameters to use local adminstrator account
  2. RunAsSet("Administrator", @Computername, "adminpassword")
  3.  
  4. ; Run registry editor as admin
  5. RunWait("regedit.exe")
  6.  
  7. ; Reset user's permissions
  8. RunAsSet()
  9.