This change fixes the issue where $LocalDomainStatus not initialized which causes an issue when an admin is trying to leave a non-AzureAD domain/local domain
Is there anything particularly tricky?
n/a
How should this be tested?
Run this version of ADMU with -LeaveDomain checked in a local AD domain joined machine.
After a successful migration, run dsregcmd.exe /status on powershell, device state should have DomainJoined : NO or the ADMU log should have this message: Local Domain State, Local Domain Joined : NO
Issues
What does this solve?
This change fixes the issue where $LocalDomainStatus not initialized which causes an issue when an admin is trying to leave a non-AzureAD domain/local domain
Is there anything particularly tricky?
n/a
How should this be tested?
-LeaveDomain
checked in a local AD domain joined machine.dsregcmd.exe /status
on powershell, device state should haveDomainJoined : NO
or the ADMU log should have this message:Local Domain State, Local Domain Joined : NO
Screenshots