locked
sysprep + ExtendOSPartition RRS feed

  • Question

  • bonjour

    je suis en train de valider une solution de déploiement de poste windows 7 avec une image de disque basée sur les secteurs

    J'ai donc sysprepé mon poste de référence, créé l'image et je la déploie sur un autre poste sans souci.

    j'ai découvert le paramètre ExtendOSPartition du fichier unattend.xml mais je ne parviens pas à le faire fonctionner à savoir étendre la partition à l'ensemble du disque

    http://technet.microsoft.com/fr-fr/library/cc766473%28WS.10%29.aspx

    le disque du poste de référence fait 20 Go, celui du poste déployé 30 Go

    j'ai essayé d'ajouter dans mon fichier unattend.xml

    <ExtendOSPartition>
                    <Extend>true</Extend>
    </ExtendOSPartition>

    à la fois dans les phases generalize specialize et oobeSystem, sans succès, la partition C: du poste déployé reste toujours à 20Go

    je n'ai rien vu de particulier dans les logs (setupact.log)

    y a t il quelque chose que j'ai oublié?

     

     

     

     

     

    mercredi 21 septembre 2011 15:19

Réponses

  • Bonjour,

    Il faut l'utiliser dans la phase Specialize pour toi. Si ca ne marche pas pour d'autre raison tu peux le faire avec un script diskpart si ca te crée une autre partition.

    Select disk 0
    Select partition 2
    Extend


    Revue du Geek | Déployer Windows 7 avec MDT 2010
    mercredi 21 septembre 2011 17:00
  • OK ça a fonctionné avec ExtendOSPartition dans la phase specialize (ce qui est logique)

    Merci de ton aide

    Peut être peux tu m'éclairer:

    dans la phase generalize, je suppose que cela étend la partition avant de faire une éventuelle image

    quel est l'interêt dans la phase oobesystem?

     

     

     

    jeudi 22 septembre 2011 12:48

