Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rename Registry Key

Status
Not open for further replies.

ben1234zz

MIS
May 12, 2008
71
GB
Hi

We have to rename the outlook profile name for all our users. We thought that setting up a logon script for the job would be best, the key is:

HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\Default

And we need to change it to:

HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\USERNAME


I may be looking in the wrong place but cannot find a solution!

Thanks
B
 
By script, there is no in-place rename() by some built-in method. You have to make a custom function to create new keys ,copy old keys and values and delete the old keys.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top