ForensiT Homepage
Forum Home Forum Home > ForensiT Support > Domain Migration
  Active Topics Active Topics
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

A Flag for a successfull migration before reboot

 Post Reply Post Reply
Author
Message
  Topic Search Topic Search  Topic Options Topic Options
zmad View Drop Down
Newbie
Newbie


Joined: 04 Nov 2009
Location: Canada
Online Status: Offline
Posts: 28
  Quote zmad Quote  Post ReplyReply Direct Link To This Post Topic: A Flag for a successfull migration before reboot
    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.
Back to Top
Support View Drop Down
Moderator Group
Moderator Group


Joined: 09 Nov 2006
Location: United Kingdom
Online Status: Offline
Posts: 1317
  Quote Support Quote  Post ReplyReply Direct Link To This Post 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"
Back to Top
zmad View Drop Down
Newbie
Newbie


Joined: 04 Nov 2009
Location: Canada
Online Status: Offline
Posts: 28
  Quote zmad Quote  Post ReplyReply Direct Link To This Post 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


 

Back to Top
Support View Drop Down
Moderator Group
Moderator Group


Joined: 09 Nov 2006
Location: United Kingdom
Online Status: Offline
Posts: 1317
  Quote Support Quote  Post ReplyReply Direct Link To This Post 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.
 
 


Edited by Support - 05 Feb 2010 at 6:39am
Back to Top
zmad View Drop Down
Newbie
Newbie


Joined: 04 Nov 2009
Location: Canada
Online Status: Offline
Posts: 28
  Quote zmad Quote  Post ReplyReply Direct Link To This Post 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>
Back to Top
Support View Drop Down
Moderator Group
Moderator Group


Joined: 09 Nov 2006
Location: United Kingdom
Online Status: Offline
Posts: 1317
  Quote Support Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
zmad View Drop Down
Newbie
Newbie


Joined: 04 Nov 2009
Location: Canada
Online Status: Offline
Posts: 28
  Quote zmad Quote  Post ReplyReply Direct Link To This Post Posted: 05 Feb 2010 at 7:37am
Smile... My script has
Set objAppDataFolder = objShellApp.Namespace(APPLICATION_DATA)
Thank you.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.016 seconds.