Create media for automated unattended install of Windows 10  

Page 77 of 99 FirstFirst ... 2767757677787987 ... LastLast

  1. Posts : 17,661
    Windows 10 Pro
    Thread Starter
       #760

    prec said:
    I followed this step by step procedure up to the point where you have to launch the dism command, when I launch it the list of options for the dism command appears, as if I am wrong the syntax of the command.
    Sorry to tell you, but you had forgotten something. A user caused error. As your screenshot clearly shows, you did not quit DISKPART before entering the DISM command.

    See tutorial step 7.11, first paragraph, and the screenshot in said step. You had forgotten the DISKPART EXIT command, shown in screenshot as item #3.

    Kari
      My Computer


  2. Posts : 17,661
    Windows 10 Pro
    Thread Starter
       #761

    DustyClaus said:
    No OOBE, no new user creation etc. After deployment, it would be best if it felt like it was a regular restart, just new SID and randomized PC name.
    That would be impossible.

    To create a new SID, you must run sysprep with /generalize switch. When sysprep is run, it always causes the next normal boot (not booting to Audit Mode) to run OOBE.

    If no new user is created in answer file, it must be created in OOBE. In OOBE, you cant use any previously existing user accounts,

    Kari
      My Computer


  3. Posts : 2,667
    Windows 11 21H2 (22000.593)
       #762

    That makes it infinitely worse, yeah?

    As for advice - I'd really, REALLY advise you to get with @hsehestedt about this, with his methodology it gets it all on a single drive and single .ISO - but I suspect that using it by your collegaue may cause issues.

    I haven't done this in a while now, as I only keep images for myself, and having a multitude of images for a single PC is really not worth it.

    I will be doing it again soon, but quite possibly in a different manner, as a group of the PCs I'll be imaging will actually be under control of Pearson VUE people so I can't really make mods of those images, just have them ready in the even that a PC needs to be imaged. The other PCs I'll be imaging will be for + study classes, so I need to have set images with set software (versus always downloading and installing hundreds of MB from CompTIA repeatedly - on a 25 Mbit connection, no less). But that is for later. Right now they are broken down into components and being thoroughly cleaned.

    Kids need busy work, apparently.
      My Computers


  4. Posts : 10
    Windows 10
       #763

    Kari said:
    That would be impossible.

    To create a new SID, you must run sysprep with /generalize switch. When sysprep is run, it always causes the next normal boot (not booting to Audit Mode) to run OOBE.

    If no new user is created in answer file, it must be created in OOBE. In OOBE, you cant use any previously existing user accounts,

    Kari
    So
    Code:
    sysprep /generalize /shutdown /unattend:F:\Unattend.xml
    is not a valid command?

    There is a user already, I don't need to create a new one. After restart, specialize configuration pass runs and the configuration pass creates a new SID. Plus whatever I add into answers file under proper passes. Can`t I omit /oobe and any customization related to it? Everything is already set and my pre-sysprep user remains intact.

    Am I missing something here?
      My Computer


  5. Posts : 17,661
    Windows 10 Pro
    Thread Starter
       #764

    DustyClaus said:
    So
    Code:
    sysprep /generalize /shutdown /unattend:F:\Unattend.xml
    is not a valid command?
    No, it is not a valid command. You must tell sysprep to boot either to Audit Mode, or OOBE I have highlighted the missing swith in your command sample:

    Booting to Audit Mode:

    sysprep /generalize /audit /shutdown /unattend:F:\Unattend.xml

    Booting to OOBE:

    sysprep /generalize /oobe /shutdown /unattend:F:\Unattend.xml


    DustyClaus said:
    There is a user already, I don't need to create a new one.
    Yes, you need to create a new user, if it is not created in answer file. After sysprep, any existing user accounts can't be used in OOBE.


    DustyClaus said:
    Am I missing something here?
    Yes. You are missing the fact, that what you want to achieve is impossible, as I already told you.

    Kari
      My Computer


  6. Posts : 11
    W10
       #765

    One last question gents..Promise lol.

    I've slipstream'd some language packs in to my .wim MDT which are visable on the deployment with
    Code:
    wmic os get muilangages
    However, they don't show up as selectable languages in the settings.. Not the end of the world.
    My main issues is even after running sysprep the OOBE new user cannot select a language; presumable as the MDT unattend.xml specifys languages already.

    If I remove the en-AU or en-US from the Systemlocale, UI Language, fallback, and userlocale it will then display the languages after sysprep correctly.. However it means I have to select a language during the deployment which i'm trying to avoid..

    Is there way I can skip the the language selection so it goes into Administrator mode like normal without input..
    However after sysprep has been run it'll offer the users the language options.

    Will one removing one of those options allow me to pass through, but sysprep will then let the user decide?

    I did google before asking, and came across this..
    https://docs.microsoft.com/en-us/win...on-deployments

    But leaving their template blank brought up language errors.

    - - - Updated - - -

    As usual, I stumbled across the answer.
    It was the language selection list.. Needed to be force populated.

    Code:
    $OldList = Get-WinUserLanguageList
    $OldList.Add("de-DE")
    $OldList.Add("es-ES")
    $OldList.Add("fr-FR")
    $OldList.Add("it-IT")
    $OldList.Add("nl-NL")
    $OldList.Add("en-US")
    Set-WinUserLanguageList -LanguageList $OldList

    Also, for anybody that's interested found one very well hidden URL with a fix to that NVME / HDD issue.
    Not sure if it'd work on unattended, but MDT it works a treat!

    Was litteraly this one tiny hyperlink just called "KB" comment on reddit.
    WinPE reports nVMe as disk 1 and hDD as disk 0. Once in Windows 10, diskpart show the opposite : SCCM
      My Computer


  7. Posts : 17,661
    Windows 10 Pro
    Thread Starter
       #766

    Drwaffles90 said:
    My main issues is even after running sysprep the OOBE new user cannot select a language; presumable as the MDT unattend.xml specifys languages already.
    Drwaffles90 said:
    As usual, I stumbled across the answer.
    It was the language selection list.. Needed to be force populated.
    I have relatively simple, yet totally different approach. This works both for deployment images done as shown in this tutorial, and for MDT deployments.

    I always use British English image as my "base" image and language. First, I customize this EN-GB W10 on a reference VM, sysprep, shut down and capture WIM. I then import this WIM image to MDT, run LTI deployment on another reference VM, and when done, run sysprep once more on that VM, restarting to OOBE, this time WITHOUT /generalize switch.

    When OOBE starts showing region and language selection screen, I press SHIFT + F10. It opens Command Prompt, and activates -key shortcuts. Typing start ms-settings: in Command Prompt and hitting ENTER, I open the Settings app and install language packs required.

    Coming from a bilingual family in a bilingual country, I want my images to include, in addition to "base" EN-GB, my both native languages Finnish (Suomi) and Swedish (Svenska), as well as the language of my adopted home country Germany (Deutsch):
    Create media for automated unattended install of Windows 10-language-packs-installed.jpg
    (Click to enlarge.)

    In OOBE, after opening Settings, Command Prompt disappears on the background. I ALT + TAB it back to foreground, and enter command %windir%\system32\sysprep\sysprep.exe /oobe /shutdown.

    Now capture the image.

    When this image is later deployed, user gets this in OOBE:
    Create media for automated unattended install of Windows 10-oobe-language-selection.jpg

    If doing this without MDT, when finished customizing image on reference machine, use /reboot switch in sysprep, and add language packs in OOBE as told above.

    Related tutorial: Microsoft Deployment Toolkit - Easy and Fast Windows Deployment

    Kari
      My Computer


  8. Posts : 2,667
    Windows 11 21H2 (22000.593)
       #767

    This should be a mini tutorial all on its own!
      My Computers


  9. Posts : 10
    windows 10 pro
       #768

    hi kari , first i want to say thank you so much for your big effort i learned alot from you. In addition please bear with my low English

    so im having a small problem, i followed all your instructions word by word letter by letter but i still got a crazy problem
    the problem is when i boot from USB that contain customized windows + autounattend.xml file it show the "select operating system you want to install" and its Blank literally just Blank page and i don't know why this page even show.

    btw if i use the customized windows without the autounattend it works fine
    and if i use the autounattend with official windows without customizations it also works fine
    but if both customized windows and the autounattend file it gets broken and i got the weird Blank Page

    Windows 10 Pro 21H1

    i attached the image of my problem + the xml file
    Last edited by captobaid; 11 Aug 2021 at 03:20.
      My Computer


  10. Posts : 4,187
    Windows 11 Pro, 22H2
       #769

    @captobaid, I hope you don't mind my jumping in. I'm sure that Kari will also respond if he has additional thoughts on this, but I thought that I would just try to help in the meantime.

    First, I'm not seeing the attachments. Maybe you could try attaching them again. In the meantime, it's possible that the problem you are seeing is related to missing "Name' and "Description" metadata for the Windows editions in your image. I've seen the same problem you are having if any of these are missing. The image below illustrates what these items look like:

    Create media for automated unattended install of Windows 10-picture1.jpg

    To check your ISO image to see if these are missing, follow these steps:

    Mount your ISO image by double-clicking it. Note the drive letter assigned to it.

    Open your "Deployment and Imaging Tools Environment" command prompt as Administrator.

    Run the command below, but substitute H: with the letter you noted above.
    Code:
    dism /Get-WimInfo /WimFile:H:\Sources\install.wim
    You will see output similar to this:


    C:\>dism /Get-WimInfo /WimFile:H:\Sources\install.wim

    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1

    Details for image : h:\Sources\install.wim

    Index : 1
    Name : Windows 10 Home
    Description : Windows 10 Home
    Size : 15,153,297,277 bytes

    Index : 2
    Name : Windows 10 Home N
    Description : Windows 10 Home N
    Size : 14,378,651,138 bytes

    Index : 3
    Name : Windows 10 Home Single Language
    Description : Windows 10 Home Single Language
    Size : 15,153,339,379 bytes

    Index : 4
    Name : Windows 10 Education
    Description : Windows 10 Education
    Size : 15,409,298,336 bytes

    Index : 5
    Name : Windows 10 Education N
    Description : Windows 10 Education N
    Size : 14,636,200,979 bytes

    Index : 6
    Name : Windows 10 Pro
    Description : Windows 10 Pro
    Size : 15,410,868,935 bytes

    Index : 7
    Name : Windows 10 Pro N
    Description : Windows 10 Pro N
    Size : 14,628,288,446 bytes

    Index : 8
    Name : Windows 10 Pro Education
    Description : Windows 10 Pro Education
    Size : 15,406,824,208 bytes

    Index : 9
    Name : Windows 10 Pro Education N
    Description : Windows 10 Pro Education N
    Size : 14,622,161,918 bytes

    Index : 10
    Name : Windows 10 Pro for Workstations
    Description : Windows 10 Pro for Workstations
    Size : 15,407,547,225 bytes

    Index : 11
    Name : Windows 10 Pro N for Workstations
    Description : Windows 10 Pro N for Workstations
    Size : 14,623,176,201 bytes

    Index : 12
    Name : Windows 10 Pro BIOS Sysprep
    Description : Windows 10 Pro BIOS Sysprep
    Size : 17,667,561,094 bytes

    Index : 13
    Name : Windows 10 Pro UEFI Sysprep
    Description : Windows 10 Pro UEFI Sysprep
    Size : 17,629,876,376 bytes

    Index : 14
    Name : Windows 10 Pro UEFI Sysprep with Drivers
    Description : Includes Drivers for All Home PCs
    Size : 30,210,108,847 bytes

    The operation completed successfully.
    --------------
    For each edition of Windows, make sure that both a "Name" and "Description" is shown.

    If you are missing any of the name or description fields, let me know and I will show you how to fix this.
      My Computers


 

Tutorial Categories

Create media for automated unattended install of Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 14:34.
Find Us




Windows 10 Forums