Windows 10: Surface Pro 4 Sysprep WinPE Help

Discus and support Surface Pro 4 Sysprep WinPE Help in Windows 10 Installation and Upgrade to solve the problem; Hi, im currently close to finishing sysprep on the surface pro 4. Im using winpe and StartNet.cmd to run a script, specifically the following script;... Discussion in 'Windows 10 Installation and Upgrade' started by rabwick, Feb 19, 2017.

  1. rabwick Win User

    Surface Pro 4 Sysprep WinPE Help


    Hi, im currently close to finishing sysprep on the surface pro 4. Im using winpe and StartNet.cmd to run a script, specifically the following script;
    @ECHO OFF
    :: Geovert
    :: 2016-03-09
    :: Deploy Windows 10

    wpeinit

    echo select disk 0 > diskpart%ID%.txt
    echo clean >> diskpart%ID%.txt
    echo convert gpt >> diskpart%ID%.txt
    echo create partition efi size=200 >> diskpart%ID%.txt
    echo assign letter="s" >> diskpart%ID%.txt
    echo format quick fs=FAT32 >> diskpart%ID%.txt
    echo create partition msr size=128 >> diskpart%ID%.txt
    echo create partition primary >> diskpart%ID%.txt
    echo assign letter="c" >> diskpart%ID%.txt
    echo format quick fs=NTFS >> diskpart%ID%.txt

    echo ** Executing diskpart script...
    diskpart /s diskpart%ID%.txt
    del diskpart%ID%.txt

    echo select disk 1 > diskpart%ID%.txt
    echo select partition 1 >> diskpart%ID%.txt
    echo assign letter="g" >> diskpart%ID%.txt

    echo ** Executing diskpart script...
    diskpart /s diskpart%ID%.txt
    del diskpart%ID%.txt

    dism /apply-image /imagefile:g:\efisys.wim /index:1 /ApplyDir:s:\
    dism /apply-image /imagefile:g:\OSimage.wim /index:1 /ApplyDir:c:\

    bcdedit /set {bootmgr} device partition=s:
    bcdedit /set {memdiag} device partition=s:

    bcdedit /set {default} device partition=c:
    bcdedit /set {default} osdevice partition=c:

    Bcdedit /set {FWbootmgr} displayorder {Bootmgr} /addfirst

    wpeutil shutdown from a USB with both my .wim files on the USB.
    Strangely, typing each command from the script in WinPE manually will work every time without fail, however when running the automated script with the same commands once it hits the line to assign letter 'c' the error is thrown: virtual service disk error: letter is already assigned.
    Once the script is typed manually at least once the automatic script will work fine after, however if i boot into gparted and remove all partitions or if i do a internal secure wipe with parted magic the script will not run automatically unless i type the commands manually again at least once, in which the automated script will run thereafter.
    I have noticed in gparted if i delete the partitions THEN make the drive ntfs i can then run the script automatically fine without having to type it manually. Im confused as to why typing the commands manually works but the script automatically does not even though they're the same commands.

    :)
     
    rabwick, Feb 19, 2017
    #1

  2. How can I make the SP4 pen work with my Acer laptop?

    Hi,

    Thanks for posting your query on Microsoft community.

    As per your query, I like to inform you that; Surface Pro 4 pen is not compatibility to work on Acer Aspire R13 R7-371t.



    I suggest you to refer to the below Microsoft help article related to Surface Pro 4 pen.

    Home of the Microsoft Surface Device Family | Surface

    Hope it helps, reply to us with the status of your issue. We will be happy to assist you.
     
    Santosh_Rai, Feb 19, 2017
    #2
  3. Riel Alc Win User
    Dual Boot Windows 10 and Windows 7

    Hi Tony,

    Surface Pro doesn't support Windows 7. It was designed for Windows 8 and up operating system.

    For more information about supported operating systems for Surface Pro, please check this
    article.

    Let us know if you have other concerns.
     
    Riel Alc, Feb 19, 2017
    #3
  4. lx07 Win User

    Surface Pro 4 Sysprep WinPE Help

    Don't you have to select the partition before assigning a letter?

    In your script you create the partitions but assign letters without selecting the partition. More like this perhaps..

    echo select disk 0 > diskpart%ID%.txt
    echo clean >> diskpart%ID%.txt
    echo convert gpt >> diskpart%ID%.txt
    echo create partition efi size=200 >> diskpart%ID%.txt
    echo select partition 1 >> diskpart%ID%.txt
    echo assign letter="s" >> diskpart%ID%.txt
    echo format quick fs=FAT32 >> diskpart%ID%.txt
    echo create partition msr size=128 >> diskpart%ID%.txt
    echo create partition primary >> diskpart%ID%.txt
    echo select partition 3 >> diskpart%ID%.txt
    echo assign letter="c" >> diskpart%ID%.txt
    echo format quick fs=NTFS >> diskpart%ID%.txt
     
  5. rabwick Win User
    Hmm i definately did not think of that, ill test this tomorow and return with an answer. With regard to that section of the script i got it from here:

    https://technet.microsoft.com/en-us/...(v=ws.10).aspx
     
    rabwick, Feb 19, 2017
    #5
  6. rabwick Win User
    Hi lx07, appreciate your help. Unforunately im still getting the same error. See my attached image

    Surface Pro 4 Sysprep WinPE Help [​IMG]

    Im really unsure why typing it manually works but the script does not unless i use gparted to make the disk NTFS before running the script, however typing the commands manually i dont need to use gparted at all...

    Is there something wrong with my script?
     
    rabwick, Feb 20, 2017
    #6
  7. lx07 Win User
    Not that I can see. Perhaps someone else can.

    I saw this old thread but it didn't seem to go anywhere. Diskpart error when imaging Win7 - Unattended Windows 7/Server 2008R2 - MSFN

    The idea wasn't bad though. Break up the script and put 'pause' in. Then perhaps you could put some diskpart "list volume", "list partition" "list disk" or the other diagnostic commands in your TechNet thread.

    It seems that C is already assigned when the script runs but I can't think why. Could be you need to select the volume and remove the letter.

    I was wrong about needing "select partition" by the way. When you create a partition it automatically gets focus so your script was OK in the first place.
     
    lx07, Apr 4, 2018
    #7
