Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MicroWin] Add custom user settings and other changes (docs/bugfixes) #2575

Merged

Conversation

CodingWonders
Copy link
Contributor

@CodingWonders CodingWonders commented Aug 18, 2024

Pull Request

Title

(Same as title)

Type of Change

  • New feature
  • Bug fix
  • Documentation update
  • UI/UX improvement

Description

Some people on the Discord community had suggested the ability to configure a custom user, and that's what this PR is (mainly) about.

Result with empty values:

powershell_XLDCCdeMZj
notepad_GAvmxRMUoG

Result with custom values:

1SqchB9Sld
notepad_TMrmibkxmy

It also adds checks for expedited app removal to prevent it from throwing REG errors

Testing

Testing concluded with custom users being reflected in the target unattended answer file

Impact

Custom user accounts

Issue related to PR

None (suggestion on Discord)

Additional Information

None, apart from slight changes in documentation

Checklist

  • My code adheres to the coding and style guidelines of the project.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • My changes generate no errors/warnings/merge conflicts.

@CodingWonders CodingWonders marked this pull request as ready for review August 18, 2024 18:16
@zmileski
Copy link

zmileski commented Aug 19, 2024

I think best user experience is just don't specify "User Accounts" in unattended and bypass oobe=true will ask only about User and Password. I tested so many times and it works.

@CodingWonders
Copy link
Contributor Author

I think best user experience is just don't specify "User Accounts" in unattended and bypass oobe=true will ask only about User and Password. I tested so many times and it works.

Or use interactive account settings

@CodingWonders
Copy link
Contributor Author

@zmileski, it's become harder to configure a local account interactively in Windows 11 version 24H2 onwards. It now requires a Microsoft account; the only way to pass it is to turn off the network adapters.

Here is a test run with interactive account settings on the latest Dilithium build (build 27686):

DT PE (with HDD)-2024-08-19-14-55-18

DT PE (with HDD)-2024-08-19-14-55-44

DT PE (with HDD)-2024-08-19-14-56-12

DT PE (with HDD)-2024-08-19-14-57-59

@ChrisTitusTech
Copy link
Owner

@zmileski Microsoft has other ideas interactive will not work any longer for local accounts.

Thank you @CodingWonders for this as it is exactly what I had in mind.

@CodingWonders CodingWonders changed the title [MicroWin] Add custom user settings [MicroWin] Add custom user settings and other changes (docs/bugfixes) Aug 19, 2024
@zmileski
Copy link

Just tested on build 27686 with https://schneegans.de/windows/unattend-generator/ oobe was bypasset and only in the end asked me to enter user and password and was online during setup

1
2

what i used in unattend
Bypass Windows 11 requirements check (TPM, Secure Boot, etc.)
Allow Windows 11 to be installed without internet connection
Add user accounts interactively during Windows Setup
Skip Wi-Fi configuration

@CodingWonders
Copy link
Contributor Author

The same settings were applied in my test case. Translated to the DT Language:

VTpD8wi5sc

DISMTools_XvEI5JUmXl

DISMTools_GV4dFBfkRe

@zmileski, so that is weird. Could it be VirtualBox?

@zmileski
Copy link

Yes maybe it is with network on virtual box
Tested now on real mahine and yes to set up local account needed to choose for organisation instead for personal use.
You are right the only way to do is offline.

@ChrisTitusTech ChrisTitusTech merged commit 2748767 into ChrisTitusTech:main Aug 19, 2024
1 check passed
@CodingWonders CodingWonders mentioned this pull request Aug 19, 2024
6 tasks
@CodingWonders
Copy link
Contributor Author

CodingWonders commented Aug 19, 2024

Some people have reported that the target image doubles in size. This is fixed in #2585

mews-se added a commit to mews-se/winutil that referenced this pull request Aug 21, 2024
* Make "Download" a direct link to download the latest Win11 ISO (ChrisTitusTech#2574)

* Auto pushes docs (ChrisTitusTech#2580)

* [MicroWin] Add custom user settings and other changes (docs/bugfixes) (ChrisTitusTech#2575)

* [MicroWin] Add custom user settings

* Update inputXML.xaml

* Update MicroWin documentation to reflect changes

* Update Invoke-WinUtilMicroWin-Helper.ps1

* Update Invoke-WPFMicrowin.ps1

---------

Co-authored-by: Justin Horner <contact@justinhhorner.com>
Co-authored-by: Real-MullaC <callumjanes2007new+github@gmail.com>
Co-authored-by: CodingWonders <101426328+CodingWonders@users.noreply.github.com>
@CodingWonders CodingWonders deleted the microwin-custom-user branch August 24, 2024 13:54
@ChrisTitusTech ChrisTitusTech added the skip-changelog Skip Change Logs label Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-changelog Skip Change Logs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants