Windows 10: Create media for automated unattended install of Windows 10  

Page 7 of 12 FirstFirst ... 56789 ... LastLast
  1.    04 May 2018 #60

    for Janothin:

    here is my tested and working part for your "wipe" problem.
    It is configured for UEFI and GPT. Feel free to share and use it!

    Best regards

    Peter


    <DiskConfiguration>
    <Disk wcm:action="add">
    <CreatePartitions>
    <CreatePartition wcm:action="add">
    <Order>1</Order>
    <Size>450</Size>
    <Type>Primary</Type>
    </CreatePartition>
    <CreatePartition wcm:action="add">
    <Order>2</Order>
    <Size>100</Size>
    <Type>EFI</Type>
    </CreatePartition>
    <CreatePartition wcm:action="add">
    <Order>3</Order>
    <Size>16</Size>
    <Type>MSR</Type>
    </CreatePartition>
    <CreatePartition wcm:action="add">
    <Extend>true</Extend>
    <Order>4</Order>
    <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>FAT32</Format>
    <Label>System</Label>
    <Order>2</Order>
    <PartitionID>2</PartitionID>
    </ModifyPartition>
    <ModifyPartition wcm:action="add">
    <Order>3</Order>
    <PartitionID>3</PartitionID>
    </ModifyPartition>
    <ModifyPartition wcm:action="add">
    <Format>NTFS</Format>
    <Label>Windows</Label>
    <Letter>C</Letter>
    <Order>4</Order>
    <PartitionID>4</PartitionID>
    </ModifyPartition>
    </ModifyPartitions>
    <DiskID>0</DiskID>
    <WillWipeDisk>true</WillWipeDisk>
    </Disk>
    </DiskConfiguration>
      My ComputerSystem Spec

  2.    04 May 2018 #61

    Question about the W10 install-product-key:

    I will (re-)build a bunch of DELL Laptops and Desktops. All machines have a valid W10 pro licence (updated from Win7)
    Is it nesseccery to enter the W10 install-product-key to the autounattend.xml or any chance to leave it "blank", because the digital licence will activate the machines.

    Best regards

    Peter
      My ComputerSystem Spec

  3. Kari's Avatar
    Posts : 14,813
    Windows 10 Pro
    Thread Starter
       04 May 2018 #62

    Janothin said: View Post
    Hello everyone, I'm having a issue where the unattended partition section does not wipe the entire drive, and leaves the partitions. Also, by default we have secure boot and using dism to put the installer on a flash drive prompts me that there is no signature. Does anyone have any suggestions?

    The hard disk will be wiped empty if WillWipeDisk value is set to true (tutorial step 3.11).

    About signature issue, I have not a a clue what you mean. If you follow this tutorial step by step, when you have finished capturing your customized install.wim, everything needed to create a bootable USB drive is in folder ISO_Files (or whatever folder you selected in step 2.2).

    I use then my own PowerShell script to create bootable USB from ISO_Files folder as shown in this tutorial: PowerShell Scripting - Create USB Install Media for Windows 10 - Windows 10 Tutorials


    peter58ha said: View Post
    Question about the W10 install-product-key:

    I will (re-)build a bunch of DELL Laptops and Desktops. All machines have a valid W10 pro licence (updated from Win7)
    Is it nesseccery to enter the W10 install-product-key to the autounattend.xml or any chance to leave it "blank", because the digital licence will activate the machines.
    If you want to make Windows Setup completely automatic, "hands-free", then yes, a generic key is required. If not given, setup will stop asking the key.

    Generic keys are not activation keys, they are only used to skip product key prompt in Windows Setup, and in case of install media containing multiple editions, to select edition. Activation will then be based on existing digital license, or must be done using a product or volume licensing key.

    Kari
      My ComputerSystem Spec

  4.    05 May 2018 #63

    Hello Kari,

    installing W10 with the "install-key-only" works fine. Windows is activated after the setup process.

    Im still running in another problem:
    after finishing the Audit-Mode and running the sysprep command:

    C:\Windows\System32\Sysprep\sysprep.exe /generalize /oobe


    the window "Sysprep is working... appers and is running without result for more than 3 hours...
    What to do in this case?

    Best regards

    Peter
      My ComputerSystem Spec

  5.    06 May 2018 #64

    got it up and running!
    thx to Kari!

    Best regards

    Peter
      My ComputerSystem Spec

  6.    06 May 2018 #65

    @Kari...

    one more thing for autounattend.xml (or unaddend.xml, Im not sure):

    1) in Windows 7 sources folder was an extra folder named $OEM$ plus a couple of sub-folders like this:

    \$oem$\$$\Setup\scripts

    scripts folder contains:
    - Certificates folder
    - MultiBrand_OEM's folder
    - OOBE.cmd batch-file

    the OOBE.cmd is very tricky: it detects the vendor/brand, inserts the cert from cetificates folder and uses the correct OEM:SLP key for the Win 7 version you like to install. I only copied the relevant script parts for "DELL" and blurred the OEM:SLP keys ;-)

    Is there a chance to use this script (additional?) for W10 installation completly hands-free?

    OOBE.cmd contains:

    @echo off

    ::setup parameters::
    SET RQR=REG QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "EditionID"
    SET INL=IF NOT ERRORLEVEL 1

    REM: W10 returns "Professional", so can insert the "generic install-only-W10-key" after detection?

    ::manufacturer brand check/set::
    WMIC CSPRODUCT | findstr /I "XPS" >nul
    %I:NL% SET MAN=DELLXPS&goto :dell
    WMIC BASEBOARD | findstr /I "DELL" >nul
    %INL% SET MAN=DELL&goto :dell
    WMIC BIOS | findstr /I "DELL" >nul
    %INL% SET MAN=DELL&goto :dell
    WMIC COMPUTERSYSTEM | findstr /I "DELL" >nul
    %INL% SET MAN=DELL&goto :dell
    WMIC CSPRODUCT | findstr /I "DELL" >nul
    %INL% SET MAN=DELL&goto :dell

    :dell
    %RQR% | findstr /I "STARTER" && %INL% SET PIDKEY=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
    %RQR% | findstr /I "HOMEBASIC" && %INL% SET PIDKEY=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
    %RQR% | findstr /I "HOMEPREMIUM" && %INL% SET PIDKEY=TX9XD-98N7V-6WMQ6-BX7FG-H8Q99
    %RQR% | findstr /I "PROFESSIONAL" && %INL% SET PIDKEY=VK7JG-NPHTM-C97JM-9MPGT-3V66T
    %RQR% | findstr /I "ULTIMATE" && %INL% SET PIDKEY=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
    goto :FINISH

    ::complete process for normal activation::
    :FINISH
    ::manufacturer brand logos/theme::
    IF EXIST "%windir%\system32\oobe\info\*.*" DEL /F /Q "%windir%\system32\oobe\info\*.*" >nul
    IF EXIST %windir%\system32\oobe\info\backgrounds RD /S /Q %windir%\system32\oobe\info\backgrounds >nul

    IF EXIST %windir%\Setup\scripts\MultiBrand_OEM's\DEFAULT\Theme_Default.txt (
    DEL /F /Q %windir%\Setup\scripts\MultiBrand_OEM's\DEFAULT\Theme_Default.txt >nul
    goto :CUSTOM
    )

    goto :NORMAL

    :NORMAL
    IF NOT EXIST %windir%\system32\oobe\info\backgrounds MD %windir%\system32\oobe\info\backgrounds >nul
    IF EXIST %windir%\Setup\scripts\MultiBrand_OEM's\%MAN%\Backgrounds MOVE /Y "%windir%\Setup\scripts\MultiBrand_OEM's\%MAN%\Backgrounds\*.*" %windir%\system32\oobe\info\backgrounds >nul

    IF EXIST %windir%\Setup\scripts\MultiBrand_OEM's\%MAN% (
    MOVE /Y "%windir%\Setup\scripts\MultiBrand_OEM's\%MAN%\*.*" %windir%\system32\oobe\info >nul
    start /w regedit /s %windir%\system32\oobe\info\%MAN%.reg >nul
    RD /S /Q %windir%\Setup\scripts\MultiBrand_OEM's >nul
    )

    goto :CONTINUE

    :CUSTOM
    IF NOT EXIST %windir%\system32\oobe\info\backgrounds MD %windir%\system32\oobe\info\backgrounds >nul
    IF EXIST %windir%\Setup\scripts\MultiBrand_OEM's\DEFAULT\Backgrounds MOVE /Y "%windir%\Setup\scripts\MultiBrand_OEM's\DEFAULT\\Backgrounds\*.*" %windir%\system32\oobe\info\backgrounds >nul

    IF EXIST %windir%\Setup\scripts\MultiBrand_OEM's\DEFAULT (
    MOVE /Y "%windir%\Setup\scripts\MultiBrand_OEM's\DEFAULT\*.*" %windir%\system32\oobe\info >nul
    start /w regedit /s %windir%\system32\oobe\info\DEFAULT.reg >nul
    RD /S /Q %windir%\Setup\scripts\MultiBrand_OEM's >nul
    )

    :CONTINUE
    IF EXIST %windir%\system32\oobe\info\USER.bmp (
    Attrib -h %systemdrive%\ProgramData >nul
    DEL /F /Q "%systemdrive%\ProgramData\Microsoft\User Account Pictures\user.bmp" >nul
    COPY /Y %windir%\system32\oobe\info\USER.bmp "%systemdrive%\ProgramData\Microsoft\User Account Pictures\user.bmp" >nul
    Attrib +h %systemdrive%\ProgramData >nul
    )

    IF EXIST %windir%\system32\oobe\info\WALLPAPER.jpg MOVE /Y %windir%\system32\oobe\info\WALLPAPER.jpg %windir%\Web\Wallpaper >nul
    IF EXIST %windir%\system32\oobe\info\Brand.theme MOVE /Y %windir%\system32\oobe\info\Brand.theme %windir%\Resources\Themes >nul

    IF EXIST %windir%\system32\oobe\info\%MAN%.reg (
    cd /d "%windir%\system32\oobe\info" >nul
    for %%i in (*.reg) do if /I not "%%i"=="%MAN%.reg" DEL /F /Q "%%i" >nul
    )

    ::certs::
    IF EXIST %windir%\Setup\scripts\Certificates\%MAN%.xrm-ms (
    cscript //nologo %windir%\system32\slmgr.vbs -ilc %windir%\Setup\scripts\Certificates\%MAN%.xrm-ms >nul
    RD /S /Q %windir%\Setup\scripts\Certificates >nul
    )

    ::serial::
    cscript //nologo %windir%\system32\slmgr.vbs -ipk %PIDKEY% >nul

    ::all processing finished, delete used files, and EXIT::
    :CLEANUP
    IF EXIST %windir%\Setup\scripts RD /S /Q %windir%\Setup\scripts >nul
    DEL /F /Q %0% >nul


    Feel free to drop me a line if you need the complete content of the $OEM" folder and the OOBE.cm script

    Best regards

    Peter
    Last edited by peter58ha; 06 May 2018 at 09:41.
      My ComputerSystem Spec

  7. Kari's Avatar
    Posts : 14,813
    Windows 10 Pro
    Thread Starter
       06 May 2018 #66

    peter58ha said: View Post
    Is there a chance to use this script (additional?) for W10 installation completly hands-free?
    Why on earth would you like to do that?
      My ComputerSystem Spec

  8.    06 May 2018 #67

    Kari said: View Post
    Why on earth would you like to do that?
    The goal is, to have the correct vendor theme installed automatically. Right now, with your well working script, only one theme is always installed. And I dont want a DELL XPS theme on an Toshiba or HP machine... ;-)
      My ComputerSystem Spec

  9. slicendice's Avatar
    Posts : 3,443
    Windows 10 Pro x64 v1803 Build 17134.228 (Branch: RS4 Release Preview)
       06 May 2018 #68

    peter58ha said: View Post
    The goal is, to have the correct vendor theme installed automatically. Right now, with your well working script, only one theme is always installed. And I dont want a DELL XPS theme on an Toshiba or HP machine... ;-)
    This makes sense as an universal script, that contains it all. :)
      My ComputersSystem Spec

  10.    06 May 2018 #69

    @slicendice...

    absolutely!
    I used this script to (re-)install all different kinds of laptops and desktops from different vendors. Works like a charme and with the OEM:SLP keys and the digital cert, all machines are activated (when a valid SLIC 2.1 found at BIOS). Safes lot of time...
      My ComputerSystem Spec


 
Page 7 of 12 FirstFirst ... 56789 ... LastLast

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 Xbox Windows Phone


Related Threads
The way Windows operating system is delivered and installed has changed quite a lot from days when Windows 3.0 was delivered on 6 floppy disks. To install, you booted PC from floppy 1, which in its turn asked you to eject it and insert floppy 2 to...
yesterday, 4 august 0400 south african time , my computer must have loaded trusteer rapport , made a system restore point before running it and my system time zone was set to cuiaba, brazil . i tried to go back to a pre trusteer rapport system...
Is an unattended upgrade possible? in Installation and Upgrade
Hi, We've got hundreds of computers running Win 7 Pro that we'd like to upgrade to Windows 10. Is there a way of running the setup with an answer file? Anywhere I can get example answer files from? I don't really care what the settings...
I have been creating generalized images for deployment in an enterprise scenario. In order to do so, I've installed Windows 10, booted into audit mode from the Welcome Screen, then customized Windows. After this, I can run sysprep with an unattend...
I had a run on the preview 10240 by unattended installation. what I wanted to see is if I could create a golden image on one very old PC (HP Elitebook 6930p), sysprep it and afterwards apply that image by autoupdating the drivers to my Dell...
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 16:46.
Find Us