Windows 10: Need partitioning script for unattended install

Discus and support Need partitioning script for unattended install in Windows 10 Installation and Upgrade to solve the problem; Hi I already have a working answer file but it works with wiping/formatting the whole disk. Can't figure out how to do this without wiping the disk, it... Discussion in 'Windows 10 Installation and Upgrade' started by kylprq, Aug 1, 2021.

  1. kylprq Win User

    Need partitioning script for unattended install


    Hi I already have a working answer file but it works with wiping/formatting the whole disk. Can't figure out how to do this without wiping the disk, it would be useful for friends[remote ones] who like to clean install without interaction. (if one has important files on a single partition or multiple important partitions) so a script for: 1- Looking for multiple partitions a1- if one partition is present [only C:] then > a?- need to delete existing OS-related files like Program Files (x86)/Program Files/Program Data/Windows/?, boot records, etc because we want to delete only windows files and other OS-related partitions [both for GPT/MBR disks] (so we won't delete Users[Downloads/Desktop, etc] or custom folders) a2- Look for empty space ie. 40-80?gb, if present > a3- make new partition(s) to install windows. b1- if multiple partitions are present [C:/D:/?:] then > b2- Look for windows Partition and other OS-related partitions [both for GPT/MBR disks] to delete them > b3- make new new partition(s) to install windows. c- set(find) identifiers for created partitions for ImageInstall > OSImage > InstallTo step 2- where to place this script? 3- adding to the answer file is necessary? it can be self/auto executed?

    :)
     
    kylprq, Aug 1, 2021
    #1
  2. W1zzard Win User

    W7 Hard drive partition issue

    to get rid of that 100 meg windows partition that setup creates for you on a new install on a blank hdd:

    - press shift+f10 when on the partition management screen in setup <-- this opens a command prompt
    - diskpart <-- start the windows command line partition management tool
    - list disk <--- list the installed hdds in this computer for the next step
    - select disk 0 <- might have to replace 0 with the number of the correct disk
    - clean <-- this will erase all data on the disk you selected one step up- dont use the wrong disk!
    - create partition primary <- creates a primary partition taking up all space on the drive, adjust the command if necessary
    - exit, exit to exit diskpart and the command prompt
    - click refresh in partition manager and select your newly created partition and install to that
     
    W1zzard, Aug 1, 2021
    #2
  3. Kari Win User
    Create media for automated unattended install of Windows 10  


    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


    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, Aug 1, 2021
    #3
  4. Need partitioning script for unattended install

    how to add unattended program to windows iso

    That script is run automatically by Windows after installation completes but before the logon screen appears.

    See here for Microsoft documentation on this script:

    https://docs.microsoft.com/en-us/win...-windows-setup

    To use that script, follow the tutorial from Kari found here:

    Create media for automated unattended install of Windows 10

    Just before you get to the point in the tutorial where you run Sysprep, place the setupcomplete.cmd script in the %WINDIR%\Setup\Scripts\ folder.

    The next steps would be sysprep and image the system as noted in the tutorial. When you then install Windows to a system or VM using that image, the setupcomplete.cmd script will be run before the logon screen is presented after installation.

    EDIT: I thought that this sounded familiar. I responded to your question regarding this yesterday in this thread:

    (1) how to add unattended program to windows iso - Windows 10 Forums (tenforums.com)

    Did that information not help? Are you running into any specific issues that you need further help with or clarification on any of the steps?
     
    hsehestedt, Aug 1, 2021
    #4
Thema:

Need partitioning script for unattended install

Loading...
  1. Need partitioning script for unattended install - Similar Threads - Need partitioning script

  2. Install script

    in Windows 10 Gaming
    Install script: I am trying to install an application on a computer using powershell. Basically just running a script that will install the program, require a reboot, and be able to be accessed. I've done research on it and all I can find is going through powershell, changing directories to...
  3. Install script

    in Windows 10 Software and Apps
    Install script: I am trying to install an application on a computer using powershell. Basically just running a script that will install the program, require a reboot, and be able to be accessed. I've done research on it and all I can find is going through powershell, changing directories to...
  4. Correct way to run scripts in automated, unattended Windows installation

    in Windows 10 Installation and Upgrade
    Correct way to run scripts in automated, unattended Windows installation: I have some custom scripts that I have written to customise Windows 10 such as removing bloatware and setting file explorer options via Registry Editor that I use to apply to all users and/or the system. I have created a `autounattend.xml` Answer File with some simple...
  5. Unattended installation with a Dell Optiplex computer

    in Windows 10 Updates and Activation
    Unattended installation with a Dell Optiplex computer: Hi there, I'm trying to figure out how to complete an unattended installation of Windows 10 on various Dell Optiplex systems. We do a fresh install of each system when it arrives and as Dell ship computers with a BIOS string and pre-installed OEM image with no license key...
  6. OOBE Unattended install

    in Windows 10 Ask Insider
    OOBE Unattended install: I am trying to be able to quickly provision machines with windows pre-installed. I created the below answer file and named it unattend.xml. I put this on the root of a blank flash drive and booted, it did not grab the file. Did i miss something? <?xml version="1.0"...
  7. Win7 to Win10 Upgrade, using Unattended/Script Method

    in Windows 10 Installation and Upgrade
    Win7 to Win10 Upgrade, using Unattended/Script Method: Hi All, Looking to push out Win10 upgrades to 50+ machines (remotely using PDQ, or Ghost Solutions Suite) so an XML or script would help, I'm just simply trying to find out what is the best way to do this ? I have been using the Mediacreationtool APP, from Microsoft, for...
  8. Unattended install question

    in Windows 10 Installation and Upgrade
    Unattended install question: Unattended install of custom install.wim working well except for a few things. In unattend.xml, I have <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE> but I was still asked to connect to Wireless. I was also asked to choose Privacy settings for my device. Is there an...
  9. Problems with unattended Windows 10 installation.

    in Windows 10 Installation and Upgrade
    Problems with unattended Windows 10 installation.: I have problem to install Windows 10 with an unattended xml file. Following error message appear "No images are available." Below the text is the content of my unattended xml file. I have also attached an picture about error message. Can someone help me with this problem?...
  10. Issue with "CopyProfile" option in Unattended Install

    in Windows 10 Support
    Issue with "CopyProfile" option in Unattended Install: 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 file (generalized mode) and...