Device Migration from On-prem AD to Azure AD

%3CLINGO-SUB%20id%3D%22lingo-sub-1166194%22%20slang%3D%22en-US%22%3ERe%3A%20Device%20Migration%20from%20On-prem%20AD%20to%20Azure%20AD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1166194%22%20slang%3D%22en-US%22%3EWe%20use%20Autopilot%20to%20move%20computers%20over.%20But%20in%20general%2C%20we%20get%20them%20Azure%20AD%20joined%2Fmanaged%20using%20Endpoint%20Manager%20whenever%20we%20replace%20the%20hardware%20and%20yes%2C%20this%20will%20take%20a%20long%20time%20if%20you%20don%E2%80%99t%20plan%20to%20replace%20computers%20within%20the%20next%20year%20or%20so.%20So%20sometimes%20we%20simply%20re-install%20computers.%3CBR%20%2F%3E%3CBR%20%2F%3EIf%20you%20have%20specific%20requirements%20of%20which%20users%20to%20set%20as%20local%20admin%2C%20we%20use%20this%20script%3A%20%3CA%20href%3D%22https%3A%2F%2Ftech.xenit.se%2Fadd-you-own-local-admin-users-on-azure-ad-devices%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Ftech.xenit.se%2Fadd-you-own-local-admin-users-on-azure-ad-devices%2F%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1167283%22%20slang%3D%22en-US%22%3ERe%3A%20Device%20Migration%20from%20On-prem%20AD%20to%20Azure%20AD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1167283%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F19218%22%20target%3D%22_blank%22%3E%40Jonas%20Back%3C%2FA%3E%26nbsp%3BThank%20you%20for%20your%20reply.%20We%20have%20almost%20300%20machines%20and%20would%20like%20to%20migrate%20by%20end%20of%20this%20year%2C%20so%20resetting%20machine%2FAuto%20Pilot%20will%20take%20more%20time%20and%20not%20efficient%20for%20us.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1167931%22%20slang%3D%22en-US%22%3ERe%3A%20Device%20Migration%20from%20On-prem%20AD%20to%20Azure%20AD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1167931%22%20slang%3D%22en-US%22%3EI%20think%20you%20mean%20that%20you%20don%E2%80%99t%20want%20to%20reinstall%20(reset)%20every%20machine%2C%20correct%3F%3CBR%20%2F%3E%3CBR%20%2F%3EHave%20not%20tried%20it%20but%20check%20the%20%E2%80%9DBulk%20Enrollment%E2%80%9D%20mentioned%20here%3A%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fdevices%2Fassign-local-admin%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fdevices%2Fassign-local-admin%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1403645%22%20slang%3D%22en-US%22%3ERe%3A%20Device%20Migration%20from%20On-prem%20AD%20to%20Azure%20AD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1403645%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F253287%22%20target%3D%22_blank%22%3E%40Amit_Trivedi112214%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20company%20is%20attempting%20almost%20the%20exact%20same%20situation....%20for%201800%20devices.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%2C%20if%20anyone%20has%20a%20comprehensive%20strategy%20for%20this%20solution%20I'd%20appreciate%20it%20greatly.%3CBR%20%2F%3E%3CBR%20%2F%3EMy%20understanding%20developed%20from%20the%20linked%20articles%20is%20the%20steps%20for%20accomplishing%20this%20would%20be%20to%3A%3CBR%20%2F%3E%3CBR%20%2F%3E1.%20create%20an%20AutoPilot%20profile%20which%20either%20acknowledges%20a%20present%20local%20administrator%20account%20or%20creates%20it%20when%20the%20device%20hits%20Azure%3C%2FP%3E%3CP%3E2.%20create%20a%20Group%20which%20applies%20the%20required%20applications%20for%20my%20company%3C%2FP%3E%3CP%3E3.%20use%20the%20Bulk%20update%20to%20target%20my%20on-premises%20machines%20for%20moving%20to%20Azure%20(how%20do%20I%20make%20sure%20the%20devices%20i%20select%20for%20bulk%20autopilot%20are%20not%20flagged%20as%20%22personal%22%20in%20on-premises%20AD%3F)%3C%2FP%3E%3CP%3E4.%20Clear%20my%20on-premises%20record%20of%20devices%20after%20each%20device%20appears%20in%20Azure%20AD%3C%2FP%3E%3CP%3E5.%20Start%20a%20sync%20in%20Intune%20and%20allow%20it%20to%20push%20apps%20and%20add%20any%20missing%20administrator%20account%20based%20on%20the%20Group%20and%20Profile%20settings%3CBR%20%2F%3E%3CBR%20%2F%3EThank%20you%20for%20any%20clarifications%20available.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1457352%22%20slang%3D%22en-US%22%3ERe%3A%20Device%20Migration%20from%20On-prem%20AD%20to%20Azure%20AD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1457352%22%20slang%3D%22en-US%22%3EI'm%20in%20the%20same%20boat%20as%20you.%3CBR%20%2F%3EIf%20anyone%20has%20a%20good%20approach%20to%20be%20able%20to%20join%20a%20machine%20to%20AzureAD%20while%20joined%20to%20local%20domain%2C%20that%20would%20be%20great!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1458272%22%20slang%3D%22en-US%22%3ERe%3A%20Device%20Migration%20from%20On-prem%20AD%20to%20Azure%20AD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1458272%22%20slang%3D%22en-US%22%3EYou%20might%20be%20looking%20for%20hybrid%20Azure%20AD%20Join%3F%3CBR%20%2F%3EThis%20way%20the%20device%20is%20joined%20to%20local%20AD%20and%20registered%20to%20AAD%2C%20which%20enables%20management%20through%20Intune%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fdevices%2Fhybrid-azuread-join-plan%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fdevices%2Fhybrid-azuread-join-plan%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1512562%22%20slang%3D%22en-US%22%3ERe%3A%20Device%20Migration%20from%20On-prem%20AD%20to%20Azure%20AD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1512562%22%20slang%3D%22en-US%22%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F253287%22%20target%3D%22_blank%22%3E%40Amit_Trivedi112214%3C%2FA%3E%3CBR%20%2F%3Eplease%20help%20us%20if%20you%20were%20able%20to%20complete%20the%20migration.%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1516155%22%20slang%3D%22en-US%22%3ERe%3A%20Device%20Migration%20from%20On-prem%20AD%20to%20Azure%20AD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1516155%22%20slang%3D%22en-US%22%3EIn%20regards%20to%20issue%201%20and%20users%20getting%20local%20admin%20rights%2C%20are%20you%20using%20Intune%3F%20If%20so%20you%20can%20create%20a%20deployment%20profile%20in%20which%20you%20state%20that%20users%20don%E2%80%99t%20have%20admin%20rights.%20Target%20that%20to%20your%20devices%20and%20after%20the%20OOBE%20the%20user%20will%20have%20standard%20user%20rights.%3CBR%20%2F%3EAs%20far%20as%20I%20know%20there%20aren%E2%80%99t%20any%20supported%20methods%20to%20migrate%20devices%20from%20AD%20to%20an%20native%20Azure-AD%20joined%20stated%20without%20resetting%20the%20device.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1165192%22%20slang%3D%22en-US%22%3EDevice%20Migration%20from%20On-prem%20AD%20to%20Azure%20AD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1165192%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20All%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20want%20to%20migrate%20our%20On-Prem%20AD%20devices%20to%20Azure%20AD%20and%20enroll%20into%20intune.%20We%20have%20Azure%20AD%20sync%20and%20all%20but%20needs%20to%20convert%20machine%20to%20Azure%20AD%20join%20only%20not%20Hybrid%20AD.%20So%20we%20would%20like%20to%20create%20new%20user%20profile%20on%20machine.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20have%20used%20two%20methods%20so%20far.%3C%2FP%3E%3CP%3E1)%20Reset%20the%20machine%20and%20use%20join%20to%20Azure%20AD%20from%20OOBE.%20(%20Issue%20-%20This%20will%20make%20user%20a%20Administrator%20for%20that%20machine%20and%20we%20dont%20want%20that%20)%3C%2FP%3E%3CP%3E2)%20Unbind%20from%20on-prem%20AD%2C%20join%20to%20Azure%20AD%20manually%20but%20the%20same%20issue%20like%20number%201.%3C%2FP%3E%3CP%3E3)%20Using%20Hardware%20Hash%2C%20register%20devices%20to%20Autopilot%20and%20then%20reset%20all%20the%20machines.%20(%20Issue%20-%20This%20will%20take%20too%20long%20to%20migrate%20250%20machines%20and%20helping%20remote%20workers%20are%20quite%20difficult%20)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHas%20anyone%20tried%20any%20different%20method%20or%20is%20there%20any%20expert%20suggestion%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1165192%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20AD%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EIntune%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1764254%22%20slang%3D%22en-US%22%3ERe%3A%20Device%20Migration%20from%20On-prem%20AD%20to%20Azure%20AD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1764254%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F723948%22%20target%3D%22_blank%22%3E%40AvinashG%3C%2FA%3E%26nbsp%3BHey%20Avinash%2C%3C%2FP%3E%3CP%3EWe%20have%20found%20out%20a%20work%20around%20to%20this.%3C%2FP%3E%3CP%3EWhile%20the%20machine%20is%20joined%20to%20a%20local%20domain%26nbsp%3B%20domain1.com%3C%2FP%3E%3CP%3ETo%20be%20able%20to%20enroll%20it%20in%20Intune%20MDM%20(without%20joining%20the%20doamin%20AzureCloud.com%20doamin).%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20first%20have%20to%20remove%20any%20management%20tools%20for%20example%20(SCCM%20Client).%20Once%20that%20client%20is%20removed%2C%20you%20should%20be%20able%20to%20Enroll%20in%20Mobile%20Device%20management%20from%20Settings%20-%26gt%3B%20Accounts%20-%26gt%3B%20Access%20work%20or%20school.%20Under%20related%20settings%2C%20you%20will%20get%20an%20option%20to%20enroll%20in%20MDM%2C%20once%20you%20do%20it%2C%20it%20should%20be%20easy%20after%20that.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20this%20helps.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1764283%22%20slang%3D%22en-US%22%3ERe%3A%20Device%20Migration%20from%20On-prem%20AD%20to%20Azure%20AD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1764283%22%20slang%3D%22en-US%22%3EHey%20John%2C%3CBR%20%2F%3Eplease%20see%20my%20comment%20to%20Avinash.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1764416%22%20slang%3D%22en-US%22%3ERe%3A%20Device%20Migration%20from%20On-prem%20AD%20to%20Azure%20AD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1764416%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F696880%22%20target%3D%22_blank%22%3E%40DeyKilledKenny%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3EThis%20isn't%20the%20full%20awnser%20to%20the%20question.%20The%20question%20was%20how%20to%20get%20from%20an%20Domain%20joined%20setup%20to%20a%20native%20Azure%20AD%20joined%20setup%20for%20existing%20devices.%20The%20steps%20you%20described%20involve%20enrolling%20an%20Domain%20device%20to%20Azure%20AD.%20It%20doesn't%20remove%20the%20device%20from%20the%20on-prem%20domain.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1764490%22%20slang%3D%22en-US%22%3ERe%3A%20Device%20Migration%20from%20On-prem%20AD%20to%20Azure%20AD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1764490%22%20slang%3D%22en-US%22%3ECorrect%2C%20it's%20half%20of%20the%20answer%20because%20we%20haven't%20found%20a%20way%20to%20do%20it%20seamlessly%20(without%20wiping%20the%20devices)%2C%20hence%20i%20said%20we%20found%20a%20work%20around.%20it's%20not%20the%20best%20solution%2C%20but%20that%20keeps%20our%20business%20running%20and%20met%20our%20requirements%20in%20a%20way.%3CBR%20%2F%3EIf%20we%20find%20a%20better%20way%20to%20do%20it%20with%20coming%20days%2C%20I%20will%20update%20this%20thread%20for%20sure.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1778838%22%20slang%3D%22en-US%22%3ERe%3A%20Device%20Migration%20from%20On-prem%20AD%20to%20Azure%20AD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1778838%22%20slang%3D%22en-US%22%3E%3CP%3EIn%20my%20opinion%2C%20when%20you%20would%20need%20to%20script%20this%2C%20the%20difficulty%20would%20lie%20in%20the%20removal%20of%20the%20PC%20from%20the%20current%20AD%20to%20a%20workgroup%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%20*%20This%20could%26nbsp%3B%20be%20done%20by%20using%20the%20remove-computer%20cmdlet.%20(with%20or%20without%20reboot%2C%20to%20be%20tested)%3C%2FP%3E%3CP%3EAfter%20that%20step%2C%20inject%20a%20WDC%20package%20to%20get%20it%20into%20AzureAD%3A%26nbsp%3B%3C%2FP%3E%3CP%3E(%3CA%20href%3D%22https%3A%2F%2Fwww.nielskok.tech%2Fmicrosoft365%2Funattended-azure-ad-join%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.nielskok.tech%2Fmicrosoft365%2Funattended-azure-ad-join%2F%3C%2FA%3E)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20you%20had%20your%20indentities%20synced%20up%20with%20AD%20Connect%2C%20the%20SID%20would%20be%20the%20same%20as%20would%20the%20profile%2C....(also%20to%20be%20tested)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EInterested%20to%20hear%20other%20solutions%20also%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1851410%22%20slang%3D%22fr-FR%22%3ERe%3A%20Device%20Migration%20from%20On-prem%20AD%20to%20Azure%20AD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1851410%22%20slang%3D%22fr-FR%22%3EHi%2C%20%3CBR%20%2F%3E%3CBR%20%2F%3E%20Did%20you%20tried%20to%3A%20%3CBR%20%2F%3E%20Create%20a%20local%20admin%20account%20and%20export%20hash%20to%20intune.%3CBR%20%2F%3EDisconnect%20user%20from%20local%20domain.%3CBR%20%2F%3EConnect%20to%20azure%20AD.%3CBR%20%2F%3EDisconnect%20from%20local%20admin%20account%20and%20connect%20with%20azure%20AD%20USERNAME%2C%20which%20starts%20enrollment%20and%20you%20can%20see%20in%20intune%20you%20have%20an%20autopilot%20eated%20machine.%3CBR%20%2F%3EI%20tried%20that%20Without%20resetting%20computer.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1918592%22%20slang%3D%22en-US%22%3ERe%3A%20Device%20Migration%20from%20On-prem%20AD%20to%20Azure%20AD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1918592%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F856630%22%20target%3D%22_blank%22%3E%40Khirtah%3C%2FA%3E%26nbsp%3BThank%20you!%20I%20have%20already%20tried%20that%20yes%2C%20it%20works%20well.%20I%20was%20looking%20for%20a%20more%20of%20an%20automated%20solution.%3C%2FP%3E%3CP%3EThank%20you%20for%20participating%20%3A)%3C%2Fimg%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hello All,

 

