Print Page | Close Window

A Flag for a successfull migration before reboot

Printed From: ForensiT
Category: ForensiT Support
Forum Name: Domain Migration
Forum Discription: User Profile Wizard questions, suggestions, comments and bug reports
URL: http://forum.ForensiT.com/forum_posts.asp?TID=234
Printed Date: 21 Oct 2019 at 8:38pm


Topic: A Flag for a successfull migration before reboot
Posted By: zmad
Subject: A Flag for a successfull migration before reboot
Date Posted: 04 Feb 2010 at 10:44am
Hi,
I wonder if there is a Flag or any registry key that I can read (for a successful migration or a failed ones) before rebooting the PC.
I found the RegKey: (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon:DefaultDomainName)
But this value is not updated until a reboot is done.
Note:
In my case, I don't reboot the PC with Profwiz.exe reboot, because I have some settings to do and then I use my own reboot.
Thank you in advance.



Replies:
Posted By: Support
Date Posted: 04 Feb 2010 at 2:16pm
Hi,

If you are using a Deployment Kit generated script, a flag file is written to C:\Documents and Settings\All Users\Application Data (on XP) if the migration is successful. By default this is called "ForensiTMigrated"


Posted By: zmad
Date Posted: 05 Feb 2010 at 6:17am

Good morning,
You mean the Migrate.log file? So I need to parse this log file for the string "ForensiTMigrated"?
In Profwiz.config I changed the path for the log file under C:\Forensit\Migrate.log. In this file I have the String "Migration Complete!" at the end of the file...I don't have "ForensiTMigrated" (On XP Service Pack 3)
Rather than parsing a log file is there another way to know the success or the failure of the migration (Reg key, or ...)Wink
Thank you very much for your good support.
Cheers


 



Posted By: Support
Date Posted: 05 Feb 2010 at 6:38am
No, you don't need to parse the log file. The migration script writes an actual file called ForensiTMigrated to  to C:\Documents and Settings\All Users\Application Data to indicate that a machine has been migrated. The script checks for this file when it runs so that the machine is not migrated more than once.
 
In fact there are two possible locations for ForensiTMigrated depending on whether you are migrating all users, or just the currently logged on user. If you are just migrating the currently logged on user the ForensiTMigrated file will be in that user's Application Data folder.
 
 


Posted By: zmad
Date Posted: 05 Feb 2010 at 6:56am
Thanks!
I migrate all the users except the Admin, but I found the file "ForensitMigrated" under C:\Documents and Settings\"Logged user"\Application Data
my "Logged user" is the one who initiates the migration who can be an Admin or a simple user. the params in Profwiz.config are:
    <All>True</All>
    <OldDomain></OldDomain>
    <UserLookupFile></UserLookupFile>
    <Exclude>ASPNET,Administrator,PIMAGE</Exclude>


Posted By: Support
Date Posted: 05 Feb 2010 at 7:32am
Where the flag file is created depends on this line in the migration script:
 
Set objAppDataFolder = objShellApp.Namespace(ALL_USERS_APPLICATION_DATA)
 
The script uses ALL_USERS_APPLICATION_DATA for all users, and APPLICATION_DATA for the current user.


Posted By: zmad
Date Posted: 05 Feb 2010 at 7:37am
Smile... My script has
Set objAppDataFolder = objShellApp.Namespace(APPLICATION_DATA)
Thank you.



Print Page | Close Window