Jump to content

[SOLVED] Howto unattend (edition, destination) - add domain join


x23piracy

Recommended Posts

Hi,

 

can someone help with integrating the following to my autounattended.xml:

 

  <?xml version="1.0" encoding="utf-8" ?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="specialize">
<component name="Microsoft-Windows-IE-InternetExplorer" 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">
  <FavoritesDelete>true</FavoritesDelete>
  </component>
<component name="Microsoft-Windows-International-Core" 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">
  <SystemLocale>de-DE</SystemLocale>
  <UILanguage>de-DE</UILanguage>
  <UserLocale>de-DE</UserLocale>
  <InputLocale>0407:00000407</InputLocale>
  </component>
<component name="Microsoft-Windows-UnattendedJoin" 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">
<Identification>
  <JoinWorkgroup>ARBEITSGRUPPE</JoinWorkgroup>
  </Identification>
  </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>*</ComputerName>
  <TimeZone>W. Europe Standard Time</TimeZone>
  </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">
  <UserLocale>de-DE</UserLocale>
  <UILanguage>de-DE</UILanguage>
  <SystemLocale>de-DE</SystemLocale>
  <InputLocale>0407:00000407</InputLocale>
  </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">
<ImageInstall>
<OSImage>
<InstallFrom>
<MetaData wcm:action="add">
  <Key>/IMAGE/INDEX</Key>
  <Value>1</Value>
  </MetaData>
  </InstallFrom>
  </OSImage>
  </ImageInstall>
<Display>
  <ColorDepth>32</ColorDepth>
  <HorizontalResolution>1024</HorizontalResolution>
  <VerticalResolution>768</VerticalResolution>
  <RefreshRate>60</RefreshRate>
  </Display>
<UserData>
<ProductKey>
  <Key>HYF8J-CVRMY-CM74G-RPHKF-PW487</Key>
  </ProductKey>
  <AcceptEula>true</AcceptEula>
  <Organization>ABC</Organization>
  <FullName>123</FullName>
  </UserData>
  </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">
<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
  <Order>1</Order>
  <CommandLine>%Systemdrive%\Install\WPI.cmd</CommandLine>
  </SynchronousCommand>
  </FirstLogonCommands>
<OOBE>
  <HideEULAPage>true</HideEULAPage>
  <ProtectYourPC>3</ProtectYourPC>
  <NetworkLocation>Work</NetworkLocation>
  </OOBE>
<UserAccounts>
<AdministratorPassword>
  <Value>blablub</Value>
  <PlainText>true</PlainText>
  </AdministratorPassword>
<LocalAccounts>
<LocalAccount wcm:action="add">
<Password>
  <Value>blablub</Value>
  <PlainText>true</PlainText>
  </Password>
  <Name>retsch</Name>
  <Group>Administrators</Group>
  </LocalAccount>
  </LocalAccounts>
  </UserAccounts>
<AutoLogon>
  <Password>
  <Value>blablub</Value>
  <PlainText>true</PlainText>
  </Password>
  <Enabled>true</Enabled>
  <LogonCount>2</LogonCount>
  <Username>Administrator</Username>
</AutoLogon>
  <ShowWindowsLive>false</ShowWindowsLive>
  </component>
  </settings>
  </unattend>

 

- I dont like to choose for win 7 pro i should automatically been taken

- Win 7 should automatically be installed on first hdd and should take all available space while deleting partition if existing and if not it should create one over the complete first hdd.

 

If possible automatic domain join would be great (like with win xp)

 

Thanks for your help

 

 

Greetz X23

Edited by x23piracy
Link to comment
Share on other sites

I needed a long time before I got the right autounattend.xml for my purposes: a lot of work "try and pray" is necessary...

I worked with the WAIK and some links.

 

If you want can I give you those links (a couple of them in german).

 

- I dont like to choose for win 7 pro i should automatically been taken

For this I think you should use an Win7-Pro-ISO without removing the ei.cfg.

 

- Win 7 should automatically be installed on first hdd and should take all available space while deleting partition if existing and if not it should create one over the complete first hdd.

