Jump to content











Photo
- - - - -

Marietto User Migration System


  • Please log in to reply
3 replies to this topic

#1 Marietto

Marietto

    Frequent Member

  • Advanced user
  • 268 posts
  • Location:Italy
  • Interests:Computers,movies,read/write,talking about philosophy and religion.
  •  
    Italy

Posted 23 November 2010 - 05:25 PM

After 6 months of work (from may to october 2010) I've finished my first work. I did not want to share it with everyone, but after reading this article :

http://pulse2.com/20...ff-from-others/

I finally decided to do it. If we want to keep Internet a place accessible to everyone, especially for those who do not have the resources to access it, we must strive to share our ideas. It 's not easy, but we must do it. I did it several times and I don't want to get criticism by anyone. Ok come back to us.


My system is able to manage all the migration combinations from and to all the different Windows versions using the USMT 4 tool.

The User State Migration Tool (USMT) is a Microsoft command line utility program to copy user files and settings from one Microsoft Windows computer to another. It is intended mainly for IT professionals to use in scripted migrations of bigger corporate installations; for general users Windows Easy Transfer is recommended instead. USMT migrates files and settings between Microsoft Windows versions 2000, XP, Vista and Windows 7, and is useful in migrating user settings and files during OS upgrades. 32-bit to 64-bit migrations are supported, but 64-bit to 32-bit are not.

Source OS supported :

Windows XP SP3, Windows XP Professional x64, Windows Vista SP1 and Windows 7 (All 32-bit and 64-bit editions)

Destination OS supported :

Windows Vista and Windows 7 (All 32-bit and 64-bit editions)


What USMT transfers ?

Selected User Accounts
Files and folders
E-mail messages, settings, and contacts
Photos, music, and videos
Windows settings
Program data files and settings
Internet settings

My system is able to backups and restore settings / drivers / serial numbers (if the old version of Windows is the same as the new installed one) from a version of Windows to another,on the same first partition/disk. This is in short how it works. On the first stage,I used Grub4dos to build a system menu options like this :

- To migrate to Vista/Seven 32/64 bit,please choose this option
- To migrate to Vista/Seven 32/64 bit,after having chosen the first option,you have to :

A) Insert the Windows Vista 32/64 bit DVD

B) Don't detach the USB key and reboot the computer

C) Go into the BIOS and change the boot disk sequence into : DVD/HD/USB

D) Launch the Windows Vista/Seven 32/64 bit from the DVD-ROM


After the first Windows Vista/Seven reboot,you have to :


A) Remove the DVD-ROM and the USB stick

- To migrate to XP 32/64 bit :

A) Remove the Windows XP CD-ROM and reboot the computer

B) Choose this option (load KNOPPIX into the RAM memory)


- After having chosen the first option,choose this. (load XP.ISO image stage 1)
- After the first Windows XP reboot,you have to :


A) Remove the XP 32/64 bit CD/ROM
B) Don't detach the USB stick and reboot
C) After having rebooted the computer,choose this option (KNOPPIX again to fix boot.ini)
D) After having chosen the option D,choose this option (load Windows XP stage 2)
E) After the 2^ XP reboot,detach the USB stick.


When you choose the first option,this is what happens in short :

kernel /KNOPPIX/boot/linux
initrd /KNOPPIX/boot/minirt.gz

Knoppix 6.2 is loaded into the RAM memory. Inside the squash image of the Knoppix I have included two shell scripts. They try to determine which version of Windows is running and to which kind of Windows version you could migrate on. This is achieved with this kind of code :