We want to migrate our On-Prem AD devices to Azure AD and enroll into intune. We have Azure AD sync and all but needs to convert machine to Azure AD join only not Hybrid AD. So we would like to create new user profile on machine.

 

We have used two methods so far.

1) Reset the machine and use join to Azure AD from OOBE. ( Issue - This will make user a Administrator for that machine and we dont want that )

2) Unbind from on-prem AD, join to Azure AD manually but the same issue like number 1.

3) Using Hardware Hash, register devices to Autopilot and then reset all the machines. ( Issue - This will take too long to migrate 250 machines and helping remote workers are quite difficult )

 

Has anyone tried any different method or is there any expert suggestion ?

 

Thanks!

 

14 Replies
We use Autopilot to move computers over. But in general, we get them Azure AD joined/managed using Endpoint Manager whenever we replace the hardware and yes, this will take a long time if you don’t plan to replace computers within the next year or so. So sometimes we simply re-install computers.

If you have specific requirements of which users to set as local admin, we use this script: https://tech.xenit.se/add-you-own-local-admin-users-on-azure-ad-devices/

@Jonas Back Thank you for your reply. We have almost 300 machines and would like to migrate by end of this year, so resetting machine/Auto Pilot will take more time and not efficient for us.

 

 

I think you mean that you don’t want to reinstall (reset) every machine, correct?

Have not tried it but check the ”Bulk Enrollment” mentioned here: https://docs.microsoft.com/en-us/azure/active-directory/devices/assign-local-admin

@Amit_Trivedi112214 

 

My company is attempting almost the exact same situation.... for 1800 devices.

 

Please, if anyone has a comprehensive strategy for this solution I'd appreciate it greatly.

My understanding developed from the linked articles is the steps for accomplishing this would be to:

1. create an AutoPilot profile which either acknowledges a present local administrator account or creates it when the device hits Azure

2. create a Group which applies the required applications for my company

3. use the Bulk update to target my on-premises machines for moving to Azure (how do I make sure the devices i select for bulk autopilot are not flagged as "personal" in on-premises AD?)

4. Clear my on-premises record of devices after each device appears in Azure AD

5. Start a sync in Intune and allow it to push apps and add any missing administrator account based on the Group and Profile settings

Thank you for any clarifications available.

I'm in the same boat as you.
If anyone has a good approach to be able to join a machine to AzureAD while joined to local domain, that would be great!
You might be looking for hybrid Azure AD Join?
This way the device is joined to local AD and registered to AAD, which enables management through Intune
https://docs.microsoft.com/en-us/azure/active-directory/devices/hybrid-azuread-join-plan
@Amit_Trivedi112214
please help us if you were able to complete the migration.
In regards to issue 1 and users getting local admin rights, are you using Intune? If so you can create a deployment profile in which you state that users don’t have admin rights. Target that to your devices and after the OOBE the user will have standard user rights.
As far as I know there aren’t any supported methods to migrate devices from AD to an native Azure-AD joined stated without resetting the device.

