Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Visual Basic (https://www.askmehelpdesk.com/forumdisplay.php?f=469)
-   -   Script to update windows 2003 server registry (https://www.askmehelpdesk.com/showthread.php?t=378512)

  • Jul 22, 2009, 08:06 AM
    1065518
    script to update windows 2003 server registry
    I need help writing an array to populate the RegLocate and RegLocate1 variables. I have all the information in a spreadsheet. It's only 54 keys, so the information can be directly in the script. I have been trying for several days, and just can't get it to work. The basic script is below. It works if I put the specific variables in, but I would have to do it one at a time, and that defests the purpose. Thanks for any help

    Dim objShell, RegLocate, RegLocate1
    Set objShell = WScript.CreateObject("WScript.Shell")
    On Error Resume Next
    RegLocate = ""
    objShell.RegWrite RegLocate,"","REG_DWORD"
    WScript.Quit

  • All times are GMT -7. The time now is 06:19 AM.