IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Windows 7 Discussion :

<FirstLogonCommands> n'exécute pas toutes les CommandLine


Sujet :

Windows 7

  1. #1
    Invité
    Invité(e)
    Par défaut <FirstLogonCommands> n'exécute pas toutes les CommandLine
    Bonjour à tous

    Voici mon probléme!
    J'ai un fichier AutoUnattend.XML Windows 7 Pro fonctionnat à la perfection sauf pour les sous-commandes <SynchronousCommand wcm:action="add"> la section <FirstLogonCommands> de la configuration de <settings pass="oobeSystem">.

    Il ya au total 6 <SynchronousCommand wcm:action="add">. Seul les Full.REG - APPC - SmallIcon.REG - >Net user Invité - LNKS sont exécuter sauf KBx64
    Je suis obligé de doubler la position de KBx64 pour qu'elle soit exécuter mais la position SmallIcon.REG ne les plus.

    Le compte master fait partie du group Administators.
    voici le fichier : AutoUnattend.XML

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
    	<settings pass="specialize">
    		<component name="Microsoft-Windows-Security-SPP-UX" 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">
    			<SkipAutoActivation>true</SkipAutoActivation>
    		</component>
    		<component name="Microsoft-Windows-Shell-Setup" 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>W7ProSp1x64FR</ComputerName>
    			<ProductKey>HYF8J-CVRMY-CM74G-RPHKF-PW487</ProductKey>
    			<TimeZone>W. Europe Standard Time</TimeZone>
    			<Themes>
    				<DefaultThemesOff>false</DefaultThemesOff>
    				<DesktopBackground>%WinDir%\Web\WallPaper\Windows\TerreNuages.JPG</DesktopBackground>
    			</Themes>
    			<Display>
    				<HorizontalResolution>1024</HorizontalResolution>
    				<VerticalResolution>768</VerticalResolution>
    				<ColorDepth>32</ColorDepth>
    			</Display>
    		</component>
    	</settings>
    	<settings pass="windowsPE">
    		<component name="Microsoft-Windows-International-Core-WinPE" 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>fr-fr</UILanguage>
    			</SetupUILanguage>
    			<InputLocale>fr-CH</InputLocale>
    			<SystemLocale>fr-CH</SystemLocale>
    			<UILanguage>fr-fr</UILanguage>
    			<UILanguageFallback>fr-fr</UILanguageFallback>
    			<UserLocale>fr-CH</UserLocale>
    		</component>
    		<component name="Microsoft-Windows-Setup" 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">
    					<CreatePartitions>
    						<CreatePartition wcm:action="add">
    							<Order>2</Order>
    							<Type>Primary</Type>
    							<Size>80000</Size>
    						</CreatePartition>
    						<CreatePartition wcm:action="add">
    							<Order>1</Order>
    							<Size>200</Size>
    							<Type>Primary</Type>
    						</CreatePartition>
    					</CreatePartitions>
    					<ModifyPartitions>
    						<ModifyPartition wcm:action="add">
    							<Format>NTFS</Format>
    							<Label>Master</Label>
    							<Letter>C</Letter>
    							<Order>2</Order>
    							<PartitionID>2</PartitionID>
    						</ModifyPartition>
    						<ModifyPartition wcm:action="add">
    							<Order>1</Order>
    							<Active>true</Active>
    							<Format>NTFS</Format>
    							<Label>System</Label>
    							<PartitionID>1</PartitionID>
    							<TypeID>0x27</TypeID>
    						</ModifyPartition>
    					</ModifyPartitions>
    					<DiskID>0</DiskID>
    					<WillWipeDisk>true</WillWipeDisk>
    				</Disk>
    				<WillShowUI>OnError</WillShowUI>
    			</DiskConfiguration>
    			<ImageInstall>
    				<OSImage>
    					<InstallFrom>
    						<MetaData wcm:action="add">
    							<Key>/image/index</Key>
    							<Value>3</Value>
    						</MetaData>
    					</InstallFrom>
    					<InstallTo>
    						<DiskID>0</DiskID>
    						<PartitionID>2</PartitionID>
    					</InstallTo>
    					<InstallToAvailablePartition>false</InstallToAvailablePartition>
    					<WillShowUI>OnError</WillShowUI>
    				</OSImage>
    			</ImageInstall>
    			<UserData>
    				<AcceptEula>true</AcceptEula>
    			</UserData>
    			<Display>
    				<HorizontalResolution>1024</HorizontalResolution>
    				<VerticalResolution>768</VerticalResolution>
    				<ColorDepth>32</ColorDepth>
    			</Display>
    		</component>
    	</settings>
    	<settings pass="oobeSystem">
    		<component name="Microsoft-Windows-Shell-Setup" 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">
    			<AutoLogon>
    				<Password>
    					<Value />
    					<PlainText>true</PlainText>
    				</Password>
    				<Enabled>true</Enabled>
    				<Username>master</Username>
    			</AutoLogon>
    			<Display>
    				<HorizontalResolution>1024</HorizontalResolution>
    				<VerticalResolution>768</VerticalResolution>
    				<ColorDepth>32</ColorDepth>
    				<DPI>96</DPI>
    			</Display>
    			<OOBE>
    				<HideEULAPage>true</HideEULAPage>
    				<ProtectYourPC>3</ProtectYourPC>
    				<NetworkLocation>Other</NetworkLocation>
    			</OOBE>
    			<UserAccounts>
    				<LocalAccounts>
    					<LocalAccount wcm:action="add">
    						<Password>
    							<Value />
    							<PlainText>true</PlainText>
    						</Password>
    						<DisplayName>matser</DisplayName>
    						<Group>administrators</Group>
    						<Name>master</Name>
    					</LocalAccount>
    				</LocalAccounts>
    			</UserAccounts>
    			<FirstLogonCommands>
    				<SynchronousCommand wcm:action="add">
    					<CommandLine>cmd /c start /wait %systemroot%\regedit.exe /s %SystemDrive%\REG\Full.REG</CommandLine>
    					<Description>Paramétrage de la base de registre Windows Pro x64</Description>
    					<Order>1</Order>
    				</SynchronousCommand>
    				<SynchronousCommand wcm:action="add">
    					<CommandLine>cmd /k start "" /wait cscript %SystemDrive%\APPC\Installation.vbs</CommandLine>
    					<Description>Installation Applications Complémentaires Windows 7 Pro x64</Description>
    					<Order>2</Order>
    				</SynchronousCommand>
    				<SynchronousCommand wcm:action="add">
    					<CommandLine>cmd /k start "" /wait cscript %SystemDrive%\KBx64\Installation.vbs</CommandLine>
    					<Description>Installation de mises à jours de sécurité Windows 7 Pro x64</Description>
    					<Order>3</Order>
    				</SynchronousCommand>
    				<SynchronousCommand wcm:action="add">
    					<CommandLine>cmd /k start "" /wait cscript %SystemDrive%\KBx64\Installation.vbs</CommandLine>
    					<Description>Installation de mises à jours de sécurité Windows 7 Pro x64</Description>
    					<Order>4</Order>
    				</SynchronousCommand>
                 <SynchronousCommand wcm:action="add">
                    <CommandLine>cmd /c start /wait %systemroot%\regedit.exe /s %SystemDrive%\REG\SmallIconDesk\SmallIcon.REG</CommandLine>
                    <Description>Small Icon Desktop</Description>
                    <Order>5</Order>
                 </SynchronousCommand>
    				<SynchronousCommand wcm:action="add">
    					<CommandLine>cmd /c start /wait net user invité /active:no</CommandLine>
    					<Description>Désactivation du Compte Invité</Description>
    					<Order>6</Order>
    				</SynchronousCommand>
    				<SynchronousCommand wcm:action="add">
    					<CommandLine>C:\LNKs\ImportXMLSchTasks.CMD</CommandLine>
    					<Description>LNKs Configuration Final</Description>
    					<Order>7</Order>
    				</SynchronousCommand>
    			</FirstLogonCommands>
    		</component>
    	</settings>
    	<settings pass="offlineServicing">
    		<component name="Microsoft-Windows-LUA-Settings" 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">
    			<EnableLUA>false</EnableLUA>
    		</component>
    	</settings>
    </unattend>
    Je n'ai pas trouver de réponse ou d'information pertinante sur internet!
    Merci d'avance de vos suggestions ou solutions si une personne fût comfrontée au même problème!

    merci d'avance

  2. #2
    Invité
    Invité(e)
    Par défaut
    j'ai écumer internet en quête d'une solution mais rien trouvé!

    merci d'avance pour une solution!

  3. #3
    Membre habitué
    Homme Profil pro
    Développeur .NET
    Inscrit en
    Mars 2009
    Messages
    122
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Pas de Calais (Nord Pas de Calais)

    Informations professionnelles :
    Activité : Développeur .NET

    Informations forums :
    Inscription : Mars 2009
    Messages : 122
    Points : 167
    Points
    167
    Par défaut
    Bonjour,

    Je ne sais pas à quel moment tu souhaites que tes scripts se lancent mais une solution peut-être d'exécuter dans un .cmd tes commandes. Lors de l'installation d'une machine, tu peux ajouter un .cmd qui se nommera "Setupcomplete.cmd" et le placer dans le répertoire : "%WINDIR%\Setup\Scripts\".

    Le contenu de Setupcomplete.cmd est exécuté lors du premier démarrage de la machine, suite à une nouvelle installation. Cela équivaut à un RunOnce qui serait exécuté après une installation.

  4. #4
    Invité
    Invité(e)
    Par défaut
    merci pour votre réponse!

    dans WAIK, j'ai fais la vérification de validité du fichier XML sans succès!

    avant cette erreur, le fichier fonctionné parfaitement sans la redondance de la ligne pour les KBx64

    j'utilise le XML avec cette redondance, et l'installation se poursuit implacablement!

    c'est juste pour connaitre le prob (si une personne a été confronté au même prob)

    En ce moment, je poursuit l'élaboration de l'installation automatique sans assistance sans soucis

    merci d'avance de votre compréhension

  5. #5
    Membre habitué
    Homme Profil pro
    Développeur .NET
    Inscrit en
    Mars 2009
    Messages
    122
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Pas de Calais (Nord Pas de Calais)

    Informations professionnelles :
    Activité : Développeur .NET

    Informations forums :
    Inscription : Mars 2009
    Messages : 122
    Points : 167
    Points
    167
    Par défaut
    Pourquoi est-ce que tu ne réalises pas l'ajout des mises à jour de sécurité via une commande DISM pour directement les implémenter dans l'installeur ?
    As-tu essayé de modifier l'ordre d'exécution de tes scripts ?

    Typiquement la modification de la base de registre peut avoir des conséquences sur le comportement de la machine. Dès lors, j'aurais sans doute exécuté le .reg en dernier lieu. Je pense qu'il faudrait essayer d'exécuter les scripts du moins impactant pour la machine au plus impactant.

  6. #6
    Invité
    Invité(e)
    Par défaut
    Merci pour ta réponse!

    J'ai implémenté tous les KB MSU dans le fichier Install.WIM via DISM
    Seul les KB type EXE se font via Autounattend.XML

    merci et bienvenue pour d'autres propositions

Discussions similaires

  1. BufferedWriter ne ramène pas toutes les lignes
    Par ceriise dans le forum Entrée/Sortie
    Réponses: 5
    Dernier message: 31/08/2007, 11h55
  2. IMG_Load ne charge pas toutes les images
    Par v4np13 dans le forum SDL
    Réponses: 7
    Dernier message: 07/04/2007, 22h38
  3. Réponses: 5
    Dernier message: 16/12/2006, 22h29
  4. Réponses: 11
    Dernier message: 04/05/2006, 11h50

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo