Jump to content

Script help: Backing up Outlook Express account in Registry


Recommended Posts

Hello all !

Outlook Express store all Email Account in this key:

HKEY_CURRENT_USER\Software\Microsoft\Internet Account Manager\Accounts

Could anyone help me to do a little script wich backup only the "numeric sub keys" and excluding the others sub keys (listed from... \Accounts)

SubKeys to backup

Internet Account Manager\Accounts\00000001

Internet Account Manager\Accounts\00000002

Internet Account Manager\Accounts\00000003

...

SubKeys to exclude

Internet Account Manager\Accounts\Active Directory GC

Internet Account Manager\Accounts\Bigfoot

Internet Account Manager\Accounts\VeriSign

Internet Account Manager\Accounts\WhoWhere

I suppose that could be done with a batch using "for /f" but I don't know how to use this this famous for /f command lol

"REGEDIT /e "OE_Acc.reg" "HKEY_CURRENT_USER\Software\Microsoft\Internet Account Manager\Accounts"

Wich obviously store all sub keys :(

Any help would be veeery appreciated :whistle:

Link to comment
Share on other sites


This is suprisingly not as simple a task to do as you'd perhaps think!

Try this quick attempt and see how it goes:

OEAccBak.cmd

@Echo off&Setlocal
Set "_=HKCU\Software\Microsoft\Internet Account Manager\Accounts"&Set "$=0"
>OE_Acc.reg (Echo:REGEDIT4&Echo:)
For /f "delims=" %%# In ('Reg query "%_%"^|Findstr/i \\accounts\\0000') Do (
Call :S_ "%%#")
For /l %%_ In (1,1,%$%) Do Find /v "REGEDIT4"<$%%_#.log>>OE_Acc.reg
Del /q $*#.log
Goto :Eof
:S_
Set/a "$+=1"
Regedit/a $%$%#.log %1

Link to comment
Share on other sites

Thanks a lot Yzöwl :thumbup

Tested, and it works perfectly !

This script does exactly what I was looking for :D

Great script for backing up OE account quickly !

Thanks thanks and many thanks again :)

Link to comment
Share on other sites

  • 2 months later...
This is suprisingly not as simple a task to do as you'd perhaps think!

Try this quick attempt and see how it goes:

OEAccBak.cmd

@Echo off&Setlocal
Set "_=HKCU\Software\Microsoft\Internet Account Manager\Accounts"&Set "$=0"
>OE_Acc.reg (Echo:REGEDIT4&Echo:)
For /f "delims=" %%# In ('Reg query "%_%"^|Findstr/i \\accounts\\0000') Do (
Call :S_ "%%#")
For /l %%_ In (1,1,%$%) Do Find /v "REGEDIT4"<$%%_#.log>>OE_Acc.reg
Del /q $*#.log
Goto :Eof
:S_
Set/a "$+=1"
Regedit/a $%$%#.log %1

Is there a way to make a script to restore the mail accounts after effecting a fresh installation please?

Edited by targa
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...