Thema:

Surface Pro 4 Sysprep WinPE Help

Loading...
  1. Surface Pro 4 Sysprep WinPE Help - Similar Threads - Surface Pro Sysprep

  2. Please Help Surface Pro 4

    in Windows 10 Ask Insider
    Please Help Surface Pro 4: I was doing a network reset on my surface 4 to get the wifi working but while I was doing that it said my PC ran into a problem with the :( face. I didn't think much of it and I just forced the computer to restart with the power button but when I booted it up I lost all wifi...
  3. Surface pro 4

    in Windows 10 Drivers and Hardware
    Surface pro 4: Will not allow use of mouse and it is showing red as usual. Restart and shutdown were done. Also can't delete numerous emails using shift. Help please. https://answers.microsoft.com/en-us/windows/forum/all/surface-pro-4/7672285a-3b80-40cd-951b-38b76f76bc2e
  4. HELP PLEASE! Surface pro 4.

    in Windows 10 Drivers and Hardware
    HELP PLEASE! Surface pro 4.: Hello. I'm having a huge problem with my surface pro 4. The bottom right of my screen got lifted. I've been reading about the subject and see people saying that the computer is going to explode and that I should take it to a Microsoft store, the thing is, I live in Argentina...
  5. Surface Pro 4

    in Windows Hello & Lockscreen
    Surface Pro 4: I have an issue where when I switch on my Surface Pro 4 it boots are far as the screen saver and shows at the bottom that it is in Flight Mode only, no wifi etc. It also states the camera not available and requests sign in with pin which it will not accept or my password will...
  6. Surface Pro 4

    in Windows 10 Updates and Activation
    Surface Pro 4: Updates available Surface Pro 4. 57858
  7. Surface Pro 4

    in Windows 10 Updates and Activation
    Surface Pro 4: Surface Pro 4......Intel Updates. 49834
  8. Surface Pro 4

    in Windows 10 Support
    Surface Pro 4: Anyone else think it will run cooler than the Surface Pro 3? Anyone experienced this? 28169
  9. Surface Pro 4 problems after sysprep and latest upgrade

    in Windows 10 Installation and Upgrade
    Surface Pro 4 problems after sysprep and latest upgrade: Okay here's the deal; I have seven of these to set up for users here at work, and we have several applications that need to be preconfigured and standardized for users. Thus the boot into Audit Mode for setup and Sysprepping with "CopyProfile=True" in my xml file. First...
  10. Surface Pro 4 Unattended Sysprep Issue

    in Windows 10 Installation and Upgrade
    Surface Pro 4 Unattended Sysprep Issue: Hi Guys, Im attempting create an unattended sysprep windows 10 installation (1607) for the Surface Pro 4 using a USB and WinPE. I dont have the current script with me but the process is roughly the following; Install win 10 - audit mode Generate an unattend.xml using...