script to change registry value

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1552
    Avatarjlcarreiro
    Member
    • Total Post: 30
    • Frequent Flyer
    • ★★★

    Hi. I help on making a registry change to where our devices get their time from. Background, we moved and now have a new domain controler name.
    I know the registry key to change : HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftW32timeParameters and the value to change: NtpServer”=”timeserver/domain controller.
    I am new to all this, and due to budget issues they won’t send me to wyse training.
    Soooooooooo… Can someone help in how I should configure the script? It wasn’t too clear to me in the admin manual.
    Thanks much
    Joe C.

    #14238
    ConfGenConfGen
    Keymaster
    • Total Post: 10966
    • Jedi Master
    • ★★★★★★★

    Hi,

    this is an easy one.
    Save the registry hive you have modified as a standard .reg file.
    Create a .rsp file (which is a simple text file) and edit it.
    Copy and paste this or a similar text in it:

    [Version]
    Number=ChangeTimeServer
    Description=Change the local time server to the new DC
    OS=XP
    Category=XP Addons

    [Script]
    CO “XP”
    QU “2” “5”
    LU*
    MR “regfilestimeserver.reg”
    EL*

    Now save this file as “ChangeTimeServer.rsp” and create a folder at the same level called “ChangeTimeServer”. Create a subfolder beneath “ChangeTimeServer” called “regfiles”. Save your earlier created regfile as “timeserver.reg” there.
    Open WDM and register this new package.

    Now you are ready to distribute it.

    Cheers
    CG

    #14242
    Avatarjlcarreiro
    Member
    • Total Post: 30
    • Frequent Flyer
    • ★★★

    Thank you very much, using that gave me a much better understanding of how the scripts work.
    And it works great.
    So, can I make multiple registry changes in one package?
    example, we change the time server(thank you), and I want turn on auto log on. ( we only use these terminals to log on to a citrix environment.)
    Again, thank much.
    Joe C.

    #14244
    ConfGenConfGen
    Keymaster
    • Total Post: 10966
    • Jedi Master
    • ★★★★★★★

    Of course you can. You can write quite complex scripts with multiple registry changes, files copies, executions of programs, etc….
    Even reboots in the middle of the script are allowed. The script would continue after the reboot automtically.

    CG

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.