Registry Update Script

G

Guest

Anyone have an example of a script that can search the registry and update a
value.

I want to change a drive path (EX. D:\APPS to E:\APP)

I used to use a batch file using REG, but can't locate it.

I know that I should be more intune with WSH or VBScript - but I'm a
intermediate at best ...
 
M

Mark V

In microsoft.public.win2000.registry
=?Utf-8?B?UmVnaXN0cnkgVXBkYXRlIFNjcmlwdA==?= said:
Anyone have an example of a script that can search the registry
and update a value.

I want to change a drive path (EX. D:\APPS to E:\APP)

I used to use a batch file using REG, but can't locate it.

I know that I should be more intune with WSH or VBScript - but I'm
a intermediate at best ...

FWIW
Just a comment. If you mean change all references in all hives of
"D:\APPS" I personally would not trust an automated (but dumb) script
to make such sweeping global changes without user supervision.
Better perhaps to use a GUI registry tool that doss Search and
Replace with user interactive approval. And of course have both
complete Full registry backups in advance and a fall-back (recovery)
plan ready.

There may be tools akin to PCMag's "COA" that are appropriate, but
I've never used any of them.

There may be documents available on the Internet to assist you in
your project, but I have no links handy.

It might (conjecture) be advisable to do this on a duplicate and non-
active set of registry hive files "off line", then use Recovery
Console to "swap in" (or out) the set.

Don't forget about file system ACL's.
Don't forget about registry entries containing your string that are
possibly stored in alternate forms (eg \\?\ or %systemdrive%\ for
example) or in data formats other than STRING (eg DWORD).

Good luck.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top