Re: Tutorial on writing to Registery

From: Ansgar -59cobalt- Wiechers (bugtraq_at_planetcobalt.net)
Date: 10/13/04

  • Next message: waters: "Why do all of my win2sp4 machines have port 110 open?"
    Date: Wed, 13 Oct 2004 02:31:18 +0200
    To: security-basics@securityfocus.com
    
    

    On 2004-10-10 Louie wrote:
    > I was wondering does anyone in here know where I could find out how to
    > run a batch file to write to the registry?
    >
    > I'm asking because for security issues that we have to upgrade for a
    > couple of machines. I just want the batch file to run rather then
    > going manual into the registry.

    You have several options:

    - Write a .reg-file with the settings you want to apply and import it
      into the registry by running "regedit /s my_settings.reg". Use
      "value"=- and [-KEY\NAME] to delete values and/or keys.
    - Edit the registry directly with reg.exe (MS' command-line registry
      editor). On Windows 2000 you will have to install the Support Tools
      from the Windows CD for this.
    - Edit the registry directly with a VB-script (see Windows Script
      documentation [1] for details).

    HTH

    [1] http://www.microsoft.com/downloads/details.aspx?FamilyId=01592C48-207D-4BE1-8A76-1C4099D7BBB9&displaylang=en

    Regards
    Ansgar Wiechers

    -- 
    "Those who would give up liberty for a little temporary safety
    deserve neither liberty nor safety, and will lose both."
    --Benjamin Franklin
    

  • Next message: waters: "Why do all of my win2sp4 machines have port 110 open?"

    Relevant Pages

    • Re: Change default tooltip color
      ... Can't he use a login batch file, that's uses the reg.exe command, for each ... .You can't reference a registry key that requires binary data. ... Microsoft MVP [Windows XP Shell/User] ... Windows® XP Troubleshooting http://www.winhelponline.com ...
      (microsoft.public.windowsxp.general)
    • Re: logic checks on regestry keys
      ... Microsoft MVP [Windows] ... | I don't want to modify the registry in anyway, just to a check and then ... execute another part of the batch file. ...
      (microsoft.public.win2000.registry)
    • Re: Regarding Windows server 2003 X64 bit
      ... This is regarding the Windows Server 2003 64 bit edition ... I need to write a batch file to know whether the OS is 64 bit or ... So how can I determine whether the OS is 64 bit or not from registry ...
      (microsoft.public.windows.server.general)
    • NewestShareware.com Issue #89
      ... FileBoss for Windows ... Program Homepage/Download url ... In general users make a program execute at window startup by ... Adding programs to the Registry and WIN.INI file protects the program. ...
      (comp.software.shareware.announce)
    • Re: Windows XP home login/off
      ... How to Perform an In-Place Upgrade of Windows XP ... Click on How To Run a Repair Install ... registry has worked the 5 or 6 times I have seen this problem. ... The script will stop and ask you to hit enter to continue to load SCSI ...
      (microsoft.public.windowsxp.wmi)