Quantcast
Channel: Outlooking on Outlook – your answers are here
Viewing all articles
Browse latest Browse all 97

How to copy all Signatures or .NK2 files from Outlook 2003 to Outlook 2007!

$
0
0


For example if you migrated to Outlook 2007 and you also received a new machine, you want to make a back-up of the NK2 files and also to your signatures before the upgrade.
With this sample .vbs logoff script you can copy all these information from this folders to an external location (network drive) and after the migration use a logon script to copy them back:

Outlook saves the local data in this two locations :
- C:\Users\UserName\AppData\Roaming\Microsoft\Outlook
- C:\Users\UserName\AppData\Local\Microsoft\Outlook


Please read the following information to get an overview about this data:
http://msdn.microsoft.com/en-us/library/ff625288.aspx - Nickname cache
http://office.microsoft.com/en-us/outlook-help/copy-autocomplete-name-list-to-another-computer-HA001139451.aspx   Copy Autocomplete name list to another computer

MICROSOFT MAKES NO WARRANTIES ABOUT THE SUITABILITY, RELIABILITY OR ACCURACY OF THE SAMPLE APPLICATION THAT HAS BEEN SENT TO YOU
PLEASE USE IT ON YOUR OWN RISK AND JUST AS A SAMPLE APPLICATION THAT ILUSTRATES HOW SUCH A FUNCTIONALITY CAN BE IMPLEMETED
This sample is not supported under any Microsoft standard support program or service. The sample code is provided AS IS without warranty of any kind. Microsoft further disclaims all implied warranties including, without limitation, any implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of  the sample code and documentation remains with you. In no event shall Microsoft, its authors, or anyone else involved in the creation, production, or delivery of the code be liable for any  damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code or documentation.
 

You can create a script which should copy all the information from this folder to a location (network drive) and after the migration use a logon script to copy this back, below you will find how to copy all these files:

For NK2:
Local - C:\Users\UserName\AppData\Local\Microsoft\Outlook.


Dim fldr
Set oWShell = CreateObject("WScript.Shell")
sAppdFolder = oWShell.RegRead ("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Local AppData")
'Wscript.echo sAppdFolder
Set oFso = CreateObject("Scripting.FileSystemObject")
set fldr = oFso.GetFolder(sAppdFolder & "\Microsoft\Outlook")
for each fl in fldr.Files
if Right(fl.Name, 4) = ".NK2" then
'Wscript.echo "Will copy " & fl.Name
fl.copy  "\\Server\Outlook\Alex\NK2\" & fl.name
end if
next


Roaming - C:\Users\UserName\AppData\Roaming\Microsoft\Outlook

Dim fldr
Set oWShell = CreateObject("WScript.Shell")
sAppdFolder = oWShell.RegRead ("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\AppData")
'Wscript.echo sAppdFolder
Set oFso = CreateObject("Scripting.FileSystemObject")
set fldr = oFso.GetFolder(sAppdFolder & "\Microsoft\Outlook")
for each fl in fldr.Files
if Right(fl.Name, 4) = ".NK2" then
'Wscript.echo "Will copy " & fl.Name
fl.copy  "\\Server\Outlook\Alex\NK2\" & fl.name
end if
next


For Signatures:

- C:\Users\UserName\AppData\Roaming\Microsoft\Signatures
- C:\Users\UserName\AppData\Local\Microsoft\Signatures


Local - C:\Users\UserName\AppData\Local\Microsoft\Signatures


Dim fldr
Set oWShell = CreateObject("WScript.Shell")
sAppdFolder = oWShell.RegRead ("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Local AppData")
Set oFso = CreateObject("Scripting.FileSystemObject")
set fldr = oFso.GetFolder(sAppdFolder & "\Microsoft\Signatures")
'WScript.echo fldr.Path
oWShell.Run  "Xcopy """ & fldr.path & "\*""" &  " ""\\Server\Outlook\Alex\Signatures"" /E/i"

 

Roaming - C:\Users\UserName\AppData\Roaming\Microsoft\Signatures


Dim fldr
Set oWShell = CreateObject("WScript.Shell")
sAppdFolder = oWShell.RegRead ("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\AppData")
Set oFso = CreateObject("Scripting.FileSystemObject")
set fldr = oFso.GetFolder(sAppdFolder & "\Microsoft\Signatures")
'WScript.echo fldr.Path
oWShell.Run  "Xcopy """ & fldr.path & "\*""" &  " ""\\Server\Outlook\Alex\Signatures"" /E/i"


Additional Info:

http://technet.microsoft.com/en-us/library/cc179097.aspx - Office Customization Tool in the 2007 Office system
http://technet.microsoft.com/en-us/library/cc764476.aspx  - Office Customization Tool (OCT) overview

I hope this helps you, and I’m glad to receive any comments or suggestions.


Viewing all articles
Browse latest Browse all 97

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>