Monkey D. Ruffy
Ensign
- Registriert
- Aug. 2011
- Beiträge
- 253
Hallo,
Ich will aktuell Windows 11 EDU mit Ventoy installieren und dabei einige Änderungen während der Installation vornehmen. Es klappt aber irgendwie nicht und ich weiß nicht, wo das Problem liegt.
Ablauf: Ich boote mit F12 von Installationsmedium als EFI Boot. Dann kommt Ventoy Menü. Ich wähle Windows Iso. Ich kann dann normal oder mit Config booten. Ich wähle mit Config. Dann startet es neu, kommt kurzzeitig violett Screen und dann startet es wieder in Ventoy Menü. d.h. es kommt einfach nicht weiter.
So sieht die USB Struktur aus:
/autounattend.xml
/windows/Win11_25H2_German_x64_v2.iso
/ventoy/ventoy.json
So sieht autounattend.xml aus:
ventoy.json:
PS: ISO ist von der Microsoft Seite. Die EFI Partition will ich so groß haben. Der Notebook, wo es installiert werden sollte, ist von Lenovo LOQ 15ARP9. Nach Windows kommt noch Fedora als Dual Boot mit rEFIND. Bei der UEFI von Notebook habe ich Secure Boot ausgeschaltet und Keys gelöscht. ACHI ist ausgewählt. Die normale Windows 11 Installation funktioniert einwandfrei. Ich kenne aber mit ventoy nicht so gut aus. Deswegen ist es nicht ersichtlich, ob ich irgendwelche Einstellungen oder Plugins vergessen habe oder Microsoft bzw. Lenovo da aktiv entgegenwirkt.
Ich will aktuell Windows 11 EDU mit Ventoy installieren und dabei einige Änderungen während der Installation vornehmen. Es klappt aber irgendwie nicht und ich weiß nicht, wo das Problem liegt.
Ablauf: Ich boote mit F12 von Installationsmedium als EFI Boot. Dann kommt Ventoy Menü. Ich wähle Windows Iso. Ich kann dann normal oder mit Config booten. Ich wähle mit Config. Dann startet es neu, kommt kurzzeitig violett Screen und dann startet es wieder in Ventoy Menü. d.h. es kommt einfach nicht weiter.
So sieht die USB Struktur aus:
/autounattend.xml
/windows/Win11_25H2_German_x64_v2.iso
/ventoy/ventoy.json
So sieht autounattend.xml aus:
XML:
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend"
xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
<!-- ================================================= -->
<!-- 1. WINDOWS PE -->
<!-- ================================================= -->
<settings pass="windowsPE">
<component name="Microsoft-Windows-Setup">
<!-- Sprache -->
<InputLocale>de-DE</InputLocale>
<SystemLocale>de-DE</SystemLocale>
<UILanguage>de-DE</UILanguage>
<UserLocale>de-DE</UserLocale>
<!-- Partitionierung -->
<DiskConfiguration>
<Disk wcm:action="add">
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
<CreatePartitions>
<!-- EFI 2GB -->
<CreatePartition>
<Order>1</Order>
<Type>EFI</Type>
<Size>2048</Size>
</CreatePartition>
<!-- MSR -->
<CreatePartition>
<Order>2</Order>
<Type>MSR</Type>
<Size>16</Size>
</CreatePartition>
<!-- Windows -->
<CreatePartition>
<Order>3</Order>
<Type>Primary</Type>
<Size>900000</Size>
</CreatePartition>
<!-- Recovery -->
<CreatePartition>
<Order>4</Order>
<Type>Primary</Type>
<Size>1024</Size>
</CreatePartition>
</CreatePartitions>
<ModifyPartitions>
<!-- EFI -->
<ModifyPartition>
<Order>1</Order>
<PartitionID>1</PartitionID>
<Format>FAT32</Format>
<Label>EFI</Label>
</ModifyPartition>
<!-- Windows -->
<ModifyPartition>
<Order>2</Order>
<PartitionID>3</PartitionID>
<Format>NTFS</Format>
<Label>Windows</Label>
<Letter>C</Letter>
</ModifyPartition>
<!-- Recovery -->
<ModifyPartition>
<Order>3</Order>
<PartitionID>4</PartitionID>
<Format>NTFS</Format>
<Label>Recovery</Label>
<TypeID>0x27</TypeID>
</ModifyPartition>
</ModifyPartitions>
</DiskConfiguration>
<!-- Image -->
<ImageInstall>
<OSImage>
<InstallFrom>
<MetaData wcm:action="add">
<Key>/IMAGE/INDEX</Key>
<Value>3</Value>
</MetaData>
</InstallFrom>
<WillShowUI>Never</WillShowUI>
</OSImage>
</ImageInstall>
<!-- Key -->
<UserData>
<ProductKey>
<Key>xxxxx-xxxxx-xxxxx-xxxxx-xxxxx</Key>
<WillShowUI>Never</WillShowUI>
</ProductKey>
<AcceptEula>true</AcceptEula>
</UserData>
</component>
</settings>
<!-- ================================================= -->
<!-- 2. OOBE -->
<!-- ================================================= -->
<settings pass="oobeSystem">
<component name="Microsoft-Windows-Shell-Setup">
<OOBE>
<HideEULAPage>true</HideEULAPage>
<NetworkLocation>Work</NetworkLocation>
<ProtectYourPC>3</ProtectYourPC>
<SkipMachineOOBE>true</SkipMachineOOBE>
<SkipUserOOBE>false</SkipUserOOBE>
</OOBE>
<!-- User -->
<UserAccounts>
<LocalAccounts>
<LocalAccount wcm:action="add">
<Password>
<Value>1234</Value>
<PlainText>true</PlainText>
</Password>
<Description>Administrator Konto</Description>
<DisplayName>Admin</DisplayName>
<Name>Admin</Name>
<Group>Administrators</Group>
</LocalAccount>
</LocalAccounts>
<AdministratorPassword>
<Value>1234</Value>
<PlainText>true</PlainText>
</AdministratorPassword>
</UserAccounts>
<!-- Boot-Fix + Debloat -->
<FirstLogonCommands>
<!-- BOOTLOADER FIX (entscheidend für Lenovo + 2GB EFI) -->
<SynchronousCommand wcm:action="add">
<Order>1</Order>
<Description>Fix UEFI Boot</Description>
<CommandLine>cmd /c for /f "tokens=2 delims==" %i in ('wmic logicaldisk where "VolumeName='EFI'" get DeviceID /value ^| find "="') do bcdboot C:\Windows /s %i /f UEFI</CommandLine>
</SynchronousCommand>
<!-- Debloat -->
<SynchronousCommand wcm:action="add">
<Order>2</Order>
<Description>Remove Cortana</Description>
<CommandLine>powershell -Command "Get-AppxPackage -AllUsers *Cortana* | Remove-AppxPackage"</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>3</Order>
<Description>Remove OneDrive</Description>
<CommandLine>powershell -Command "Get-AppxPackage -AllUsers *OneDrive* | Remove-AppxPackage"</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>4</Order>
<Description>Remove Xbox/Teams</Description>
<CommandLine>powershell -Command "Get-AppxPackage -AllUsers *Xbox* | Remove-AppxPackage; Get-AppxPackage -AllUsers *MicrosoftTeams* | Remove-AppxPackage"</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>5</Order>
<Description>Disable Consumer Features</Description>
<CommandLine>powershell -Command "Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent' -Name 'DisableConsumerFeatures' -Value 1"</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>6</Order>
<Description>Disable Copilot</Description>
<CommandLine>powershell -Command "New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent' -Force; Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent' -Name 'DisableWindowsCopilot' -Value 1"</CommandLine>
</SynchronousCommand>
</FirstLogonCommands>
</component>
</settings>
</unattend>
ventoy.json:
JSON:
{ "auto_install": [ { "image": "/windows/Win11_25H2_German_x64_v2.iso", "template": "/autounattend.xml" } ] }
PS: ISO ist von der Microsoft Seite. Die EFI Partition will ich so groß haben. Der Notebook, wo es installiert werden sollte, ist von Lenovo LOQ 15ARP9. Nach Windows kommt noch Fedora als Dual Boot mit rEFIND. Bei der UEFI von Notebook habe ich Secure Boot ausgeschaltet und Keys gelöscht. ACHI ist ausgewählt. Die normale Windows 11 Installation funktioniert einwandfrei. Ich kenne aber mit ventoy nicht so gut aus. Deswegen ist es nicht ersichtlich, ob ich irgendwelche Einstellungen oder Plugins vergessen habe oder Microsoft bzw. Lenovo da aktiv entgegenwirkt.