memstechtips / UnattendedWinstall

Personalized Unattended Answer Files that helps automatically debloat and customize Windows 10 & 11 during the installation process.
MIT License
2.77k stars 338 forks source link

Issues with autounnatended #7

Closed Theridgeback closed 3 months ago

Theridgeback commented 3 months ago

Just downloaded a fresh windows 10 ISO from microsoft. Right clicked and saved the link for the unatend.xml file Used anyburn to copy over the autounattend file to the iso.

I've always used ventoy, So copied the iso on to my usb stick, Booted ventoy and mounted the windows iso to install.

Selected uk as language and keyboard and clicked on to the install button.

Straight away it came up with

Windows setup encountered an internal error whil loading or searching for an unattend answer file.

So I opened the file within guit hub and got the following for the first 8 lines.

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
<!--Unattended Windows Installation File to Automatically Debloat Windows 10 & 11 During Installation-->
<!--Compiled by Memory's Tech Tips https://www.youtube.com/@memstechtips | https://memstechtips.blogspot.com/ -->
<!--Credit to Schneegans.de as the Base File was Generated with https://schneegans.de/windows/unattend-generator/ -->
<!--Credit to Chris Titus Tech as this file contains Tweaks from The Windows Utility https://github.com/ChrisTitusTech/winutil | https://christitus.com/windows-tool/ | https://www.youtube.com/@ChrisTitusTech/ -->
    <settings pass="offlineServicing"></settings>
    <settings pass="windowsPE">

When looking at the downloaded file with Notepad++ I got the following

<!DOCTYPE html>
<html
  lang="en"

  data-color-mode="auto" data-light-theme="light" data-dark-theme="dark"
  data-a11y-animated-images="system" data-a11y-link-underlines="true"
  >

  <head>
    <meta charset="utf-8">
  <link rel="dns-prefetch" href="https://github.githubassets.com">
  <link rel="dns-prefetch" href="https://avatars.githubusercontent.com">
  <link rel="dns-prefetch" href="https://github-cloud.s3.amazonaws.com">
  <link rel="dns-prefetch" href="https://user-images.githubusercontent.com/">
  <link rel="preconnect" href="https://github.githubassets.com" crossorigin>
  <link rel="preconnect" href="https://avatars.githubusercontent.com">

So for some reason its not saving the file as a true xml file more as a html page which displays the xml

Just copy and pasted the raw xml in to the autounattend.xml burning it and just waiting to see what it does......

Hmm just sitting there with the blue window (Not BSOD) and its just waiting.

It is connected to the network,

Might stick it on to a bootable usb and see if its any different.

Theridgeback commented 3 months ago

Oddley its now working.

Might be to do with an old version of ventoy