Hello,

I am trying to build a script that exports a single registry key under
HKEY_LOCAL_MACHINE\SOFTWARE\Comapny Name\Product Name\Sites\ and all of the
subkeys. Can this be done. I have looked all over Google and can't find
anything on it.

Please let me know.

Thanks,
Robbie

Re: VBScript to Export Registry Key by Alex

Alex
Mon Jan 19 10:13:11 CST 2004

The simplest way to do this is from a command prompt:

regedit /s /e c:\tmp\swmic.reg HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft

If you need to call it from VBScript, you can use WScript.Shell's Run
method... is this what you needed?

By the way, try the groups server - http://groups.google.com - a check on
registry and export there will give you a bunch of hits, particularly
applicable if you filter down to microsoft.public.scripting.*

Robert Elliott wrote:
> Hello,
>
> I am trying to build a script that exports a single registry key under
> HKEY_LOCAL_MACHINE\SOFTWARE\Comapny Name\Product Name\Sites\ and all of
> the subkeys. Can this be done. I have looked all over Google and
> can't find anything on it.
>
> Please let me know.
>
> Thanks,
> Robbie



Re: VBScript to Export Registry Key by Robert

Robert
Mon Jan 19 11:28:25 CST 2004

Perfect.

This is exactly what I was looking for. Thanks.

Robbie

"Alex K. Angelopoulos [MVP]" <aka-at-mvps-dot-org> wrote in message
news:eBklkcq3DHA.2528@tk2msftngp13.phx.gbl...
> The simplest way to do this is from a command prompt:
>
> regedit /s /e c:\tmp\swmic.reg HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft
>
> If you need to call it from VBScript, you can use WScript.Shell's Run
> method... is this what you needed?
>
> By the way, try the groups server - http://groups.google.com - a check on
> registry and export there will give you a bunch of hits, particularly
> applicable if you filter down to microsoft.public.scripting.*
>
> Robert Elliott wrote:
> > Hello,
> >
> > I am trying to build a script that exports a single registry key under
> > HKEY_LOCAL_MACHINE\SOFTWARE\Comapny Name\Product Name\Sites\ and all of
> > the subkeys. Can this be done. I have looked all over Google and
> > can't find anything on it.
> >
> > Please let me know.
> >
> > Thanks,
> > Robbie
>
>



Re: VBScript to Export Registry Key by Torgeir

Torgeir
Mon Jan 19 16:26:52 CST 2004

"Alex K. Angelopoulos [MVP]" wrote:

> The simplest way to do this is from a command prompt:
>
> regedit /s /e c:\tmp\swmic.reg HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft

and if you always want the output in ASCII format:

regedit /s /e:a ...


--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide: http://www.microsoft.com/technet/scriptcenter



Re: VBScript to Export Registry Key by Alex

Alex
Mon Jan 19 19:34:32 CST 2004

I didn't know that. :|

Torgeir Bakken (MVP) wrote:
> "Alex K. Angelopoulos [MVP]" wrote:
>
>> The simplest way to do this is from a command prompt:
>>
>> regedit /s /e c:\tmp\swmic.reg HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft
>
> and if you always want the output in ASCII format:
>
> regedit /s /e:a ...