Jump to content

warcrow

Member
  • Posts

    4
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

Posts posted by warcrow

  1. I used

    SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

    REG ADD %KEY% /V TITLE /D "Mark_Test" /f

    REG ADD %KEY%1 /VE /D "Kyocera Mita Install" /f
    REG ADD %KEY%1 /V 1 /D "c:\migration\AI_KYOCERA_MITA_INSTALL.exe" /f

    Threw it into a batch, ran it as an admin, rebooted and it didnt work. I'm confused. :-/

  2. The key is for local machine meaning it will run regardless of which of the IT staff log in.

    Your last two lines from the example given should be sub-keys of %KEY% we usually use numeric sub-keys in order to control order, though for one key I suppose you could choose any sub-key name.

    SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

    REG ADD %KEY% /V TITLE /D "Mark_Test" /f

    REG ADD %KEY%1 /VE /D "Kyocera Mita Install" /f
    REG ADD %KEY%1 /V 1 /D "c:\migration\AI_KYOCERA_MITA_INSTALL.exe" /f

    How does that look?

  3. Hola everyone!

    I'm totally new to using reg.exe and am having a bit of an (emberassing to admit!) issue. I'm trying to get two executables to run, ONLY ONCE, after a reboot. To accomplish this, I have a batch file that runs after pushing a machine. This batch file is going to include the following entries to (hopfully after you guys help me out) do this. I assume I'm on the right track here?

    SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

    REG ADD %KEY% /V TITLE /D "Mark_Test" /f

    REG ADD %KEY% /VE /D "Kyocera Mita Install" /f
    REG ADD %KEY% /V 1 /D "c:\migration\AI_KYOCERA_MITA_INSTALL.exe" /f

    This is one of the programs I'd like to run. My questions are:

    1) This is not working. I know that the executable is located that directory.

    2) What is the best way to go about adding another executable to run after this one.

    3) This is probably a really stupid question, but how do I make sure that this only runs once ever and under any user that logs in (it could be any of the IT staff here)?

    Thanks in advanced guys! :)

×
×
  • Create New...