elif [ "$ver_windows_min" = "xp32_professional" ] && [ -e/mnt/$drive_windows/Windows/System32/wow32.dll ]; then      eject      echo      echo You are using Windows XP 32 bit Professional,you can fixit,migrating to :      echo      echo ----------------------------------------------------------------------------      echo      echo 1-  Windows Seven 64 bit Home Basic   -Migration-      echo 2-  Windows Seven 64 bit Home Premium -Migration-      echo 3-  Windows Seven 64 bit Professional -Migration-      echo 4-  Windows Seven 64 bit Enterprise   -Migration-      echo 5-  Windows Seven 64 bit Ultimate     -Migration-      echo 6-  Windows Vista 64 bit Home Basic   -Migration-      echo 7-  Windows Vista 64 bit Home Premium -Migration-      echo 8-  Windows Vista 64 bit Ultimate     -Migration-      echo 9-  Windows Vista 64 bit Business     -Migration-      echo 10- Windows Vista 64 bit Enterprise   -Migration-      echo 11- Windows XP    64 bit Home         -Migration-      echo 12- Windows XP    64 bit Professional -Migration-      echo 13- Windows Seven 32 bit Starter      -Migration-      echo 14- Windows Seven 32 bit Home Basic   -Migration-      echo 15- Windows Seven 32 bit Home Premium -Migration-      echo 16- Windows Seven 32 bit Professional -Migration-      echo 17- Windows Seven 32 bit Enterprise   -Migration-      echo 18- Windows Seven 32 bit Ultimate     -Migration-      echo 19- Windows Vista 32 bit Starter      -Migration-      echo 20- Windows Vista 32 bit Home Basic   -Migration-      echo 21- Windows Vista 32 bit Home Premium -Migration-      echo 22- Windows Vista 32 bit Ultimate     -Migration-      echo 23- Windows Vista 32 bit Business     -Migration-      echo 24- Windows Vista 32 bit Enterprise   -Migration-      echo 25- Windows XP    32 bit Home         -Migration-      echo 26- Windows XP    32 bit Professional -Migration-
The shell script n.2 tries to move certain files of Windows XP/Vista/Seven so that when the computer is rebooted,the migration OS chosen can starts. I've placed the XP/Vista/7 unattended configuration files on the right places,so that when the migration OS is installed,the unattended scripts can make starts the stage N. 2. This last step is easy,it tries to :A) backup the Windows activation filesB) extract the drivers in offline mode from the old Windows installation (with driverexportpe of KARE) and import them into the new one (with dpinst). If the old / new installation of Windows are not the same,the drivers are loaded from a database saved on the USB key. C) extract the settings and configurations from the old Windows OFFLINE installation using the USMT 4 tool and importing them to the new one.Files and folders structure :Root of the USB stick :“Inst” folder ; “KNOPPIX” folder; “script” folder and these files : “FDCONFIG.SYS” ; “grldr” ; “menu.lst” ;This the content of the file : “FDCONFIG.SYS”
!LASTDRIVE=Z!BUFFERS=20     !FILES=40!DOS=HIGH,UMB!DOSDATA=UMB!set dircmd=/ogn /4DEVICE=C:\Inst\HIMEM.EXE SHELLHIGH=C:\Inst\COMMAND.COM /E:1024 /P=C:\inst\fdauto.bat
This is the content of the file : “menu.lst”
splashimage=(hd0,0)/splash.xpm.gztitle – To migrate to Vista/Seven 32/64 bit,choose this option first.kernel /KNOPPIX/boot/isolinux/linux ramdisk_size=100000 2 toram lang=it vt.default_utf8=0 apm=power-off vga=791 nomce quiet loglevel=0 tz=localtimeinitrd /KNOPPIX/boot/isolinux/minirt.gztitle – To migrate to Vista/Seven 32/64 bit,after having chosen the 1^ option :reboottitle -reboottitle A) Insert the Windows Vista / Seven 32/64 bit DVD-ROM.reboottitle -reboottitle B) Don’t detach the USB Stick and reboot the computer.reboottitle -reboottitle C) Go to the BIOS and change the disks boot sequence to ---> DVD/HD/USB.reboot title -reboottitle D) Launch the Vista/Seven 32/64 bit installation from the DVD/ROMreboottitle -reboottitle After the first Vista / Seven 32/64 bit reboot :reboottitle -reboottitle A) Remove the DVD-ROM and the USB Stick.reboottitle -reboottitle – To migrate to Windows XP 32/64 bit :reboottitle -reboottitle A) Remove the Windows XP 32/64 bit CD-ROM and reboot.reboottitle -reboottitle B) ...and then choose this option.find --set-root /Inst/KERNEL.SYSchainloader /Inst/KERNEL.SYS
Inside the “Inst” folder there are these files :Command.com ; FDauto.bat ; grub.exe ; himem.exe ; io.sys ; kernel.sys ; menu.lst ; msdos.sys ;This is the content of the file : “Fdauto.bat”
@echo off SET CFGFILE=C:\FDCONFIG.SYSC:CD \InstGRUB.EXE
This is the content of the file : “menu.lst”
splashimage=(hd0,0)/Inst/splash.xpm.gztitle – To migrate to Windows XP 32/64 bit,choose this option first.kernel (hd0,0)/KNOPPIX/boot/isolinux/linux ramdisk_size=100000 2 toram lang=it vt.default_utf8=0 apm=power-off vga=791 nomce quiet loglevel=0 tz=localtimeinitrd (hd0,0)/KNOPPIX/boot/isolinux/minirt.gztitle – After having chosen the first option,choose this.find --set-root /xpinst/xp.isomap --mem /xpinst/firadisk.ima (fd1)map --mem (md)0x6000+800 (fd0)map --mem /xpinst/xp.iso (0xff)map --hookdd if=(fd1) of=(fd0) count=1chainloader (0xff)title – After the first Windows XP 32/64 bit reboot :reboottitle -reboottitle -reboottitle A) Remove the Windows XP 32/64 bit CD/ROM.reboottitle -reboottitle B) Don’t detach the USB Stick and reboot.reboottitle -reboottitle C) After having rebooted the computer,choose this option :kernel /KNOPPIX/boot/isolinux/linux ramdisk_size=100000 2 toram lang=it vt.default_utf8=0 apm=power-off vga=791 nomce quiet loglevel=0 tz=localtimeinitrd /KNOPPIX/boot/isolinux/minirt.gztitle -reboottitle D) After having chosen the option D,choose this.find --set-root /xpinst/xp.isomap (hd0) (hd1)map (hd1) (hd0)map --mem /xpinst/xp.iso (0xff)map --hookchainloader (hd0)+1title -reboottitle E) After the 2^ Windows XP 32/64 bit reboot,remove the USB Stick.reboot
Inside the “KNOPPIX” folder there are these folders : “boot” and “modules” and this file : KNOPPIXThe KNOPPIX file is the remastered image of the KNOPPIX 6.2,created following this tutorial : http://www.knoppix.net/wiki/Knoppix_Remastering_Howtoto make run automatically the shell scripts “start” and “mod”,you have to :A) copy “start” and “mod” to /usr/sbin (inside the Knoppix remastered image)B) go into /etc/rc.local and add this line :
/usr/sbin/start
C) go to /etc/init.d/knoppix-autoconfig and change this line :
[ -x /etc/rc.local ] && /usr/bin/openvt –c 12 –f -- /etc/rc.local
With this :
[ -x /etc/rc.local ] && /usr/bin/openvt –c 11 –w –b –f –s -- /etc/rc.local
Inside the “boot” folder there is this folder : “isolinux”Inside the “isolinux” folder there are these files : “linux” and “minirt.gz”Inside the “modules” folder there are these files : “aufs.ko” and “kloop.ko”Inside the “script” folder there is the folder “reinst” and the files “start” and “mod”I’ve attached the files “start” and “mod”Inside the “reinst” folder there are these folders : “dpinst” ; “driverexportpe” ; “DRPsu” ; “firadisk” ; “produkey” ; “splash” ; “unattend” ; “usmt” ; and these files : “boot.bin” ; “boot.ini” ; “Fase2.cmd” ;This is the content of the file “boot.ini”
[boot loader]default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS.0[operating systems]multi(0)disk(0)rdisk(0)partition(1)\WINDOWS.0="Microsoft Windows XP NEW" /noexecute=optin /fastdetectmulti(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP OLD" /noexecute=optin /fastdetect
I’ve attached the file “Fase2.cmd”Inside the “dpinst” folder there are these files : “dpinst.exe” ; “dpinst.xml” ; “dpinst64.exe”This is the content of the file “dpinst.xml”
<dpinst><search>  <subDirectory>*</subDirectory></search></dpinst>
Inside the “driverestore” folder there are the files :“Driver Export PE.inf” ; “Drivexp.exe” ; “Drivexp_nu2menu.xml” ; you can look for it going here : http://www.kare-net.de/plugins.htmlInside the “DRPsu” folder there are the files and folders that you can see looking for “DRPsu” with google.Inside the “firadisk” folder there are the folders “32” and “64”Inside the “32” folder there is the file “firadisk.ima”Inside the firadisk.ima image file,there are included the following files : “firadisk.inf” ; “firadisk.sys” ; “firadisk64.sys” ; “txtsetup.oem”; Inside the “64” folder there is the file “firadisk.ima”Inside the firadisk.ima image file,there are included the following files : “firadisk.inf” ; “firadisk.sys” ; firadisk64.sys” ; “txtsetup.oem”; Inside the “produkey” folder there are the files that you can see looking for “produkey” with google.Inside the “splash” folder there are 9 folders (0-9),containing 10 different “splash.xpm” wallpapers for grub.Inside the “unattend” folder there are 3 folders : “vistaseven32” : “vistaseven64” ; “xp” ;Inside the “vistaseven32” folder there are two folders : “dp01” and “dp02”Inside the “dp01” folder there is the file “autounattend.xml”Inside the “dp02” folder there is the file “autounattend.xml”Inside the “vistaseven64” folder there are two folders : “dp01” and “dp02”Inside the “dp01” folder there is the file “autounattend.xml”Inside the “dp02” folder there is the file “autounattend.xml”This is the basic autounattend.xml file :
<?xml version="1.0" encoding="utf-8"?><unattend xmlns="urn:schemas-microsoft-com:unattend">    <settings pass="windowsPE">        <component name="Microsoft-Windows-International-Core-WinPE" (processorArchitecture="x86" or processorArchitecture="amd64") publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">            <SetupUILanguage>                <UILanguage>en-US</UILanguage>            </SetupUILanguage>            <InputLocale>en-US</InputLocale>            <SystemLocale>en-US</SystemLocale>            <UILanguage>en-US</UILanguage>            <UILanguageFallback>en-US</UILanguageFallback>            <UserLocale>en-US</UserLocale>        </component>        <component name="Microsoft-Windows-Setup" (processorArchitecture="x86" or processorArchitecture="amd64") publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">            <DiskConfiguration>                <Disk wcm:action="add">                    <DiskID>0</DiskID>                    <WillWipeDisk>false</WillWipeDisk>                </Disk>            </DiskConfiguration>            <ImageInstall>                <OSImage>                    <InstallTo>                        <DiskID>0</DiskID>                        (<PartitionID>1</PartitionID> or <PartitionID>2</PartitionID>)                    </InstallTo>                </OSImage>            </ImageInstall>            <UserData>                <AcceptEula>true</AcceptEula>                <FullName>Windows</FullName>                <Organization>Windows</Organization>            </UserData>        </component>    </settings>    <settings pass="specialize">        <component name="Microsoft-Windows-Shell-Setup" (processorArchitecture="x86" or processorArchitecture="amd64") publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">            <ComputerName>Windows</ComputerName>        </component>    </settings>    <settings pass="oobeSystem">        <component name="Microsoft-Windows-Shell-Setup" (processorArchitecture="x86" or processorArchitecture="amd64") publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">            <FirstLogonCommands>                <SynchronousCommand wcm:action="add">                    <Order>1</Order>                    <Description>Fase2</Description>                    <CommandLine>c:\fase2.cmd</CommandLine>                </SynchronousCommand>            </FirstLogonCommands>        </component>    </settings></unattend>


Inside the “xp” folder there is the file “WINNT.SIF”


This is the content of the file : “WINNT.SIF”


;SetupMgrTag[Data]    AutoPartition=0    MsDosInitiated="0"    UnattendedInstall="Yes"    AutomaticUpdates=yes[Unattended]    UnattendSwitch="Yes"    UnattendMode=FullUnattended    OemPreinstall=Yes    DriverSigningPolicy=ignore    NonDriverSigningPolicy=ignore[GuiUnattended]    AdminPassword=*    EncryptedAdminPassword=NO    OEMSkipRegional=1    TimeZone=110    OemSkipWelcome=1[GuiRunOnce]    %systemdrive%\fase2.cmd[UserData]    ProductKey=    FullName="no"    OrgName="no"    ComputerName=*[TapiLocation]    CountryCode=39[RegionalSettings]    LanguageGroup=1    SystemLocale=00000410    UserLocale=00000410    InputLocale=0410:00000410[Identification]    JoinWorkgroup=WORKGROUP[Networking]    InstallDefaultComponents=Yes


Inside the “usmt” folder there is the folder “4”
Inside the “4” folder there are the folders “x64” and “x86”
Inside the “x64” folder there are the files that you can see looking for the “USMT 4 Tools” with google.
Inside the “x86” folder there are the files that you can see looking for the “USMT 4 Tools” with google.

To use it,you should :

A) Copy all the files and folders to the USB Stick exactly as described above.