Toutes les réponses

  • Bonjour, 

    pouvez vous joindre votre fichier de réponse afin qu'on la verifier !?

     


    fethi.abassi
    • Modifié F.ABASSI mercredi 21 septembre 2011 15:48
    mercredi 21 septembre 2011 15:48
  • le voici

    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
        <settings pass="generalize">
            <component name="Microsoft-Windows-Security-Licensing-SLC" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <SkipRearm>1</SkipRearm>
            </component>
            <component name="Microsoft-Windows-Deployment" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <ExtendOSPartition>
                    <Extend>true</Extend>
                </ExtendOSPartition>
            </component>
        </settings>
        <settings pass="windowsPE">
            <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
                <SetupUILanguage>
                    <UILanguage>fr-FR</UILanguage>
                </SetupUILanguage>
                <InputLocale>0409:00000409</InputLocale>
                <UserLocale>fr-FR</UserLocale>
                <UILanguage>fr-FR</UILanguage>
                <SystemLocale>fr-FR</SystemLocale>
            </component>
            <component name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
                <UserData>
                    <AcceptEula>true</AcceptEula>
                    <FullName>Arnaud FLORENT</FullName>
                    <Organization>IRIS</Organization>
                    <ProductKey>
                        <Key>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</Key>
                        <WillShowUI>Never</WillShowUI>
                    </ProductKey>
                </UserData>
            </component>
        </settings>
        <settings pass="oobeSystem">
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
                <OOBE>
                    <HideEULAPage>true</HideEULAPage>
                    <NetworkLocation>Work</NetworkLocation>
                    <ProtectYourPC>1</ProtectYourPC>
                    <SkipMachineOOBE>true</SkipMachineOOBE>
                    <SkipUserOOBE>true</SkipUserOOBE>
                </OOBE>
                <TimeZone>Romance Standard Time</TimeZone>
                <UserAccounts>
                    <AdministratorPassword>
                        <Value>YQBBAGQAbQBpAG4AaQBzAHQAcgBhAHQAbwByAFAAYQBzAHMAdwBvAHIAZAA=</Value>
                        <PlainText>false</PlainText>
                    </AdministratorPassword>
                    <LocalAccounts>
                        <LocalAccount>
                            <Password>
                                <Value>YQBQAGEAcwBzAHcAbwByAGQA</Value>
                                <PlainText>false</PlainText>
                            </Password>
                            <Description>test afl</Description>
                            <DisplayName>Arnaud</DisplayName>
                            <Group>Administrators;Users;</Group>
                            <Name>arnaud</Name>
                        </LocalAccount>
                    </LocalAccounts>
                </UserAccounts>
            </component>
            <component name="Microsoft-Windows-International-Core" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
                <InputLocale>fr-FR</InputLocale>
                <UserLocale>fr-FR</UserLocale>
                <UILanguage>fr-FR</UILanguage>
                <SystemLocale>fr-FR</SystemLocale>
            </component>
            <component name="Microsoft-Windows-Deployment" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <ExtendOSPartition>
                    <Extend>true</Extend>
                </ExtendOSPartition>
            </component>
        </settings>
        <settings pass="specialize">
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
                <ComputerName>TOTO</ComputerName>
                <CopyProfile>false</CopyProfile>
                <RegisteredOrganization>IRIS</RegisteredOrganization>
                <RegisteredOwner>nono</RegisteredOwner>
                <Display>
                    <ColorDepth>32</ColorDepth>
                    <HorizontalResolution>1024</HorizontalResolution>
                    <RefreshRate>60</RefreshRate>
                    <VerticalResolution>768</VerticalResolution>
                </Display>
            </component>
            <component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
                <Identification>
                    <JoinWorkgroup>TMP</JoinWorkgroup>
                </Identification>
            </component>
            <component name="Microsoft-Windows-Deployment" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <RunSynchronous>
                    <RunSynchronousCommand wcm:action="add">
                        <Order>1</Order>
                        <Path>c:\test.bat</Path>
                    </RunSynchronousCommand>
                </RunSynchronous>
                <ExtendOSPartition>
                    <Extend>true</Extend>
                </ExtendOSPartition>
            </component>
        </settings>   
    </unattend>

    mercredi 21 septembre 2011 16:06
  • Bonjour,

    Il faut l'utiliser dans la phase Specialize pour toi. Si ca ne marche pas pour d'autre raison tu peux le faire avec un script diskpart si ca te crée une autre partition.

    Select disk 0
    Select partition 2
    Extend


    Revue du Geek | Déployer Windows 7 avec MDT 2010
    mercredi 21 septembre 2011 17:00
  • je pense avoir compris

    la partition correspondant au disque C: n'est pas la dernière, elle ne peut être étendue....

    et j'ai bien dans c:\windows\Oanther\unattendGC\setupact.log

    2011-09-22 11:08:18, Info                         [SETUPUGC.EXE] Processing ExtendOSPartition setting (if present)...
    2011-09-22 11:08:18, Info                         [SETUPUGC.EXE] ExtractSettingFromRegistry: (ExtendOSPartition) User requested extension to fill remainder of available disk space
    2011-09-22 11:08:18, Info                         [SETUPUGC.EXE] ExtendOSPartition: User requested that OS partition be extended to fill available space.
    2011-09-22 11:08:18, Info                         [SETUPUGC.EXE] ExtendOSPartition: OS partition is at disk [0] byte offset [0x100000]
    2011-09-22 11:08:18, Info                         [SETUPUGC.EXE] InitVDSService:Creating VDS loader...
    2011-09-22 11:08:19, Info                         [SETUPUGC.EXE] InitVDSService:Loading VDS service...
    2011-09-22 11:08:21, Info                         [SETUPUGC.EXE] InitVDSService:Successfully launched service.
    2011-09-22 11:08:21, Info                         [SETUPUGC.EXE] ApplyDiskOperationUsingService: Extending partition on disk [0] at offset [0x100000].
    2011-09-22 11:08:21, Info                         [SETUPUGC.EXE] GetDisk: Querying VDS providers...
    2011-09-22 11:08:21, Info                         [SETUPUGC.EXE] GetDisk: Finished querying VDS providers.
    2011-09-22 11:08:21, Info                         [SETUPUGC.EXE] GetDisk: Querying VDS providers...
    2011-09-22 11:08:21, Info                         [SETUPUGC.EXE] GetDisk: Finished querying VDS providers.
    2011-09-22 11:08:21, Error                        [SETUPUGC.EXE] ApplyDiskOperationUsingService: Failed to correctly apply disk operation of type [0x8]; hr = 0x8004240e
    2011-09-22 11:08:21, Warning                      [SETUPUGC.EXE] PerformExtendOperation: Failed to extend OS partition, continuing anyway... (hr = 0x8004240e)

     

    je refais les tests avec une autre configuration de partition...

     


    jeudi 22 septembre 2011 11:54
  • OK ça a fonctionné avec ExtendOSPartition dans la phase specialize (ce qui est logique)

    Merci de ton aide

    Peut être peux tu m'éclairer:

    dans la phase generalize, je suppose que cela étend la partition avant de faire une éventuelle image

    quel est l'interêt dans la phase oobesystem?

     

     

     

    jeudi 22 septembre 2011 12:48
  • OK ça a fonctionné avec ExtendOSPartition dans la phase specialize (ce qui est logique)

    Merci de ton aide

    Peut être peux tu m'éclairer:

    dans la phase generalize, je suppose que cela étend la partition avant de faire une éventuelle image

    quel est l'interêt dans la phase oobesystem?


    Il n'y en a pas. En tout cas je ne vois pas quel scenario qui en aurait besoin en oobesystem. Mais il y a toujours des cas spéciaux !!
    Revue du Geek | Déployer Windows 7 avec MDT 2010
    jeudi 22 septembre 2011 15:57
  • OK encore merci
    jeudi 22 septembre 2011 15:59