I think (but I'm not sure), if you give only the parameters "DiskID"=0, "Partition"=1 and no size, only 1 partition on the first HDD and over the complete HDD will be generated.

 

        <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">            <UserData>                <ProductKey>                    <WillShowUI>OnError</WillShowUI>                    <Key>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</Key>                </ProductKey>                <AcceptEula>true</AcceptEula>            </UserData>            <EnableFirewall>true</EnableFirewall>            <ImageInstall>                <OSImage>                    <WillShowUI>OnError</WillShowUI>                    <InstallToAvailablePartition>false</InstallToAvailablePartition>                    <InstallTo>                        <DiskID>0</DiskID>                        <PartitionID>1</PartitionID>                    </InstallTo>                </OSImage>            </ImageInstall>            <EnableNetwork>true</EnableNetwork>            <DiskConfiguration>                <Disk wcm:action="add">                    <CreatePartitions>                        <CreatePartition wcm:action="add">                            <Order>1</Order>                            <Type>Primary</Type>                        </CreatePartition>                    </CreatePartitions>                    <ModifyPartitions>                        <ModifyPartition wcm:action="add">                            <Active>true</Active>                            <Extend>false</Extend>                            <Format>NTFS</Format>                            <Label>Example</Label>                            <Letter>C</Letter>                            <Order>1</Order>                            <PartitionID>1</PartitionID>                        </ModifyPartition>                    </ModifyPartitions>                    <DiskID>0</DiskID>                    <WillWipeDisk>true</WillWipeDisk>                </Disk>                <WillShowUI>OnError</WillShowUI>            </DiskConfiguration>

If possible automatic domain join would be great (like with win xp)

It should be in the section "specialize" (but I don't have experience with joining domain)

 

        <component name="Microsoft-Windows-UnattendedJoin" 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">            <Identification>                <JoinWorkgroup>ARBEITSGRUPPE</JoinWorkgroup>                <Credentials>                    <Domain>Test</Domain>                    <Password>Password</Password>                    <Username>X23piracy</Username>                </Credentials>                <JoinDomain>Test</JoinDomain>            </Identification>        </component>

 

 

Regards, Thiersee

Link to comment
Share on other sites

Hi,

 

I needed a long time before I got the right autounattend.xml for my purposes: a lot of work "try and pray" is necessary...

I worked with the WAIK and some links.

 

If you want can I give you those links (a couple of them in german).

 

For this I think you should use an Win7-Pro-ISO without removing the ei.cfg.

 

I think (but I'm not sure), if you give only the parameters "DiskID"=0, "Partition"=1 and no size, only 1 partition on the first HDD and over the complete HDD will be generated.

It should be in the section "specialize" (but I don't have experience with joining domain)

 

 

Regards, Thiersee

 

yes please gimmme that links.

I have win7 pro iso without removed ei.cfg i can only choose win 7 pro but i habe to choose, why choose if there is only one option.

There i no solution with the autounattended.xml to always choose pro?

 

For domain join and install destination i will test what you gave me ;) thanks for this.

 

 

Greetz X23

Link to comment
Share on other sites

Thank you for the bunch of links ;),

 

again for the edition choice, i have a win 7 iso with non removed ei.cfg and i just see professional but i have to choose it.

I dont see any reason to choose if there is no real choice because there is only one entry in the list :)

 

So any other ideas?

 

 

Greetz X23

Edited by x23piracy
Link to comment
Share on other sites

  • 4 weeks later...

Hi,

 

Greetz X23, just saw this post. Still interested in a solution?
 

 

thank you very much for the offer, but i have a working autounattend.xml :)

 

- I don't need to choose edition anymore

