Hello guys!

Is it possible to rename a registry Key or a registry
value name using WMI? I have gone through the all the
methods and properties StdRegProv Class in root\default
and found nada. I only want this script in JScript or
VBsript without loading any extended registry DLL. Just
using the WinMgmts: Moniker.

Anyone got a suggestion on this?

Thanks for your support.

/W

Re: Renaming a registry Key using WMI by Torgeir

Torgeir
Mon Sep 01 07:48:29 CDT 2003

Woody wrote:

> Hello guys!
>
> Is it possible to rename a registry Key or a registry
> value name using WMI? I have gone through the all the
> methods and properties StdRegProv Class in root\default
> and found nada. I only want this script in JScript or
> VBsript without loading any extended registry DLL. Just
> using the WinMgmts: Moniker.
>
> Anyone got a suggestion on this?

Hi

There is no rename methods I'm afraid. Delete old/create new key or value using
WMI (or WSH registry methods if possible) is a workaround.


--
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