Dupliquer un disque dur : sysprep ?

Bonjour,

Je viens de recevoir un duplicateur de disque dur Stratech, afin de migrer plus rapidement mon parc informatique de Win7 à Win10.

Je viens donc de finir la première machine, et j'ai déjà voulu tester de dupliquer le disque dur pour le deuxième ordinateur.
Tout fonctionne sans problème, cependant je n'ai pas encore joins le domaine avec la machine.

Ma question serait-donc de savoir si je dois faire quelques choses sur la première machine, avant de dupliquer le disque dur ?
J'ai lu quelques choses sur Sysprep, mais je ne vois pas vraiment si c'est obligatoire ou non ? Sachant que je ne connecte pas les machines sur le réseau, avant de leur aoir changer leur nom.

Mais j'imagine qu'il y a d'autres paramètres qui doivent entrer en jeu ?

Merci d'avance pour votre retour !!!

1 réponse

  1. Contributeur
    Bonjour
    Il faudra passer par sysprep.

    Le probleme de dupliquer 2 disques est que vous allez vous retrouver avec le meme SID (créé à l'installation).
    meme si vous changez le nom du PC , le SID restera identique.
    Il y aura des problemes de sécurité et de droits d'acces .

    sysprep permet de reinitialiser ce SID

    Un peu de lecture :
    https://docs.microsoft.com/en-us/archive/blogs/markrussinovich/the-machine-sid-duplication-myth-and-why-sysprep-matters

    http://lupus.wikidot.com/use-sysprep-to-reset-sid

    https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-8.1-and-8/hh824938(v=win.10)?redirectedfrom=MSDN
    1
    1. Est-ce possible d'utiliser Sysprep avec la machine source déjà préparé (logiciel installé) ?

      J'ai essayé d'utiliser sysprep hier, mais j'ai eu une "une erreur grave s'est produite"...
      0
    2. Contributeur
      C'est le principe ..
      On install windows sur une machine, on installe les pilotes , les programmes.
      Puis on lance sysprep
      et on duplique

      Quelle erreur avez-vous eue ?
      0
    3. "Une erreur grave s'est produite lors de l'exécution de sysprep sur l'ordinateur".

      Dans setuperr voici les logs :



      2017-06-22 14:49:49, Error SYSPRP setupdigetclassdevs failed with error 0
      2017-06-22 14:50:27, Error [0x0e00ba] TOOL GeneralizeBcdStore: Unable to open BCD object to generalize. Status = [0xC0000034]
      2017-06-22 14:50:27, Error [0x0e00b1] TOOL Sysprep_Generalize_Bcd: There was an error generalizing the bcd store. Status=[0xC0000034]
      2017-06-22 14:50:27, Error [0x0f0082] SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'Sysprep_Generalize_Bcd' from C:\Windows\System32\spbcd.dll; dwRet = 0x2
      2017-06-22 14:50:27, Error SYSPRP ActionPlatform::ExecuteAction: Error in executing action; dwRet = 0x2
      2017-06-22 14:50:27, Error SYSPRP ActionPlatform::ExecuteActionList: Error in execute actions; dwRet = 0x2
      2017-06-22 14:50:27, Error SYSPRP SysprepSession::Execute: Error in executing actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x2
      2017-06-22 14:50:27, Error SYSPRP RunPlatformActions:Failed while executing SysprepSession actions; dwRet = 0x2
      2017-06-22 14:50:27, Error [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x2
      2017-06-22 14:50:27, Error [0x0f00a8] SYSPRP WinMain:Hit failure while processing sysprep generalize internal providers; hr = 0x80070002

      0
    4. Contributeur
      Vous lancez bien le sysprep dans une session administrateur ?
      Y a t-il un dual boot dans la machine ?
      0
    5. @phil2kIl n'y a pas de dual boot. https://forums.commentcamarche.net/forum/affich-34676216-dupliquer-un-disque-dur-sysprep
      Je suis bien connecté en administrateur.

      Je viens également de faire le test en faisant "clic droit : exécuté en admin..." j'ai d'autres message d'erreur dans le fichier setupact.

      2017-06-22 15:31:54, Info SYSPRP ========================================================
      2017-06-22 15:31:54, Info SYSPRP === Beginning of a new sysprep run ===
      2017-06-22 15:31:54, Info SYSPRP ========================================================
      2017-06-22 15:31:54, Info [0x0f004d] SYSPRP The time is now 2017-06-22 15:31:54
      2017-06-22 15:31:54, Info [0x0f004e] SYSPRP Initialized SysPrep log at C:\Sysprep\Panther
      2017-06-22 15:31:54, Info [0x0f0054] SYSPRP ValidatePrivileges:User has required privileges to sysprep machine
      2017-06-22 15:31:54, Info [0x0f007e] SYSPRP FCreateTagFile:Tag file C:\Sysprep\Sysprep_succeeded.tag does not already exist, no need to delete anything
      2017-06-22 15:31:54, Warning SYSPRP WinMain: File operations pending
      2017-06-22 15:31:54, Info [0x0f003d] SYSPRP WinMain:Displaying dialog box for user to choose sysprep mode...
      2017-06-22 15:31:56, Info [0x0f00d7] SYSPRP WinMain:Pre-validing 'cleanup' internal providers.
      2017-06-22 15:31:56, Info SYSPRP RunExternalDlls:Running platform actions specified in action file for phase 3
      2017-06-22 15:31:56, Info [0x0f00ba] SYSPRP SysprepSession::CreateSession: Successfully created instance with mount path C:, action file C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml, and mode <null>
      2017-06-22 15:31:56, Info SYSPRP SysprepSession::Validate: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml
      2017-06-22 15:31:56, Info SYSPRP ActionPlatform::GetStringValue: Getting REG_SZ value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep
      2017-06-22 15:31:56, Info SYSPRP ActionPlatform::GetValue: Getting value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep
      2017-06-22 15:31:56, Warning SYSPRP ActionPlatform::GetValue: Error from RegQueryValueEx on value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep; dwRet = 0x2
      2017-06-22 15:31:56, Info SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null>
      2017-06-22 15:31:56, Info SYSPRP ActionPlatform::GetStringValue: Getting REG_SZ value PROCESSOR_ARCHITECTURE under key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
      2017-06-22 15:31:56, Info SYSPRP ActionPlatform::GetValue: Getting value PROCESSOR_ARCHITECTURE under key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
      2017-06-22 15:31:56, Info SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64
      2017-06-22 15:31:56, Info [0x0f0080] SYSPRP ActionPlatform::LaunchModule: Found 'Sysprep_Clean_Validate_Opk' in C:\Windows\System32\spopk.dll; executing it
      2017-06-22 15:31:56, Info [0x0f0081] SYSPRP ActionPlatform::LaunchModule: Successfully executed 'Sysprep_Clean_Validate_Opk' from C:\Windows\System32\spopk.dll without error
      2017-06-22 15:31:56, Info [0x0f00d7] SYSPRP WinMain:Pre-validing 'generalize' internal providers.
      2017-06-22 15:31:56, Info SYSPRP RunExternalDlls:Running platform actions specified in action file for phase 1
      2017-06-22 15:31:56, Info [0x0f00ba] SYSPRP SysprepSession::CreateSession: Successfully created instance with mount path C:, action file C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml, and mode <null>
      2017-06-22 15:31:56, Info SYSPRP SysprepSession::Validate: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml
      2017-06-22 15:31:56, Info SYSPRP ActionPlatform::GetStringValue: Getting REG_SZ value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep
      2017-06-22 15:31:56, Info SYSPRP ActionPlatform::GetValue: Getting value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep
      2017-06-22 15:31:56, Warning SYSPRP ActionPlatform::GetValue: Error from RegQueryValueEx on value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep; dwRet = 0x2
      2017-06-22 15:31:56, Info SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null>
      2017-06-22 15:31:56, Info SYSPRP ActionPlatform::GetStringValue: Getting REG_SZ value PROCESSOR_ARCHITECTURE under key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
      2017-06-22 15:31:56, Info SYSPRP ActionPlatform::GetValue: Getting value PROCESSOR_ARCHITECTURE under key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
      2017-06-22 15:31:56, Info SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64
      2017-06-22 15:31:56, Info [0x0f0080] SYSPRP ActionPlatform::LaunchModule: Found 'ValidateBitLockerState' in C:\Windows\System32\BdeSysprep.dll; executing it
      2017-06-22 15:31:56, Info [0x0f0081] SYSPRP ActionPlatform::LaunchModule: Successfully executed 'ValidateBitLockerState' from C:\Windows\System32\BdeSysprep.dll without error
      2017-06-22 15:31:56, Info [0x0f0080] SYSPRP ActionPlatform::LaunchModule: Found 'SysprepGeneralizeValidate' in C:\Windows\System32\AppxSysprep.dll; executing it
      2017-06-22 15:31:56, Info SYSPRP Entering SysprepGeneralizeValidate (Appx) - validating whether all apps are also provisioned.

      2017-06-22 15:31:56, Error SYSPRP Failed to remove apps for the current user: 0x80670006.

      2017-06-22 15:31:56, Error SYSPRP Exit code of RemoveAllApps thread was 0x80670006.

      2017-06-22 15:31:56, Error [0x0f0082] SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x80670006
      2017-06-22 15:31:56, Error SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x80670006
      2017-06-22 15:31:56, Error SYSPRP RunPlatformActions:Failed while validating SysprepSession actions; dwRet = 0x80670006
      2017-06-22 15:31:56, Error [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x80670006
      2017-06-22 15:31:56, Error [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80670006
      2017-06-22 15:31:57, Info [0x0f0052] SYSPRP Shutting down SysPrep log
      2017-06-22 15:31:57, Info [0x0f004d] SYSPRP The time is now 2017-06-22 15:31:57

      0