Customize Windows 10 Image in Audit Mode with Sysprep  

Page 42 of 70 FirstFirst ... 32404142434452 ... LastLast

  1. Posts : 36
    Windows 10 Pro x64
       #410

    Thanks for confirming that relocating Program Data folders is a BAD idea, Kari!

    I just completed a customised run on a new VM in Hyper-V and after running SysPrep I noticed that the Recent Items list was still populated with the stuff I'd been using whilst editing the answer file, etc. Furthermore, the same items were present in each of the user accounts created as per the answer file (which I can see will happen as that's the point of copying the Default Userr profile).

    I thought all this stuff got purged by SysPrep? Guess I just have to go back and clean this before SysPrepping, eh?

    Good idea to run CCleaner before SysPrep?

    Also, I'd like to uninstall WADK before SysPrepping as it won't be required on any of the target PCs. If I do this, will I still be able to run SysPrep?

    Tolqua.
      My Computer


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

    Tolqua said:
    I thought all this stuff got purged by SysPrep? Guess I just have to go back and clean this before SysPrepping, eh?
    You didn't read this note at the beginning of Part Six in this tutorial?

    Note   Note
    Please read before proceeding:

    Sysprepping with the Generalize switch and CopyProfile=TRUE has a small issue or rather a small inconvenience: it leaves the last used user folders (#1 in screenshot below) and recent files (#2) of built-in admin to end user's Quick Access:


    A very simple and fast workaround is to add this batch file to built-in admin's %appdata%\Microsoft\Windows\Start Menu\Programs\Startup folder in Audit Mode before running Sysprep. Name it as you want to using the .bat extension, I named it RunOnce.bat:
    Code:
    echo Y | del %appdata%\microsoft\windows\recent\automaticdestinations\*
    del %0
    The batch file explained:
    • echo Y | = Pipes (sends) a letter Y to the command given after the Pipe (|) character
    • del %appdata%\microsoft\windows\recent\automaticdestinations\* = Resets the Quick Access to defaults. This command expects the user to enter either Y for Yes or N for No. As the Y will be in this case piped, user interaction is not needed but instead the Y will be entered automatically
    • del %0 = Deletes the batch file itself after it has been run. Leaving this away, not deleting the batch file, would reset the Quick Access every time the user signs in

    File is now saved in built-in admin's Startup folder, which will be copied among other customizations to Default User Profile when you sysprep with CopyProfile set TRUE using the /generalize switch.

    Now whenever a new user account will be created, be it the initial user created in OOBE or any user created anytime later, the batch will be run once for each user resetting the Quick Access to defaults and then removing itself.

    Other than this minor inconvenience I have not found any whatsoever issues in Audit Mode, Sysprep, generalizing and CopyProfile functions.



    Tolqua said:
    Also, I'd like to uninstall WADK before SysPrepping as it won't be required on any of the target PCs. If I do this, will I still be able to run SysPrep?
    You can delete it, Sysprep does not need anything but native Windows.
      My Computer


  3. Posts : 36
    Windows 10 Pro x64
       #412

    Actually, I did read that part, but it refers to items created during the SysPrep procedure itself and the only items I can see replicated in the Recent Items list are ones I recognise from activity prior to running SysPrep. I figured that this glitch had been sorted out subsequently and was no longer relevant in recent builds of Windows 10.

    I didn't bother cleaning the items because I thought they would be purged as part of the SysPrep procedure.

    Having now reverted to a pre-Sysprep point on my VM and removed the items from the Recent Items list (I did run CCleaner and it seems to have caused no problems), it appears that the items referred to in the article are no longer left behind after SysPrepping so the batch file isn't needed any more. After running SysPrep the Recent Items list was empty with no additional items left over from the procedure itself, so seems my assumption was correct. Have you not found this to be the case, Kari?

    I have noticed some other minor settings that don't appear to have held, though:

    The page size in Page Settings used in Notepad and Wordpad (are these common to both apps?) defaults to US 'Letter' which is annoying and changing it to A4 doesn't seem to stick on either side of SysPrepping. I haven't installed Office at this point, but assume this would be different in this respect.

    A couple of the Desktop settings, 'Auto arrange icons' and 'Sort by, Date' appear to revert to defaults after SysPrepping, too which is a pity, but the most annoying thing is the inability to save any customisation of the Task bar - The Windows Store has to be deleted every time for every user, but the inability to add custom icons to the Default user profile is a much bigger limitation. Is there really no way to customise this within the vast array of customisations available when creating answer files?

    Tolqua.
    Last edited by Tolqua; 19 Jul 2016 at 07:52.
      My Computer


  4. Posts : 5
    Windows 10
       #413

    This didn't work for me..
    Everytime I try this i get a BSOD and afterwards a never ending Boot-Loop and the message "The installation could not be completed. Start the installation again to install Windows on this computer." (or something like this, I am not a native, sorry).
    I tried it multiple times and did not run my Powershell Scripts and regs to delete the Apps, disable OneDrive and so on in case this would cause the issue, but it didn't really help.
    So basically after I start Sysprep through command in CMD after finishing editing and savin the xml file it works for a few seconds and all seems to go well and suddenly the BSOD appears.
    I updated Drivers and there shouldn't be any Hardware caused errors.
    Has anyone a idea how to solve this problem?
    I would like to create an image of the finished PC with customized Profile to install it on four PCs of the same kind.
      My Computer


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

    DerPwny said:
    This didn't work for me..
    Everytime I try this i get a BSOD and afterwards a never ending Boot-Loop and the message "The installation could not be completed. Start the installation again to install Windows on this computer." (or something like this, I am not a native, sorry).
    I tried it multiple times and did not run my Powershell Scripts and regs to delete the Apps, disable OneDrive and so on in case this would cause the issue, but it didn't really help.
    So basically after I start Sysprep through command in CMD after finishing editing and savin the xml file it works for a few seconds and all seems to go well and suddenly the BSOD appears.
    I updated Drivers and there shouldn't be any Hardware caused errors.
    Has anyone a idea how to solve this problem?
    I would like to create an image of the finished PC with customized Profile to install it on four PCs of the same kind.
    More information needed. What kind of hardware? What Windows edition and bit version? What customizations done before sysprepping? Have you tried creating the image in a virtual machine instead (recommended method: use Hyper-V vm to install Windows and cutomize, sysprep the vm and shutdown, capture the image and deploy).

    You could start by zipping and posting the answer file you used.
      My Computer


  6. Posts : 5
    Windows 10
       #415

    HP ProDesk 400 G2 Desktop-Mini-PC


    • Windows 10 Pro 64
    • Intel® Core™ i3-6100T Processor
    • Intel® HD Graphics 530 graphicscard
    • 8 GB SDRAM
    • 256 GB SATA SSD


    I followed your steps, I set copy profile to "true" and just changed the PC name, OEM name, Registered Owner and Support details.
    Unfortunately the PC is pretty much useless after a failed Sysprep, after changing several registry keys I can log on but most changes after some installations are gone. But the wim file I used is the same as it was for you the install.wim from my installation media.
    I realized I used a power unit from G1 and not the one for the G2 so I tried it with the right one and another G2 just to make sure, but there was no difference.
    A colleague who send me the link to this guide succeeded with sysprepping and so on with the same PC model.
    We tried it together he watched if I did anything different than him, but in fact we did the same and it still doesn't work.
    I fail to spot the error, as the hardware can't be the problem and your guide to install it seems to work well (btw thanks for the thread), but neither him or me managed to get this to work, though it worked before.
    If you have any idea what might cause this, your help would be highly appreciated.
      My Computer


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

    DerPwny said:
    ... after changing several registry keys I can log on ....
    Does the quote above mean you can sign in to desktop even after failed sysprep? If so, please zip the C:\Windows\System32\Sysprep\Panther\setupact.log file and post it here, together with the answer file you used.

    Sad fact: an overwhelming majority of BSODs when sysprepping are caused by hardware failure.
      My Computer


  8. Posts : 5
    Windows 10
       #417

    I might do that tomorrow.
    The PCs have to be ready soon, I guess, I'll just have to everything all over again for every PC *sigh*
    But maybe it will help somebody with the same problem.
    Maybe, I found more unresolved threads from HP customers with the same issue.
    But still we had 2 PCs where it worked and I have 5 now and tried it on every one but I can't get it to work.
    Well I will investigate further tomorrow and give you updates on my BSOD problem and logs.
      My Computer


  9. Posts : 17,661
    Windows 10 Pro
    Thread Starter
       #418

    DerPwny said:
    Maybe, I found more unresolved threads from HP customers with the same issue.
    Es tut mir leid. Hopefully you get to log file, that could help us to analyze this.
      My Computer


  10. Posts : 36
    Windows 10 Pro x64
       #419

    Hi Kari.

    Any chance of a response to my post (#412) above?

    Tolqua.
      My Computer


 

Tutorial Categories

Customize Windows 10 Image in Audit Mode with Sysprep 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 17:26.
Find Us




Windows 10 Forums