Hello there,
Yes, it is possible to perform an unattended (automated) installation of Windows and add Microsoft accounts as users, including specifying which accounts should be administrators. You can achieve this using an answer file during the installation process. An answer file is an XML file that contains configuration settings for the Windows Setup process.
Here's an example of how the user account section of the answer file might look:
<settings>
<component name="Microsoft-Windows-Shell-Setup" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="amd64">
<UserAccounts>
<LocalAccounts>
<LocalAccount wcm:action="add">
<Password>MyPassword123</Password>
<Group>Administrators</Group>
<Name>AdminUser</Name>
<DisplayName>Administrator User</DisplayName>
</LocalAccount>
<LocalAccount wcm:action="add">
<Password>StandardPass456</Password>
<Group>Users</Group>
<Name>StandardUser</Name>
<DisplayName>Standard User</DisplayName>
</LocalAccount>
</LocalAccounts>
</UserAccounts>
</component>
</settings>
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer–