Knowledgebase : Microsoft

If the device has already been set up, you can follow these steps to join the device to AzureAD.

  1. Open Settings, and then select Accounts.
  2. Select Access work or school, and then select Connect.
    220065-image.png
  3. On the Set up a work or school account screen, select Join this device to Azure Active Directory.
    220102-image.png
  4. On the Let's get you signed in screen, type your email address (for example, alain@Company portal .com), and then select Next.
    220083-image.png
  5. On the Enter password screen, type your password, and then select Sign in.
    220050-image.png
  6. On your mobile device, approve your device so it can access your account.
    220028-image.png
  7. On the Make sure this is your organization screen, review the information to make sure it's right, and then select Join.
    220055-image.png
  8. On the You're all set screen, click Done.
    220066-image.png

sc config “OneSyncSvc” start= disabled
sc config “MapsBroker” start= disabled

DISM /online /Set-Edition:ServerEdition /ProductKey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX /AcceptEula

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Find-Module -Name PowerShellGet | Install-Module
Get-InstalledModule -Name ExchangeOnlineManagement
Install-Module -Name ExchangeOnlineManagement
Import-Module ExchangeOnlineManagement
Connect-ExchangeOnline -UserPrincipalName {username}
Copy below to file with .reg extension and install on target pc.
Windows Registry Editor Version 5.00
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate]
"TargetReleaseVersion"=dword:00000001
"ProductVersion"="Windows 10"
"TargetReleaseVersionInfo"="22H2"

schtasks.exe /Run /TN "\Microsoft\Windows\Servicing\StartComponentCleanup"

Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase

Check c:\windows\system32/winevt/logs