Windows 10: Sysprep removes all SQL logins

Discus and support Sysprep removes all SQL logins in Windows 10 Installation and Upgrade to solve the problem; I have two instances running on SQL Server 2017 - SQLEXPRESS and MYINSTANCEI've added a few users to MYINSTANCEHowever when I run Sysprep on the... Discussion in 'Windows 10 Installation and Upgrade' started by Colm de Cleir, Sep 6, 2021.

  1. Sysprep removes all SQL logins


    I have two instances running on SQL Server 2017 - SQLEXPRESS and MYINSTANCEI've added a few users to MYINSTANCEHowever when I run Sysprep on the device, it deletes all but sa and Builtin\Users.It appears to leave the users on SQLEXPRESS alone however.How can I prevent this removal?Here is my unattend file: some redacted for security<?xml version="1.0" encoding="utf-8"?><unattend xmlns="urn:schemas-microsoft-com:unattend"> <servicing> <package action="configure"> <assemblyIdentity name="Microsoft-Windows-EnterpriseSEditi

    :)
     
    Colm de Cleir, Sep 6, 2021
    #1
  2. John Ado Win User

    SysPrep Advice

    Hi Joseph,

    The topic that you raised is beyond the scope of support for this site which focuses more on home and personal end users. Here's what I found about SysPrep:


    However these are old articles and the process may have been changed already. You may re-post this question in

    TechNet Forums
    for further assistance.

    All the best.
     
    John Ado, Sep 6, 2021
    #2
  3. JonW2016 Win User
    Windows 10 Update breaks Sysprep?

    I am attempting to image a Dell E7470 with Sysprep to upload to my WDS server.

    When I run Sysprep /oobe / shutdown, it completes. However, without Generalize, I won't be able to upload it or deploy it.

    When I run Sysprep /oobe /generalize / shutdown, it reports that a fatal error has occurred. The setupact.log lists that the Miracastview app cannot be removed.

    I have attempted the Remove-appxpackage commands, but it states that it has been provisioned for the user but not all users. It says to attempt removal with Add / Remove Windows features, but it is not listed there.

    I have tried the steps in

    MiracastView cause sysprep error in Windows 10 Version 1709 - Windows Client

    but none of this has worked either.

    I guess the answer is to not run any Windows updates before Sysprep and avoid 1709? It appears to be bad news.

    Anybody else encounter this? Any other solutions available?
     
    JonW2016, Sep 6, 2021
    #3
  4. Tenforo Active Member

    Sysprep removes all SQL logins

    Windows 10 1709 sysprep fail

    Hi,

    I had the same problem, checked the logs and they basically said Windows was unable to remove the Miracast app.

    Tried multiple suggestions, nothing worked until I found this:

    Failed to sysprep and capture Windows 10 Fall Creators 1709

    Basically Microsoft have pushed out their 1709 image without the Miracast app installed, to fix:

    • Copy the C:\Windows\MiracastView folder from a working 1703 build into the C:\Windows directory on the 1709 machine
    • Restart and then run sysprep

    Sysprep should then run successfully!

    Josh
     
    Tenforo, Sep 6, 2021
    #4
Thema:

Sysprep removes all SQL logins

Loading...
  1. Sysprep removes all SQL logins - Similar Threads - Sysprep removes SQL

  2. How do I remove all login methods?

    in Windows 10 Gaming
    How do I remove all login methods?: I have the problem that I just did a clean installation of Windows 11, the issue is that to install it I was asked to sign in and then create a PIN that would be removed later; however, after deleting it, now every time I try to log in, it asks me for my email password. I...
  3. How do I remove all login methods?

    in Windows 10 Software and Apps
    How do I remove all login methods?: I have the problem that I just did a clean installation of Windows 11, the issue is that to install it I was asked to sign in and then create a PIN that would be removed later; however, after deleting it, now every time I try to log in, it asks me for my email password. I...
  4. Trouble with SysPrep on W11 24H2, Sysprep fails because of a package, when removing package...

    in Windows 10 Gaming
    Trouble with SysPrep on W11 24H2, Sysprep fails because of a package, when removing package...: I am having trouble creating a VM template and preparing for SysPrep, OS is W11 24H2, and it appears as MicrosoftWidgetPlatform is erroring out SysPrep, even when removing package and rebooting package will come back... This also appears to break VM if successful, i'm...
  5. Trouble with SysPrep on W11 24H2, Sysprep fails because of a package, when removing package...

    in Windows 10 Software and Apps
    Trouble with SysPrep on W11 24H2, Sysprep fails because of a package, when removing package...: I am having trouble creating a VM template and preparing for SysPrep, OS is W11 24H2, and it appears as MicrosoftWidgetPlatform is erroring out SysPrep, even when removing package and rebooting package will come back... This also appears to break VM if successful, i'm...
  6. Trouble with SysPrep on W11 24H2, Sysprep fails to do package, when removing package breaks...

    in Windows 10 Gaming
    Trouble with SysPrep on W11 24H2, Sysprep fails to do package, when removing package breaks...: I am having trouble creating a VM template and preparing for SysPrep, OS is W11 24H2, and it appears as MicrosoftWidgetPlatform is erroring out SysPrep, even when removing package and rebooting package will come back... This also appears to break VM if successful, i'm...
  7. Trouble with SysPrep on W11 24H2, Sysprep fails to do package, when removing package breaks...

    in Windows 10 Software and Apps
    Trouble with SysPrep on W11 24H2, Sysprep fails to do package, when removing package breaks...: I am having trouble creating a VM template and preparing for SysPrep, OS is W11 24H2, and it appears as MicrosoftWidgetPlatform is erroring out SysPrep, even when removing package and rebooting package will come back... This also appears to break VM if successful, i'm...
  8. Sysprep

    in Windows 10 Installation and Upgrade
    Sysprep: I'm trying to sysprep a machine ready for deployment but keep getting an error due to the Welsh interface pack installed, this has worked with every version except for this 1809. Other versions used to be a LIP file but it's not with 1809. The log error is - Package...
  9. Remove all logins and passwords at startup?!?!

    in User Accounts and Family Safety
    Remove all logins and passwords at startup?!?!: Tried searching, tried a few things and still nothing. My computer used to just turn on and go to the desktop. Then, after an update it went to a log in screen at startup but pressing enter made it work - ie no password. Now, after another update I now have a login...
  10. sysprep errors after removing windows 10 apps

    in Windows 10 Support
    sysprep errors after removing windows 10 apps: I removed some win 10 apps before using sysprep to generalize my image and now i'm having errors when i try to generalize with sysprep. the apps i removed using: Code: #To remove Feedback Hub app from all current accounts on PC Get-appxpackage -allusers...