﻿==============================================================================
NOTE: Patches, tools and scripts are subject to the terms of the END USER 
LICENSE AGREEMENT ("EULA") that you accepted when installing the GFI product. 
GFI is not responsible for any data loss and will not be held accountable for 
the misuse of any patches or scripts. Therefore, please make sure that you 
follow all the instructions included within this read me document diligently. 

For reference to the EULA please visit: 
http://www.gfi.com/documents/gfi9_eula.pdf.
==============================================================================
Please make sure that you perform the following steps to extract the file:

Once the ZIP file is downloaded: 

1. Right-click the ZIP file, and then click Properties; 
2. In the General tab, click Unblock; 
3. Unpack the ZIP file.
==============================================================================

This tool can be run against installations of the following builds of 

GFI Archiver 2015 SR1: 

-> 20150218;

==============================================================================
  About this tool:
==============================================================================

This tool is designed to do two things:

1.	Generate a list of users in Archive Stores which no longer exists in 
	Active Directory (AD);
	
2.	Restore owners for email. This is the main purpose of this tool and can 
        be Used in cases for example when multiple recipient emails are only 
        getting Archived for only one particular recipient. Archive Restriction 
        rules will be taken into consideration when adding owners. A list of 
        owners added will be shown in RestoreOwners.log.

==============================================================================
How to make use of the tool:
==============================================================================

Copy the 'RestoreOwners.exe' and 'RestoreOwners.exe.config' files to Store\bin

IMPORTANT: Make sure that you set the user that is currently logged and making 
           use of 'RestoreOwners' with Full Access rights. This can be set from 
           the GFI Archiver UI -> Configuration -> Roles and Permissions -> 
           Manage Role Assignments. Assign user with 'Full Access' rights.

==============================================================================
Other info:
==============================================================================

The tool will not restore ownership to users who are not in AD any longer. In 
that case, one would need to re-create the user (as a dummy user) in AD and try 
running the tool again. The tool will then be able to assign ownership back to 
emails which were once associated with a deleted user. 