New
#830
Cant get past first install screen
Hi, I cant get past the first install screen using Win11 with Hyper-v. Does Hyper-v have a problem with Windows11 answer files.
How do I upload the answer file?
Thanks Shane.
Hi, I cant get past the first install screen using Win11 with Hyper-v. Does Hyper-v have a problem with Windows11 answer files.
How do I upload the answer file?
Thanks Shane.
Shane, should work fine with Hyper-V. Are you saying that an answer file known to work on a physical machine is not working in Hyper-V?
Post your answer file here and I'll see if I can spot anything that stands out to me.
To post your answer file, on the toolbar, click the hash symbol. When you hover your pointer over the hash symbol it should indicate that it will insert code tags. Then, insert the text of the answer file between the code tags. Alternatively, you could paste the text first, select it, then click the hash symbol and it will place code tags around the text.
Are you seeing any error message or is setup simply not proceeding automatically past the first static screen?
Also, since you are installing on Hyper-V, I assume you have an ISO image of Windows into which you added the answer file as "autounattend.xml" in the root, correct?
Finally, If the answer file was created for use with a UEFI based system, you would create the Hyper-V machine as a Generation 2 machine, for a BIOS based install you would create a Generation 1 VM.
Does all that check out so far?
Haven't tried a physical machine, I make sure its working in Hyper-v before testing on my machine.
No error message just wont get past first static screen.
Yes iso image with autounattend added. Gen 2 machine.
I have been doing autounattends the same way as I always have for win10 following the tutorial, except for the win11 TPM entry's, and no msr partition.
Thanks for your help.
- - - Updated - - -Code:<?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>en-US</UILanguage> </SetupUILanguage> <InputLocale>en-US</InputLocale> <SystemLocale>en-AU</SystemLocale> <UILanguage>en-US</UILanguage> <UILanguageFallback>en-US</UILanguageFallback> <UserLocale>en-AU</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>3</Order> <Extend>true</Extend> <Type>Primary</Type> </CreatePartition> <CreatePartition wcm:action="add"> <Order>2</Order> <Type>EFI</Type> <Size>100</Size> </CreatePartition> <CreatePartition wcm:action="add"> <Order>1</Order> <Size>500</Size> <Type>Primary</Type> </CreatePartition> </CreatePartitions> <ModifyPartitions> <ModifyPartition wcm:action="add"> <Format>NTFS</Format> <Label>WinRE</Label> <Order>1</Order> <PartitionID>1</PartitionID> <TypeID>DE94BBA4-06D1-4D40-A16A-BFD50179D6AC</TypeID> </ModifyPartition> <ModifyPartition wcm:action="add"> <Format>NTFS</Format> <Label>Win11</Label> <Letter>C</Letter> <Order>3</Order> <PartitionID>3</PartitionID> </ModifyPartition> <ModifyPartition wcm:action="add"> <Format>FAT32</Format> <Label>EFI</Label> <Order>2</Order> <PartitionID>2</PartitionID> </ModifyPartition> </ModifyPartitions> <DiskID>0</DiskID> <WillWipeDisk>true</WillWipeDisk> </Disk> </DiskConfiguration> <ImageInstall> <OSImage> <InstallTo> <DiskID>0</DiskID> <PartitionID>3</PartitionID> </InstallTo> </OSImage> </ImageInstall> <RunSynchronous> <RunSynchronousCommand wcm:action="add"> <Order>1</Order> <Path>reg add HKLM\System\Setup\LabConfig /v BypassTPMCheck /t reg_dword /d 0x00000001 /f</Path> </RunSynchronousCommand> <RunSynchronousCommand wcm:action="add"> <Order>2</Order> <Path>reg add HKLM\System\Setup\LabConfig /v BypassSecureBootCheck /t reg_dword /d 0x00000001 /f</Path> </RunSynchronousCommand> <RunSynchronousCommand wcm:action="add"> <Order>3</Order> <Path>reg add HKLM\System\Setup\LabConfig /v BypassRAMCheck /t reg_dword /d 0x00000001 /f</Path> </RunSynchronousCommand> <RunSynchronousCommand wcm:action="add"> <Order>4</Order> <Path>reg add HKLM\System\Setup\LabConfig /v BypassStorageCheck /t reg_dword /d 0x00000001 /f</Path> </RunSynchronousCommand> <RunSynchronousCommand wcm:action="add"> <Order>5</Order> <Path>reg add HKLM\System\Setup\LabConfig /v BypassCPUCheck /t reg_dword /d 0x00000001 /f</Path> </RunSynchronousCommand> </RunSynchronous> <UserData> <ProductKey> <Key>VK7JG-NPHTM-C97JM-9MPGT-3V66T</Key> </ProductKey> <AcceptEula>true</AcceptEula> <FullName>Shane</FullName> <Organization>Mine</Organization> </UserData> </component> </settings> <settings pass="specialize"> <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"> <OEMInformation> <Manufacturer>AMD</Manufacturer> <Model>B450m</Model> </OEMInformation> <ComputerName>BEBO</ComputerName> <RegisteredOrganization>Mine</RegisteredOrganization> <RegisteredOwner>Shane</RegisteredOwner> <TimeZone>E. Australia Standard Time</TimeZone> </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"> <OOBE> <HideEULAPage>true</HideEULAPage> <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen> <HideOnlineAccountScreens>true</HideOnlineAccountScreens> <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE> <ProtectYourPC>3</ProtectYourPC> <UnattendEnableRetailDemo>false</UnattendEnableRetailDemo> </OOBE> <UserAccounts> <LocalAccounts> <LocalAccount wcm:action="add"> <Password> <Value>a</Value> <PlainText>true</PlainText> </Password> <DisplayName>Shane</DisplayName> <Group>Administrators</Group> <Description>Me</Description> <Name>Shane</Name> </LocalAccount> </LocalAccounts> </UserAccounts> <RegisteredOrganization>Mine</RegisteredOrganization> <RegisteredOwner>Shane</RegisteredOwner> <TimeZone>E. Australia Standard Time</TimeZone> <FirstLogonCommands> <SynchronousCommand wcm:action="add"> <CommandLine>reg add "HKLM\SOFTWARE\Microsoft\Windows </CommandLine> <Order>6</Order> </SynchronousCommand> </FirstLogonCommands> <AutoLogon> <Password> <Value>a</Value> <PlainText>true</PlainText> </Password> <Enabled>true</Enabled> <LogonCount>99</LogonCount> <Username>Shane</Username> </AutoLogon> </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>en-US</InputLocale> <SystemLocale>en-AU</SystemLocale> <UILanguage>en-US</UILanguage> <UILanguageFallback>en-US</UILanguageFallback> <UserLocale>en-AU</UserLocale> </component> </settings> <cpi:offlineImage cpi:source="catalog:e:/win-11-dev/sources/install_windows 11 pro.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" /> </unattend>
Found the problem. It was in the international core settings <inputlocal> had US instead of AU. here is the updated working answer file. Sorry about that
Code:<?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>en-US</UILanguage> </SetupUILanguage> <InputLocale>en-AU</InputLocale> <SystemLocale>en-AU</SystemLocale> <UILanguage>en-US</UILanguage> <UILanguageFallback>en-US</UILanguageFallback> <UserLocale>en-AU</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>3</Order> <Extend>true</Extend> <Type>Primary</Type> </CreatePartition> <CreatePartition wcm:action="add"> <Order>2</Order> <Type>EFI</Type> <Size>100</Size> </CreatePartition> <CreatePartition wcm:action="add"> <Order>1</Order> <Size>500</Size> <Type>Primary</Type> </CreatePartition> </CreatePartitions> <ModifyPartitions> <ModifyPartition wcm:action="add"> <Format>NTFS</Format> <Label>WinRE</Label> <Order>1</Order> <PartitionID>1</PartitionID> <TypeID>DE94BBA4-06D1-4D40-A16A-BFD50179D6AC</TypeID> </ModifyPartition> <ModifyPartition wcm:action="add"> <Format>NTFS</Format> <Label>Win11</Label> <Letter>C</Letter> <Order>3</Order> <PartitionID>3</PartitionID> </ModifyPartition> <ModifyPartition wcm:action="add"> <Format>FAT32</Format> <Label>EFI</Label> <Order>2</Order> <PartitionID>2</PartitionID> </ModifyPartition> </ModifyPartitions> <DiskID>0</DiskID> <WillWipeDisk>true</WillWipeDisk> </Disk> </DiskConfiguration> <ImageInstall> <OSImage> <InstallTo> <DiskID>0</DiskID> <PartitionID>3</PartitionID> </InstallTo> </OSImage> </ImageInstall> <RunSynchronous> <RunSynchronousCommand wcm:action="add"> <Order>1</Order> <Path>reg add HKLM\System\Setup\LabConfig /v BypassTPMCheck /t reg_dword /d 0x00000001 /f</Path> </RunSynchronousCommand> <RunSynchronousCommand wcm:action="add"> <Order>2</Order> <Path>reg add HKLM\System\Setup\LabConfig /v BypassSecureBootCheck /t reg_dword /d 0x00000001 /f</Path> </RunSynchronousCommand> <RunSynchronousCommand wcm:action="add"> <Order>3</Order> <Path>reg add HKLM\System\Setup\LabConfig /v BypassRAMCheck /t reg_dword /d 0x00000001 /f</Path> </RunSynchronousCommand> <RunSynchronousCommand wcm:action="add"> <Order>4</Order> <Path>reg add HKLM\System\Setup\LabConfig /v BypassStorageCheck /t reg_dword /d 0x00000001 /f</Path> </RunSynchronousCommand> <RunSynchronousCommand wcm:action="add"> <Order>5</Order> <Path>reg add HKLM\System\Setup\LabConfig /v BypassCPUCheck /t reg_dword /d 0x00000001 /f</Path> </RunSynchronousCommand> </RunSynchronous> <UserData> <ProductKey> <Key>VK7JG-NPHTM-C97JM-9MPGT-3V66T</Key> </ProductKey> <AcceptEula>true</AcceptEula> <FullName>Shane</FullName> <Organization>Mine</Organization> </UserData> </component> </settings> <settings pass="specialize"> <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"> <OEMInformation> <Manufacturer>AMD</Manufacturer> <Model>B450m</Model> </OEMInformation> <ComputerName>BEBO</ComputerName> <RegisteredOrganization>Mine</RegisteredOrganization> <RegisteredOwner>Shane</RegisteredOwner> <TimeZone>E. Australia Standard Time</TimeZone> </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"> <OOBE> <HideEULAPage>true</HideEULAPage> <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen> <HideOnlineAccountScreens>true</HideOnlineAccountScreens> <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE> <ProtectYourPC>3</ProtectYourPC> <UnattendEnableRetailDemo>false</UnattendEnableRetailDemo> </OOBE> <UserAccounts> <LocalAccounts> <LocalAccount wcm:action="add"> <Password> <Value>a</Value> <PlainText>true</PlainText> </Password> <DisplayName>Shane</DisplayName> <Group>Administrators</Group> <Description>Me</Description> <Name>Shane</Name> </LocalAccount> </LocalAccounts> </UserAccounts> <RegisteredOrganization>Mine</RegisteredOrganization> <RegisteredOwner>Shane</RegisteredOwner> <TimeZone>E. Australia Standard Time</TimeZone> <FirstLogonCommands> <SynchronousCommand wcm:action="add"> <CommandLine>reg add "HKLM\SOFTWARE\Microsoft\Windows </CommandLine> <Order>6</Order> </SynchronousCommand> </FirstLogonCommands> <AutoLogon> <Password> <Value>a</Value> <PlainText>true</PlainText> </Password> <Enabled>true</Enabled> <LogonCount>99</LogonCount> <Username>Shane</Username> </AutoLogon> </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>en-AU</InputLocale> <SystemLocale>en-AU</SystemLocale> <UILanguage>en-US</UILanguage> <UILanguageFallback>en-US</UILanguageFallback> <UserLocale>en-AU</UserLocale> </component> </settings> <cpi:offlineImage cpi:source="catalog:e:/win-11-dev/install_windows 11 pro.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" /> </unattend>
Last edited by red61; 09 Aug 2022 at 17:22.
Good job finding the problem! BTW, sorry for the slow response. I tweaked my back this morning, so I have not been in front of computer all day.
I have just tried an W11 autounattend without the RE or MSR partitions "just EFI and C:" in hyper-v and it seems to work fine.
Is there anything wrong with that. I have never needed an RE partition.
You can get away with it but the question that interests me more is this: Why? Are you so low on space that such miniscule amounts of space are a concern?
With the MSR I read its no longer needed. With the RE I have never used a recovery partition so I thought why have it. I like it last on the partition and learning and working with WISM all the time on my home computers, its a pain working out the exact Mb C: needs to be. Also last time I put the RE before C:, win11 put another one after C:
I'd use MDT but I'm struggling to get a grip on adding programs and drivers, using Kari's tutorial. Most other MDT tutorials on the web seem to need windows server or business software.
So, you can have the RE partition created last very easily. Here are two methods to doing this:
1) this is the easiest way: Simply don't define the partitions to be created in the unattended installation. This will cause setup to ask you for the drive to which Windows should be installed. After you select the drive, the rest of the installation will continue unattended. This will also cause the RE partition to be created last.
2) You can inject a script into the Windows PE image to create the partitions. This is a lot more work, but it will allow the installation to be 100% unattended.
If you need details for either or both of the above, let me know and I can provide detailed instructions.
Follow-up: I meant to comment on MDT as well but forgot to do so. Personally, I've given up on MDT. It's a dead product. It doesn't support Windows 11 and has not been updated in years.
I'll write up a procedure to place a batch file script in to automate partitioning the correct way. BTW, you are spot on with what it does.
I'll give you the step-by-step so that you can see how it is done, but I also wrote a program to automate the process. I can provide that to you as well.
As for sysprep, let me ask a question: What kind of customizations do you perform with your reference system? Personally, I've settled on a different method. What I do now is a clean install of Windows using an unattended installation, but it's not a sysprepped image. This completely eliminates the need for a reference system.
Then, after Windows has been installed, I run a batch file that performs all of my customization tasks. For example, it disables all the places where ads and tips are shown, sets my power settings, enables Remote Desktop, and performs a whole bunch of additional customizations. I also run a very simple batch file that installs all my drivers for the system.
I like this method because I can use it on different systems, simply using the appropriate driver set for a given system, and I can easily modify my customization script without having to redo a sysprep image.
I'll get on this in the morning as it is about 0030 where I am right now. Note that it will take me a while to put all of this together. I may post in several parts, 1 part to address the script for proper partitioning, 1 part to address drivers, another to address a Windows customization script.
If you have any additional requests, feel free to let me know.