none
Run and RunOnce on Nano Server. RRS feed

  • Question

  • Is there any way to add script/tool to automatic startup on Nano Server (10586 build)?

    I see there no Run and no RunOnce hives available in registry

    Sunday, December 6, 2015 11:35 AM

Answers

  • OK, managed using task scheduler

    in SetupComplete.cmd :

    schtasks /create /tn "Postinstall" /tr c:\windows\temp\Customize_NanoServer_10586.cmd /sc onstart 2>&1 >> c:\log.txt

    and on end of script:

    schtasks /delete /tn "Postinstall" /f  2>&1 >> c:\log.txt


    Sunday, December 6, 2015 2:36 PM

All replies

  • OK, managed using task scheduler

    in SetupComplete.cmd :

    schtasks /create /tn "Postinstall" /tr c:\windows\temp\Customize_NanoServer_10586.cmd /sc onstart 2>&1 >> c:\log.txt

    and on end of script:

    schtasks /delete /tn "Postinstall" /f  2>&1 >> c:\log.txt


    Sunday, December 6, 2015 2:36 PM
  • Hi,

    Yes, a scheduled task is the way to go.

    Thanks,

    Andrew

    Monday, December 7, 2015 10:10 PM