Witam.
Mam postawiona aplikację Serva do instalacji przez PXE obrazów i działa dobrze.
Ale chciał bym to bardziej zautomatyzować i chce aby po wybraniu obrazu ustawienia wolumin system po kliknięciu instaluj sam założył użytkownika i pominął wszystkie zbędne śmieci konfiguracyjne, zainstalował podstawowe aplikację ? czy da się tak zmodyfikować obraz np Windows 7 lub 10 ?
Ale chciałem dodać jeszcze że po instalacji systemu instalowanie dodatkowego oprogramowania i mma bład w wirszu 200 i kolumnie 3 . Nie rozumiem gdzie jest bład. może ktoś ma pomysł ?
<!--*************************************************
Windows 10 Answer File Generator
Created using Windows AFG found at:
;http://www.windowsafg.com
Installation Notes
Location:
Notes: Enter your comments here...
**************************************************-->
<?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>0415:00000415</InputLocale>
<SystemLocale>pl-PL</SystemLocale>
<UILanguage>pl-PL</UILanguage>
<UILanguageFallback>pl-PL</UILanguageFallback>
<UserLocale>pl-PL</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">
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
<CreatePartitions>
<!-- Windows RE Tools partition -->
<CreatePartition wcm:action="add">
<Order>1</Order>
<Type>Primary</Type>
<Size>300</Size>
</CreatePartition>
<!-- System partition (ESP) -->
<CreatePartition wcm:action="add">
<Order>2</Order>
<Type>EFI</Type>
<Size>100</Size>
</CreatePartition>
<!-- Microsoft reserved partition (MSR) -->
<CreatePartition wcm:action="add">
<Order>3</Order>
<Type>MSR</Type>
<Size>128</Size>
</CreatePartition>
<!-- Windows partition -->
<CreatePartition wcm:action="add">
<Order>4</Order>
<Type>Primary</Type>
<Extend>true</Extend>
</CreatePartition>
</CreatePartitions>
<ModifyPartitions>
<!-- Windows RE Tools partition -->
<ModifyPartition wcm:action="add">
<Order>1</Order>
<PartitionID>1</PartitionID>
<Label>WINRE</Label>
<Format>NTFS</Format>
<TypeID>DE94BBA4-06D1-4D40-A16A-BFD50179D6AC</TypeID>
</ModifyPartition>
<!-- System partition (ESP) -->
<ModifyPartition wcm:action="add">
<Order>2</Order>
<PartitionID>2</PartitionID>
<Label>System</Label>
<Format>FAT32</Format>
</ModifyPartition>
<!-- MSR partition does not need to be modified -->
<ModifyPartition wcm:action="add">
<Order>3</Order>
<PartitionID>3</PartitionID>
</ModifyPartition>
<!-- Windows partition -->
<ModifyPartition wcm:action="add">
<Order>4</Order>
<PartitionID>4</PartitionID>
<Label>OS</Label>
<Letter>C</Letter>
<Format>NTFS</Format>
</ModifyPartition>
</ModifyPartitions>
</Disk>
</DiskConfiguration>
<ImageInstall>
<OSImage>
<InstallTo>
<DiskID>0</DiskID>
<PartitionID>4</PartitionID>
</InstallTo>
<InstallToAvailablePartition>false</InstallToAvailablePartition>
</OSImage>
</ImageInstall>
<UserData>
<ProductKey>
<!-- Do not uncomment the Key element if you are using trial ISOs -->
<!-- You must uncomment the Key element (and optionally insert your own key) if you are using retail or volume license ISOs -->
<Key></Key>
<WillShowUI>Never</WillShowUI>
</ProductKey>
<AcceptEula>true</AcceptEula>
<FullName>PC</FullName>
<Organization></Organization>
</UserData>
</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>true</EnableLUA>
</component>
</settings>
<settings pass="generalize">
<component name="Microsoft-Windows-Security-SPP" 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">
<SkipRearm>1</SkipRearm>
</component>
</settings>
<settings pass="specialize">
<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>0415:00000415</InputLocale>
<SystemLocale>pl-PL</SystemLocale>
<UILanguage>pl-PL</UILanguage>
<UILanguageFallback>pl-PL</UILanguageFallback>
<UserLocale>pl-PL</UserLocale>
</component>
<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-SQMApi" 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">
<CEIPEnabled>0</CEIPEnabled>
</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>
<ProductKey>VK7JG-NPHTM-C97JM-9MPGT-3V66T</ProductKey>
</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>Start123</Value>
<PlainText>true</PlainText>
</Password>
<Enabled>true</Enabled>
<Username>PC</Username>
</AutoLogon>
<OOBE>
<HideEULAPage>true</HideEULAPage>
<HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
<HideOnlineAccountScreens>true</HideOnlineAccountScreens>
<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
<NetworkLocation>Home</NetworkLocation>
<SkipUserOOBE>true</SkipUserOOBE>
<SkipMachineOOBE>true</SkipMachineOOBE>
<ProtectYourPC>1</ProtectYourPC>
</OOBE>
<UserAccounts>
<LocalAccounts>
<LocalAccount wcm:action="add">
<Password>
<Value>Start123</Value>
<PlainText>true</PlainText>
</Password>
<Description></Description>
<DisplayName>PC</DisplayName>
<Group>Administrators</Group>
<Name>PC</Name>
</LocalAccount>
</LocalAccounts>
</UserAccounts>
<RegisteredOrganization></RegisteredOrganization>
<RegisteredOwner>PC</RegisteredOwner>
<DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<Description>Control Panel View</Description>
<Order>1</Order>
<CommandLine>reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v StartupPage /t REG_DWORD /d 1 /f</CommandLine>
<RequiresUserInput>true</RequiresUserInput>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>2</Order>
<Description>Control Panel Icon Size</Description>
<RequiresUserInput>false</RequiresUserInput>
<CommandLine>reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v AllItemsIconView /t REG_DWORD /d 1 /f</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>3</Order>
<RequiresUserInput>false</RequiresUserInput>
<CommandLine>cmd /C wmic useraccount where name="PC" set PasswordExpires=false</CommandLine>
<Description>Password Never Expires</Description>
</SynchronousCommand>
</FirstLogonCommands>
<TimeZone>Central European Standard Time</TimeZone>
</component>
</settings>
<!-- Other AutoUnattend settings -->
<RunSynchronous>
<RunSynchronousCommand wcm:action="add">
<Path>D:\Packages\eea_nt64.msi</Path>
<Description>Install Example MSI package</Description>
<Order>1</Order>
</RunSynchronousCommand>
</RunSynchronous>
<!-- Other AutoUnattend settings -->
</unattend>
Generalnie mam już gotowca który instaluje system od A do Z z aktualizacjami po czym się wyłącza. Przy dobrym sprzęcie czas instalacji to ok 1 godzina.
Jedynie co pozostaje to instalacja sterowników ze strony producenta o ile są wymagane.
Co robi moja paczka :
1) Instaluje system z pominięciem niepotrzebnych rzeczy np. lokalizacja, wysyłanie danych do M$. Zakłada użytkownika user/Start123
2) Automatycznie loguje do systemu
3) Uruchamia RDP , oraz ICMP dla IPv4
4) Daje uprawnienia dla wykonywania skryptów ps1
5) Robi aktualizacje Windows oraz aktualizacje opcjonalne
6) Instaluje winget z zasobu lokalnego ( repozytorium m$ tak jak w linux)
7) Instaluje aplikacje z ninite.com ( chce je zastąpić repo z winget)
8) Wykonuje restart i wznawia proces aktualizacji
9) Ostatni etap to wycofanie zmian ICMP,RDP, wykonywanie skryptów nieautoryzowanych PV etc i na koniec robi shutdown .
Dla instalacji z WDS było bez różnicy jakie sa partycje - jak startuje instalator to by musiał mieć zaimplementowaną logikę sprawdzania albo zrobić instalacje częściowo nadzorowana - wybór UEFI lub nie. Pozostały proces z automatu.
Wszystkie kroki ustalasz w scenariuszu i wykonuje się to automatycznie.
Instalacja z WDS to było max 3x15min - 3 etapy instalacji, każdy zakończony restartem.
✨ Użytkownik zainstalował aplikację Serva do instalacji obrazów przez PXE i poszukuje sposobu na automatyzację procesu instalacji systemu Windows 7 lub 10. Odpowiedzi sugerują wykorzystanie instalacji nienadzorowanej oraz generatory plików odpowiedzi, takie jak Windows AFG. Użytkownik z powodzeniem skonfigurował skrypty do automatycznej instalacji, które pomijają zbędne ustawienia, zakładają użytkownika, instalują RDP, aktualizacje oraz dodatkowe oprogramowanie. Wskazano również na możliwość problemów z partycjami UEFI oraz zalecenie korzystania z gotowych rozwiązań. Wygenerowane przez model językowy.