Nmap Security Scanner
*Intro
*Ref Guide
*Install Guide
*Download
*Changelog
*Book
*Docs
Security Lists
*Nmap Hackers
*Nmap Dev
*Bugtraq
*Full Disclosure
*Pen Test
*Basics
*More
Security Tools
*Pass crackers
*Sniffers
*Vuln Scanners
*Web scanners
*Wireless
*Exploitation
*Packet crafters
*More
Site News
Site Search:
Exploit World
Advertising
About/Contact
Credits
Sponsors:




basics logo Security Basics mailing list archives

RE: Tutorial on writing to Registery
From: <adisegna () siscocorp com>
Date: Wed, 13 Oct 2004 13:25:14 -0400

Here is an example of a WSH script using the REG.EXE. This script copies
the settings in the registry of Symantec AntiVirus Corporate Edition to
a folder. It's basically doing a registry export from the command line
versus using the regedit.exe GUI. This is a working script for those of
you using Symantec AntiVirus Corporate Edition. I use it to backup my
settings to another server in case of a server crash (saves time instead
of restoring from a tape). Use "reg.exe Import" to put information back
into the registry.

Set objShell = CreateObject("Wscript.Shell")
objShell.Exec "%comspec% /k reg.exe Export
HKLM\Software\Intel\LANDesk\VirusProtect6\CurrentVersion
C:\temp\Registry.reg"
'Wscript.Echo "Backup Complete" & vbNewLine & "Contents copied to some
secrete location"


Thanks.


AD
Information Technology Group
Security Identification Systems Corporation
 

-----Original Message-----
From: H Carvey [mailto:keydet89 () yahoo com] 
Sent: Wednesday, October 13, 2004 6:52 AM
To: security-basics () securityfocus com
Subject: Re: Tutorial on writing to Registery

In-Reply-To: <00fc01c4aeb8$471bb470$6401a8c0 () cmp1>

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 may want to look into using reg.exe from Microsoft, or using .reg
files (via regedit /s).


  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]