TI

technik informatyk

Start

Instrukcja przygotowania instalacji nienadzorowanej w systemie Windows Server z użyciem usługi WDS.

Zakładamy, że mamy:

  1. AD DC
  2. DHCP server
  3. DNS server

Instalacja i konfiguracja:

  1. Dodawanie roli wdrażania systemu windows (Windows Deployment System)

  2. Konfiguracja początkowa:
    • ustawienie lokalizacji: c:\remoteinstall
    • opcje dla serwera dhcp
    • zachowanie serwera WDS dla zapytań klienckich
  3. Dodawanie obrazu instalacyjnego -> install.wim (Windows 8.1/10)

  4. Dodawanie obrazu rozruchowego -> boot.wim (windows8.1/10)

  5. Dodatkowo: Pobieramy i instalujemy ADK for Windows 10/11 (Windows Assessment and Deployment Kit). Z listy narzędzi wybieramy tylko: Deployment Tool.

    pobierz ADK

    Narzędziem, które pomoże nam w przygotowaniu pliku odpowiedzi będzie Windows System Image Manager.

Instrukcja przygotowania instalacji nienadzorowanej:

Przygotowany plik odpowiedzi dodajemy w dwóch miejscach w usłudze WDS. Wynika to z faktu, że instalacja systemu Windows składa się z etapów, które są przetwarzane w różnym czasie. Etap 1. Windows PE jest analizowany w początkowej fazie pracy instalatora i nie jest związany bezpośrednio z obrazem systemu Windows. W przypadku instalacji sieciowej ta sekcja jest analizowana przez serwer WDS i należy plik odpowiedzi dodać do konfiguracji WDS.

W polskiej wersji językowej systemu Windows Server jest mały błąd tłumaczenia. Sekcja architektury x64 jest błędnie opisana jako ARM o czym należy pamiętać dodając plik odpowiedzi.

Drugim miejscem jest dodanie pliku odpowiedzi do konkretnego obrazu, który zamierzamy wdrożyć na komputerach w sieci.

Instalacja systemu w serwera WDS

Instalacja sieciowa wymaga pracy karty sieciowej z włączonym trybem PXE. Należy w ustawieniach BIOS Setup (UEFI) ustawić pierwszeństwo rozruch z sieci.

Po poprawnym uruchomieniu powinniśmy śledzić komunikaty przekazywane na ekran komputera i postępować zgodnie z nimi. 

Przykład pliku odpowiedzi wygenerowany w Windows System Image Manager.

 

<?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="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>pl-PL</UILanguage>
            </SetupUILanguage>
            <InputLocale>pl-PL</InputLocale>
            <SystemLocale>pl-PL</SystemLocale>
            <UILanguage>pl-PL</UILanguage>
            <UILanguageFallback>en-US</UILanguageFallback>
            <UserLocale>pl-PL</UserLocale>
            <LayeredDriver>1</LayeredDriver>
        </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">
            <WindowsDeploymentServices>
                <Login>
                    <Credentials>
                        <Domain>ti</Domain>
                        <Password>haslo</Password>
                        <Username>administrator</Username>
                    </Credentials>
                </Login>
                <ImageSelection>
                    <InstallTo>
                        <DiskID>0</DiskID>
                        <PartitionID>2</PartitionID>
                    </InstallTo>
                    <InstallImage>
                        <ImageGroup>Windows10</ImageGroup>
                        <ImageName>Windows 10 Pro</ImageName>
                        <Filename>install.wim</Filename>
                    </InstallImage>
                </ImageSelection>
            </WindowsDeploymentServices>
            <DiskConfiguration>
                <Disk wcm:action="add">
                    <CreatePartitions>
                        <CreatePartition wcm:action="add">
                            <Order>1</Order>
                            <Type>Primary</Type>
                            <Size>350</Size>
                        </CreatePartition>
                        <CreatePartition wcm:action="add">
                            <Extend>true</Extend>
                            <Order>2</Order>
                            <Type>Primary</Type>
                        </CreatePartition>
                    </CreatePartitions>
                    <ModifyPartitions>
                        <ModifyPartition wcm:action="add">
                            <Format>NTFS</Format>
                            <Label>System Reserved</Label>
                            <Order>1</Order>
                            <PartitionID>1</PartitionID>
                            <Active>true</Active>
                        </ModifyPartition>
                        <ModifyPartition wcm:action="add">
                            <Active>false</Active>
                            <Format>NTFS</Format>
                            <Label>Windows</Label>
                            <Letter>C</Letter>
                            <Order>2</Order>
                            <PartitionID>2</PartitionID>
                        </ModifyPartition>
                    </ModifyPartitions>
                    <DiskID>0</DiskID>
                    <WillWipeDisk>true</WillWipeDisk>
                </Disk>
                <WillShowUI>OnError</WillShowUI>
            </DiskConfiguration>
            <UserData>
                <AcceptEula>true</AcceptEula>
                <FullName>ZSZGostyn</FullName>
                <Organization>ZSZGostyn</Organization>
            </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">
            <AutoLogon>
                <Password>
                    <Value>egBzAHoAYQBkAG0AaQBuAFAAYQBzAHMAdwBvAHIAZAA=</Value>
                    <PlainText>false</PlainText>
                </Password>
                <Enabled>true</Enabled>
                <LogonCount>1</LogonCount>
                <Username>administrator</Username>
                <Domain>.</Domain>
            </AutoLogon>
            <OOBE>
                <HideEULAPage>true</HideEULAPage>
                <HideLocalAccountScreen>true</HideLocalAccountScreen>
                <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
                <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
                <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                <NetworkLocation>Home</NetworkLocation>
                <ProtectYourPC>1</ProtectYourPC>
                <SkipMachineOOBE>true</SkipMachineOOBE>
                <SkipUserOOBE>true</SkipUserOOBE>
            </OOBE>
            <Themes>
                <DefaultThemesOff>true</DefaultThemesOff>
                <WindowColor>1</WindowColor>
            </Themes>
            <UserAccounts>
                <AdministratorPassword>
                    <Value>egBzAHoAYQBkAG0AaQBuAEEAZABtAGkAbgBpAHMAdAByAGEAdABvAHIAUABhAHMAcwB3AG8AcgBkAA==</Value>
                    <PlainText>false</PlainText>
                </AdministratorPassword>
                <LocalAccounts>
                    <LocalAccount wcm:action="add">
                        <Password>
                            <Value>egBzAHoAYQBkAG0AaQBuAFAAYQBzAHMAdwBvAHIAZAA=</Value>
                            <PlainText>false</PlainText>
                        </Password>
                        <Name>admin</Name>
                        <DisplayName>admin</DisplayName>
                        <Group>Administrators</Group>
                    </LocalAccount>
                </LocalAccounts>
            </UserAccounts>
        </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">
            <InputLocale>pl-PL</InputLocale>
            <SystemLocale>pl-PL</SystemLocale>
            <UILanguage>pl-PL</UILanguage>
            <UILanguageFallback></UILanguageFallback>
            <UserLocale>pl-PL</UserLocale>
        </component>
    </settings>
    <settings pass="specialize">
        <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>
                <Credentials>
                    <Domain>ti</Domain>
                    <Password>haslo</Password>
                    <Username>administrator</Username>
                </Credentials>
                <JoinDomain>ti.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>%MACHINENAME%</ComputerName>
        </component>
    </settings>
    <settings pass="generalize">
        <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">
            <DoNotCleanTaskBar>true</DoNotCleanTaskBar>
        </component>
    </settings>
    <cpi:offlineImage cpi:source="catalog:c:/customize/install_windows 10 pro.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

TI technik informatyk