- I know howto pass partition choosing automatically (but i don't use it) to dangerous

- Inserting the hostname manually is working

- domain join works (actually with problems, after install the state of trust to domain is gone, but machine has joined domain)

- Rest are little tweaks (ie, gadgets etc.)

 

Is someone has an idea what may happen with my domain join? That worked some days before now all machines join the domain but when i try to logon at the domain it tells me points of trust broken, so i need to temporary leave the domain and join again.

 

I dont know why this is now happening :(

 

 

Greetz X23

Edited by x23piracy
Link to comment
Share on other sites

Hi,

 

You should probably post a new copy of your current autounattend.xml if you would like any comments or help with it, or even if you just want to share a good working example. :)

 

Cheers and Regards

 

problem is cleared up:

http://www.wincert.net/forum/topic/11090-domain-join-working-but-after-setup-finished-position-of-trust-bad/#entry97018

Can be seen as solved

 

 

Greetz X23

Link to comment
Share on other sites

Hi,

 

Still would be nice to see your current autounattend.xml, if you wouldn't mind and you have a chance. Thanks in advance.

Cheers and Regards

 

<?xml version="1.0" encoding="utf-8"?><unattend xmlns="urn:schemas-microsoft-com:unattend">    <settings pass="specialize">        <component name="Microsoft-Windows-IE-InternetExplorer" 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">            <AllowedSites></AllowedSites>            <BlockPopups>yes</BlockPopups>            <PlaySound>false</PlaySound>            <FavoritesDelete>true</FavoritesDelete>            <ShowInformationBar>true</ShowInformationBar>            <DisableFirstRunWizard>true</DisableFirstRunWizard>            <DisableOOBAccelerators>true</DisableOOBAccelerators>            <DisableWelcomePage>true</DisableWelcomePage>            <LockToolbars>true</LockToolbars>            <Home_Page>http://www.google.de</Home_Page>            <LocalIntranetSites></LocalIntranetSites>            <SearchScopes>                <Scope wcm:action="add">                    <ScopeDefault>true</ScopeDefault>                    <ScopeDisplayName>Google</ScopeDisplayName>                    <ScopeKey>SearchProvider1</ScopeKey>                    <ScopeUrl>http://www.google.de/search?q={searchTerms}</ScopeUrl>                    <FaviconURL>http://www.google.de/favicon.ico</FaviconURL>                </Scope>            </SearchScopes>            <FavoritesList>                <FavoriteItem wcm:action="add">                    <FavID>1</FavID>                    <FavTitle>Corporate GmbH</FavTitle>                    <FavURL>http://www.youraddress.de</FavURL>                </FavoriteItem>            </FavoritesList>        </component>        <component name="Microsoft-Windows-International-Core" 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">            <SystemLocale>de-DE</SystemLocale>            <UILanguage>de-DE</UILanguage>            <UserLocale>de-DE</UserLocale>            <InputLocale>0407:00000407</InputLocale>        </component>	        <component name="Microsoft-Windows-UnattendedJoin" 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">            <Identification>                <JoinWorkgroup>ARBEITSGRUPPE</JoinWorkgroup>                <Credentials>                    <Domain>domain.local</Domain>                    <Password>password</Password>                    <Username>Administrator</Username>                </Credentials>                <JoinDomain>domain.local</JoinDomain>            </Identification>        </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>*</ComputerName> 			<TimeZone>W. Europe Standard Time</TimeZone>        </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">            <UserLocale>de-DE</UserLocale>            <UILanguage>de-DE</UILanguage>            <SystemLocale>de-DE</SystemLocale>            <InputLocale>0407:00000407</InputLocale>        </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">            <ImageInstall>                <OSImage>                    <InstallFrom>                        <MetaData wcm:action="add">                            <Key>/IMAGE/INDEX</Key>                            <Value>3</Value>                        </MetaData>                    </InstallFrom>                </OSImage>            </ImageInstall>            <Display>                <ColorDepth>32</ColorDepth>                <HorizontalResolution>1280</HorizontalResolution>                <VerticalResolution>800</VerticalResolution>                <RefreshRate>60</RefreshRate>            </Display>            <UserData>                <ProductKey>                    <Key>HYF8J-CVRMY-CM74G-RPHKF-PW487</Key>                </ProductKey>                <AcceptEula>true</AcceptEula>                <Organization>Organization</Organization>                <FullName>FullName</FullName>            </UserData>        </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">            <FirstLogonCommands>                <SynchronousCommand wcm:action="add">                    <Order>1</Order>                    <CommandLine>%Systemdrive%\Install\WPI.cmd</CommandLine>                </SynchronousCommand>            </FirstLogonCommands>            <OOBE>                <HideEULAPage>true</HideEULAPage>                <ProtectYourPC>3</ProtectYourPC>                <NetworkLocation>Work</NetworkLocation>            </OOBE>            <UserAccounts>                <AdministratorPassword>                    <Value>password</Value>                    <PlainText>true</PlainText>                </AdministratorPassword>                <LocalAccounts>                    <LocalAccount wcm:action="add">                        <Password>                            <Value>password</Value>                            <PlainText>true</PlainText>                        </Password>                        <Name>retsch</Name>                        <Group>Administrators</Group>                    </LocalAccount>                </LocalAccounts>            </UserAccounts>            <AutoLogon>                <Password>                    <Value>password</Value>                    <PlainText>true</PlainText>                </Password>                <Enabled>true</Enabled>                <LogonCount>2</LogonCount>                <Username>Administrator</Username>            </AutoLogon>            <ShowWindowsLive>false</ShowWindowsLive>        </component>		<component name="Microsoft-Windows-Sidebar" 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">		<Gadget1>%PROGRAMFILES%\windows sidebar\shared gadgets\Leo.gadget,true</Gadget1>		<Gadget2>%PROGRAMFILES%\windows sidebar\gadgets\Clock.Gadget,true</Gadget2>		</component>    </settings></unattend>

 

 

Greetz X23

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...