@AvinashG Hey Avinash,

We have found out a work around to this.

While the machine is joined to a local domain  domain1.com

To be able to enroll it in Intune MDM (without joining the doamin AzureCloud.com doamin). 

You first have to remove any management tools for example (SCCM Client). Once that client is removed, you should be able to Enroll in Mobile Device management from Settings -> Accounts -> Access work or school. Under related settings, you will get an option to enroll in MDM, once you do it, it should be easy after that.

 

Hope this helps.

Hey John,
please see my comment to Avinash.

@DeyKilledKenny 
This isn't the full awnser to the question. The question was how to get from an Domain joined setup to a native Azure AD joined setup for existing devices. The steps you described involve enrolling an Domain device to Azure AD. It doesn't remove the device from the on-prem domain.

Correct, it's half of the answer because we haven't found a way to do it seamlessly (without wiping the devices), hence i said we found a work around. it's not the best solution, but that keeps our business running and met our requirements in a way.
If we find a better way to do it with coming days, I will update this thread for sure.

In my opinion, when you would need to script this, the difficulty would lie in the removal of the PC from the current AD to a workgroup:

  * This could  be done by using the remove-computer cmdlet. (with or without reboot, to be tested)

After that step, inject a WDC package to get it into AzureAD: 

(https://www.nielskok.tech/microsoft365/unattended-azure-ad-join/)

 

If you had your indentities synced up with AD Connect, the SID would be the same as would the profile,....(also to be tested)

 

Interested to hear other solutions also

Hi,

Did you tried to :
Create a local admin account and export hash to intune.
Disconnect user from local domaine.
Connect to azure AD.
Disconnect from local admin account and connect with azure AD USERNAME, that starts enrollment and you Can see in intune you have an autopilote manged machine.
I tried that Without resetting computer.