Announcement

Collapse
No announcement yet.

Running a DOS command with options when I reboot the system

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Running a DOS command with options when I reboot the system

    HI

    In Windows 7, there is a registry key/entry that allows to run a DOS command with options when I reboot the system (this command will have to be performed only on the first reboot)?

    THANKS

    BYE
    balubeto

  • #2
    Re: Running a DOS command with options when I reboot the system

    If you can cope with it on login, consider deploying it to the startup folder

    Alternatively use the local computer policy as per this link:
    http://www.addictivetips.com/windows...ystem-startup/
    (you will run cmd.exe with appropriate parameters and use a startup script - in the Computer section - not a logon script)
    Tom Jones
    MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
    PhD, MSc, FIAP, MIITT
    IT Trainer / Consultant
    Ossian Ltd
    Scotland

    ** Remember to give credit where credit is due and leave reputation points where appropriate **

    Comment


    • #3
      Re: Running a DOS command with options when I reboot the system

      If it is only the first boot, you can use the

      HKLM\Software\Microsoft\Windows\Currentversion\Run once

      registry key. It will run the command, and then delete the key.
      gerth

      MCITP sa, ea & va, [email protected]

      Comment


      • #4
        Re: Running a DOS command with options when I reboot the system

        Originally posted by gerth View Post
        If it is only the first boot, you can use the

        HKLM\Software\Microsoft\Windows\Currentversion\Run once

        registry key. It will run the command, and then delete the key.
        Thats the option i would have chosen.

        Comment

        Working...
        X