Inserting a reg file in the SetupComplete.cmd file

Traitée Inserting a reg file in the SetupComplete.cmd file

  • Tuesday, October 02, 2012 10:44 AM
     
      Has Code

    Hi

    How should I do to insert a reg file in the SetupComplete.cmd file?

    Thanks

    Bye


    Balubeto

    • Changed Type balubeto Wednesday, October 03, 2012 8:06 AM
    •  

All Replies

  • Wednesday, October 03, 2012 5:18 AM
     
     Answered Has Code

    Use regedit /s from setupcomplete.cmd

    regedit /s C:\Install\Set-ExecutionPolicy.reg
    regedit /s C:\Install\Set_No_Pagefile.reg


    Don't forget to mark your posts as answered so they drop off the unanswered post filter. If I've helped you and you want to show your gratitude, just click that green thingy.

  • Wednesday, October 03, 2012 8:05 AM
     
     

    After performing this, I have to tell the system to automatically reboot to make sure that the new registry keys or entries work immediately or not? If so, how do I do this?

    Thanks

    Bye


    Balubeto

  • Wednesday, October 03, 2012 8:44 AM
     
     Answered Has Code

    System/machine wide settings will require a reboot.  Use 'shutdown' command with the -r (restart) option. 

    http://ss64.com/nt/shutdown.html

    shutdown -r -t 0 -f


    Don't forget to mark your posts as answered so they drop off the unanswered post filter. If I've helped you and you want to show your gratitude, just click that green thingy.


    • Edited by Knuckle-Dragger Wednesday, October 03, 2012 8:48 AM
    • Marked As Answer by balubeto Wednesday, October 03, 2012 3:22 PM
    •