Deploying a .reg file to multiple servers

Discussion in 'Windows Server' started by Shaun Pillay, Aug 8, 2005.

  1. Shaun Pillay

    Shaun Pillay Guest

    Hi Everyone,

    I have a single .reg file that I need to deploy to approximately 1500
    servers which are spanned across several local and international sites. What
    is the simplest way to do this please?

    Many thanks in advance.

    Shaun
     
    Shaun Pillay, Aug 8, 2005
    #1
    1. Advertisements

  2. Shaun Pillay

    Brad Fox Guest

    VBScript and Group Policy, set as a computer startup script if writing to HKLM, set as user startup script if writin to HKCU.

    Save the script below as .vbs and add to group policy. Make sure to edit the constants.

    This writes a REG_SZ (string) value, if you are using binary or DWORD see this link to edit the method.
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/wsmthregwrite.asp

    ~~~~~~start script

    option explicit

    dim wshell

    const reg1 = "HKLM\Software\Key_I_Want_To_Write_to"
    const reg1val = "value of the key I want"

    set wshell = CreateObject("WScript.Shell")

    wshell.regwrite reg1, reg1val, "REG_SZ"

    ~~~~~~ end script

    Bradley Fox
    Sr. Network Administrator
     
    Brad Fox, Aug 8, 2005
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.