B) Make the USB stick bootable with bootlace.com for DOS/Win9x and Linux OR GRUBINST for Windows NT/2000/XP/2003/Vista/Seven.

C) Change the boot disk sequence into the BIOS to : USB/DVD/HD

Attached Files



#2 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 23 November 2010 - 07:21 PM

If we want to keep Internet a place accessible to everyone, especially for those who do not have the resources to access it, we must strive to share our ideas. It 's not easy, but we must do it.

Wonko approves of this. :)

I did it several times and I don't want to get criticism by anyone.


You must be joking, do EXPECT any possible kind of criticism (on the actual release, not on the idea of sharing your ideas and work) :).

My system is able to manage all the migration combinations from and to all the different Windows versions using the USMT 4 tool.


I would appreciate some more extended description of what the tool does. :)

What the heck is the "USMT 4 tool"?

Migration of WHAT?

Like same motherboard/system to different motherboard/system?

Or user settings across different OS versions?

:D

:D
Wonko

#3 Marietto

Marietto

    Frequent Member

  • Advanced user
  • 268 posts
  • Location:Italy
  • Interests:Computers,movies,read/write,talking about philosophy and religion.
  •  
    Italy

Posted 23 November 2010 - 07:36 PM

1) I want to get criticism for the actual release,but NOT for the idea of sharing ideas and work. This means,that since I do it,I want to reserve the right to criticize those who do not.

2) From Wikipedia : http://en.wikipedia...._Migration_Tool

The User State Migration Tool (USMT) is a Microsoft command line utility program to copy user files and settings from one Microsoft Windows computer to another. It is intended mainly for IT professionals to use in scripted migrations of bigger corporate installations; for general users Windows Easy Transfer is recommended instead. USMT migrates files and settings between Microsoft Windows versions 2000, XP, Vista and Windows 7, and is useful in migrating user settings and files during OS upgrades. 32-bit to 64-bit migrations are supported, but 64-bit to 32-bit are not.

Source OS supported :

Windows XP SP3, Windows XP Professional x64, Windows Vista SP1 and Windows 7 (All 32-bit and 64-bit editions)

Destination OS supported :

Windows Vista and Windows 7 (All 32-bit and 64-bit editions)


What USMT transfers ?

Selected User Accounts
Files and folders
E-mail messages, settings, and contacts
Photos, music, and videos
Windows settings
Program data files and settings
Internet settings

#4 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 23 November 2010 - 07:51 PM

You see, with a little :D one can get some info. :)

Woundn't it be more appropriate to call it:

Marietto’s User Migration System


:)

So maybe it will be easier to understand what it does.

:D
Wonko




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users