SOLVED
Home

Azure AD Connect V 1.4.1.8

%3CLINGO-SUB%20id%3D%22lingo-sub-889638%22%20slang%3D%22en-US%22%3EAzure%20AD%20Connect%20V%201.4.1.8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-889638%22%20slang%3D%22en-US%22%3E%3CP%3EHaving%20an%20issue%20with%20this%20version%20removing%20computers%20from%20Azure%20AD.%26nbsp%3B%20Seems%20this%20new%20version%20is%20doing%20a%20check%20on%20the%20workstations%20for%20the%20following.%3C%2FP%3E%3CP%3E1)%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20time%20valid%20certificate%20(not%20expired)%3C%2FP%3E%3CP%3E2)%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20proper%20Azure%20AD%20certificate%2C%20where%20the%20certificate%20contains%20the%20objectGuid%20of%20the%20on-prem%20AD%20computer%20object%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20have%20Conditional%20access%20policies%20that%20target%20all%20workstations%20that%20are%20Hybrid%20joined.%26nbsp%3B%20When%20they%20are%20removed%20the%20policy%20kicks%20in%20and%20the%20user%20is%20unable%20to%20access%20Outlook%2C%20Teams%2C%20ONedrive%20etc....%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMS%20Supports%20says%20the%20rule%20in%20the%20AD%20sync%20doing%20this%20check%20is%20%22In%20from%20AD%20-%20Computer%20Join%22%3C%2FP%3E%3CP%3EUsing%20the%20Synchronization%20Rules%20Editor%20I%20can%20see%20the%20rule%3C%2FP%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F135179iFE5A3EA0E10AE982%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22image.png%22%20title%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20basically%20want%20the%20sync%20to%20delete%20the%20computer%20from%20Azure%20ONLY%20if%20its%20deleted%20from%20Local%20AD%2C%20as%20we%20keep%20our%20Computer%20OUs%20very%20clean.%26nbsp%3B%20Id%20like%20to%20know%20if%20this%20is%20possible%20as%20I%20do%20not%20like%20the%20fact%20that%20its%20doing%20this%20check%20and%20randomly%20deleting%20users%20computers.%26nbsp%3B%20The%20only%20workaround%20I%20have%20right%20now%20is%20unjoin%2Frejoin%20domain%20forcing%20a%20sync.%26nbsp%3B%20I%20am%20not%20sure%20what%20is%20causing%20the%20deleted%20computers%20to%20all%20of%20a%20sudden%20not%20have%20a%20cert%20etc%20from%20Azure.%26nbsp%3B%20All%20workstations%20are%20Hybrid%20joined%20via%20GPO%20and%20out%20of%20300%2B%20users%20this%20is%20affect%20random%20users.%26nbsp%3B%20ANNOYING!!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fhybrid%2Freference-connect-device-disappearance%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fhybrid%2Freference-connect-device-disappearance%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-889638%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20AD%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAzure%20Friday%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EIdentity%20Management%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-890393%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20AD%20Connect%20V%201.4.1.8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-890393%22%20slang%3D%22en-US%22%3EThis%20seems%20odd.%20I%20have%20not%20seen%20this%20issue%20yet%20but%20most%20customers%20are%20not%20on%201.4.1.8.%3CBR%20%2F%3E%3CBR%20%2F%3EI%E2%80%99ve%20read%20through%20the%20article%20and%20it%20seems%20they%20(should)%20just%20delete%20Azure%20AD%20Devices%20which%20are%20actually%20invalid.%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20devices%20you%E2%80%99ve%20seen%20getting%20deleted%20from%20Azure%20AD%2C%20are%20they%20invalid%20(for%20example%2C%20does%20the%20script%20%3CA%20href%3D%22https%3A%2F%2Fgallery.technet.microsoft.com%2Fscriptcenter%2FExport-Hybrid-Azure-AD-f8e51436%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgallery.technet.microsoft.com%2Fscriptcenter%2FExport-Hybrid-Azure-AD-f8e51436%3C%2FA%3E%20report%20them%20as%20invalid%3F)%3CBR%20%2F%3E%3CBR%20%2F%3EIn%20case%20you%20have%20some%20examples%20I%20could%20check%20on%20my%20end%20how%20it%20looks.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-891242%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20AD%20Connect%20V%201.4.1.8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-891242%22%20slang%3D%22en-US%22%3E%3CP%3Egetting%20this%20error%20when%20i%20try%20to%20run%20that%20PS1%2C%20im%20no%20POSH%20expert%26nbsp%3B%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3CP%3Eystem32%26gt%3B%3CBR%20%2F%3EPS%20C%3A%5CWindows%5Csystem32%26gt%3B%20C%3A%5CUsers%5Cbdpbmain%5CDesktop%5CExport-ADSyncToolsHybridAzureADjoinCertificateReport.ps1%3CBR%20%2F%3EC%3A%5CUsers%5Cbdpbmain%5CDesktop%5CExport-ADSyncToolsHybridAzureADjoinCertificateReport.ps1%20%3A%20Parameter%20set%20cannot%20be%20resolved%20using%20the%3CBR%20%2F%3Especified%20named%20parameters.%3CBR%20%2F%3E%2B%20CategoryInfo%20%3A%20InvalidArgument%3A%20(%3A)%20%5BExport-ADSyncTo...icateReport.ps1%5D%2C%20ParentContainsErrorRecordException%3CBR%20%2F%3E%2B%20FullyQualifiedErrorId%20%3A%20AmbiguousParameterSet%2CExport-ADSyncToolsHybridAzureADjoinCertificateReport.ps1%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-891985%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20AD%20Connect%20V%201.4.1.8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-891985%22%20slang%3D%22en-US%22%3E%3CP%3EMS%20assited%20in%20disabling%20the%20rule%20and%20creating%20a%20new%20one%20that%20does%20not%20check%20the%20AZAD%20Cert%20Value.%3C%2FP%3E%3CP%3E%26nbsp%3Bhere%20is%20what%20they%20sent%20me.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20you%20do%20not%20want%20ADConnect%20to%20delete%20those%20devices%20here%20is%20a%20workaround%20you%20could%20follow%2C%20which%20basically%20change%20the%20rule%20for%20Computer%20Join%20to%20the%20one%20which%20was%20used%20on%20previous%20ADConnect%20versions.%3C%2FP%3E%3COL%3E%3CLI%3EDisable%20sync%20scheduler%20by%20running%20Set-ADSyncScheduler%20-SyncCycleEnabled%20%24false.%3C%2FLI%3E%3CLI%3EGo%20to%20the%20Synchronization%20Rules%20Editor%20and%20look%20for%20the%20rule%20named%20In%20from%20AD%20-%20Computer%20Join%26nbsp%3B%3C%2FLI%3E%3CLI%3EClick%20on%20Edit%20(clicking%20edit%20allows%20you%20to%20clone%20the%20rule)%20and%20then%20Yes%3C%2FLI%3E%3CLI%3EOnce%20you%20have%20the%20rule%20to%20Edit%20please%20make%20sure%20you%20add%20a%20correct%20Precedence%20and%20keep%20everything%20the%20same%20except%20on%20Transformations%20(cloudFiltered%2C%20see%20image%20below)%3C%2FLI%3E%3C%2FOL%3E%3COL%3E%3CLI%3EYou%20will%20need%20to%20make%20sure%20to%20change%20this%20part%20as%20follows%3A%3C%2FLI%3E%3C%2FOL%3E%3CP%3EFlow%20Type%3A%20Expression%3C%2FP%3E%3CP%3ETarget%20Attribute%3A%20cloudFiltered%3C%2FP%3E%3CP%3ESource%3A%26nbsp%3BIIF(IsNullOrEmpty(%5BuserCertificate%5D)%2CTrue%2CNULL)%3C%2FP%3E%3CP%3EMerge%20Type%3A%20Update%3C%2FP%3E%3COL%3E%3CLI%3EImportant%20to%20note%20the%20Default%20rule%20In%20from%20AD%20needs%20to%20be%20disabled.%3C%2FLI%3E%3CLI%3EGo%20back%20and%20enabled%20the%20sync%20scheduler%20by%20running%26nbsp%3BSet-ADSyncScheduler%20-SyncCycleEnabled%20%24true%3C%2FLI%3E%3CLI%3EYou%20will%20need%20to%20run%20a%20Full%20sync%20cycle%20for%20the%20changes%20to%20make%20effect%3C%2FLI%3E%3C%2FOL%3E%3CP%3E%3CSTRONG%3EKeep%20in%20mind%20starting%20from%20this%20version%20(1.4.x.0)%20the%20rule%20for%20computer%20join%20will%20remain%20the%20same%2C%20so%20it%20is%20important%20you%20take%20this%20in%20consideration%20on%20future%20ADConnect%20upgrades.%3C%2FSTRONG%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-892085%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20AD%20Connect%20V%201.4.1.8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-892085%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F87754%22%20target%3D%22_blank%22%3E%40Christian%20Taveras%3C%2FA%3E%20The%20latest%20version%20is%20now%20checking%20for%20a%20valid%20Azure%20signed%20certificate.%20In%20the%20past%2C%20AD%20computer%20objects%20with%20ANY%20certificate%20were%20allowed%20to%20export%20to%20AAD.%20We%20are%20now%20removing%20device%20objects%20that%20do%20not%20belong%20in%20Azure%20AD.%20They%20may%20still%20have%20their%20own%20certificates%20(such%20as%20custom%20PKI%20CA%20certs)%2C%20but%20these%20will%20no%20longer%20export%20to%20the%20cloud.%20You%20may%20notice%20that%20these%20objects%20show%20as%20%22pending%22%20on%20your%20Azure%20devices%20list.%20If%20they%20are%20pending%2C%20they%20are%20not%20fully%20registered%20and%20would%20not%20participate%20in%20Azure%20AD%20CA.%20Although%20the%20given%20workaround%20will%20work%2C%26nbsp%3B%3CSPAN%20style%3D%22display%3A%20inline%20!important%3B%20float%3A%20none%3B%20background-color%3A%20%23ffffff%3B%20color%3A%20%23333333%3B%20cursor%3A%20text%3B%20font-family%3A%20inherit%3B%20font-size%3A%2016px%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20300%3B%20letter-spacing%3A%20normal%3B%20line-height%3A%201.7142%3B%20orphans%3A%202%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%22%3E%20it's%20to%20your%20best%20interests%20to%20use%20our%20updated%20default%20devices%20sync%20rule%20instead.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-892254%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20AD%20Connect%20V%201.4.1.8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-892254%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F3207%22%20target%3D%22_blank%22%3E%40Josh%20Villagomez%3C%2FA%3E%26nbsp%3B%20%26nbsp%3BI%20get%20your%20point%20of%20view%2C%20however%20for%20us%20least%20this%20setting%20was%20removing%20valid%20computer%20accounts%20from%20AAD.%26nbsp%3B%20Once%20removed%20the%20CA%20policies%20would%20block%20the%20user%20from%20resources%20due%20to%20the%20Hybrid%20Joined%20requirement.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-892298%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20AD%20Connect%20V%201.4.1.8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-892298%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F87754%22%20target%3D%22_blank%22%3E%40Christian%20Taveras%3C%2FA%3E%20You%20mean%20to%20say%20they%20were%20properly%20registered%20in%20AAD%3F%20Can%20you%20share%20the%20dsregcmd%2Fstatus%20output%20of%20one%20of%20the%20affected%20devices%3F%20Are%20these%20Win10%20devices%20or%20down-level%20devices%3F%20Or%20are%20they%20Intune%20managed%3F%20If%20they%20don't%20have%20valid%20certs%2C%20they're%20not%20validly%20registered%20hybrid%20devices.%20I'm%20not%20sure%20how%20you%20got%20it%20going%20on%20now%2C%20but%20we%20really%20need%20to%20investigate%20what's%20going%20on.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-904122%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20AD%20Connect%20V%201.4.1.8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-904122%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F3207%22%20target%3D%22_blank%22%3E%40Josh%20Villagomez%3C%2FA%3E%26nbsp%3B%20These%20were%20valid%20Computer%20accounts%20in%20Local%20AD%2055%20of%20them%20to%20be%20exact.%26nbsp%3B%20Example%20this%20computer%20was%20deleted%20from%20Azure%20due%20to%20this.%26nbsp%3B%20I%20starred%20out%20some%20info%20for%20safety.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMicrosoft%20Windows%20%5BVersion%2010.0.17763.503%5D%3CBR%20%2F%3E(c)%202018%20Microsoft%20Corporation.%20All%20rights%20reserved.%3C%2FP%3E%3CP%3EU%3A%5C%26gt%3BDSregcmd%20%2Fstatus%3C%2FP%3E%3CP%3E%2B----------------------------------------------------------------------%2B%3CBR%20%2F%3E%7C%20Device%20State%20%7C%3CBR%20%2F%3E%2B----------------------------------------------------------------------%2B%3C%2FP%3E%3CP%3EAzureAdJoined%20%3A%20YES%3CBR%20%2F%3EEnterpriseJoined%20%3A%20NO%3CBR%20%2F%3EDomainJoined%20%3A%20YES%3CBR%20%2F%3EDomainName%20%3A%20B*B*I*%3C%2FP%3E%3CP%3E%2B----------------------------------------------------------------------%2B%3CBR%20%2F%3E%7C%20Device%20Details%20%7C%3CBR%20%2F%3E%2B----------------------------------------------------------------------%2B%3C%2FP%3E%3CP%3EDeviceId%20%3A%20c99998fd-99%3CSPAN%3Eb9-9b99-9999-99cd999f9fef%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EThumbprint%20%3A%2009DE9A9B999C99C99999BD9ADCD9999C927D9B99%3CBR%20%2F%3EDeviceCertificateValidity%20%3A%20%5B%202018-07-09%2012%3A05%3A33.000%20UTC%20--%202028-07-09%2012%3A35%3A33.000%20UTC%20%5D%3CBR%20%2F%3EKeyContainerId%20%3A%209aea9949-ea9b-99ea-a9fc-99d9e9c9999%3CBR%20%2F%3EKeyProvider%20%3A%20Microsoft%20Platform%20Crypto%20Provider%3CBR%20%2F%3ETpmProtected%20%3A%20YES%3C%2FP%3E%3CP%3E%2B----------------------------------------------------------------------%2B%3CBR%20%2F%3E%7C%20Tenant%20Details%20%7C%3CBR%20%2F%3E%2B----------------------------------------------------------------------%2B%3C%2FP%3E%3CP%3ETenantName%20%3A%20MY%20COMPANY%20NAME%20WAS%20HERE%3CBR%20%2F%3ETenantId%20%3A%20MY%20TENANT%20ID%20WAS%20HERE%3CBR%20%2F%3EIdp%20%3A%20login.windows.net%3CBR%20%2F%3EAuthCodeUrl%20%3A%20%3CA%20href%3D%22https%3A%2F%2Flogin.microsoftonline.com%2FMY%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Flogin.microsoftonline.com%2FMY%3C%2FA%3E%20TENANT%20ID%20WAS%20HERE%2Foauth2%2Fauthorize%3CBR%20%2F%3EAccessTokenUrl%20%3A%20%3CA%20href%3D%22https%3A%2F%2Flogin.microsoftonline.com%2FMY%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Flogin.microsoftonline.com%2FMY%3C%2FA%3E%20TENANT%20ID%20WAS%20HERE%2Foauth2%2Ftoken%3CBR%20%2F%3EMdmUrl%20%3A%3CBR%20%2F%3EMdmTouUrl%20%3A%3CBR%20%2F%3EMdmComplianceUrl%20%3A%3CBR%20%2F%3ESettingsUrl%20%3A%3CBR%20%2F%3EJoinSrvVersion%20%3A%201.0%3CBR%20%2F%3EJoinSrvUrl%20%3A%20%3CA%20href%3D%22https%3A%2F%2Fenterpriseregistration.windows.net%2FEnrollmentServer%2Fdevice%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fenterpriseregistration.windows.net%2FEnrollmentServer%2Fdevice%2F%3C%2FA%3E%3CBR%20%2F%3EJoinSrvId%20%3A%20urn%3Ams-drs%3Aenterpriseregistration.windows.net%3CBR%20%2F%3EKeySrvVersion%20%3A%201.0%3CBR%20%2F%3EKeySrvUrl%20%3A%20%3CA%20href%3D%22https%3A%2F%2Fenterpriseregistration.windows.net%2FEnrollmentServer%2Fkey%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fenterpriseregistration.windows.net%2FEnrollmentServer%2Fkey%2F%3C%2FA%3E%3CBR%20%2F%3EKeySrvId%20%3A%20urn%3Ams-drs%3Aenterpriseregistration.windows.net%3CBR%20%2F%3EWebAuthNSrvVersion%20%3A%201.0%3CBR%20%2F%3EWebAuthNSrvUrl%20%3A%20%3CA%20href%3D%22https%3A%2F%2Fenterpriseregistration.windows.net%2Fwebauthn%2FMY%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fenterpriseregistration.windows.net%2Fwebauthn%2FMY%3C%2FA%3E%20TENANT%20ID%20WAS%20HERE%2F%3CBR%20%2F%3EWebAuthNSrvId%20%3A%20urn%3Ams-drs%3Aenterpriseregistration.windows.net%3CBR%20%2F%3EDeviceManagementSrvVer%20%3A%201.0%3CBR%20%2F%3EDeviceManagementSrvUrl%20%3A%20%3CA%20href%3D%22https%3A%2F%2Fenterpriseregistration.windows.net%2Fmanage%2FMY%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fenterpriseregistration.windows.net%2Fmanage%2FMY%3C%2FA%3E%20TENANT%20ID%20WAS%20HERE%2F%3CBR%20%2F%3EDeviceManagementSrvId%20%3A%20urn%3Ams-drs%3Aenterpriseregistration.windows.net%3C%2FP%3E%3CP%3E%2B----------------------------------------------------------------------%2B%3CBR%20%2F%3E%7C%20User%20State%20%7C%3CBR%20%2F%3E%2B----------------------------------------------------------------------%2B%3C%2FP%3E%3CP%3ENgcSet%20%3A%20NO%3CBR%20%2F%3EWorkplaceJoined%20%3A%20NO%3CBR%20%2F%3EWamDefaultSet%20%3A%20YES%3CBR%20%2F%3EWamDefaultAuthority%20%3A%20organizations%3CBR%20%2F%3EWamDefaultId%20%3A%20%3CA%20href%3D%22https%3A%2F%2Flogin.microsoft.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Flogin.microsoft.com%3C%2FA%3E%3CBR%20%2F%3EWamDefaultGUID%20%3A%20%7BB9999999-A999-9999-9999-99D99DA99%7D%20(AzureAd)%3C%2FP%3E%3CP%3E%2B----------------------------------------------------------------------%2B%3CBR%20%2F%3E%7C%20SSO%20State%20%7C%3CBR%20%2F%3E%2B----------------------------------------------------------------------%2B%3C%2FP%3E%3CP%3EAzureAdPrt%20%3A%20YES%3CBR%20%2F%3EAzureAdPrtUpdateTime%20%3A%202019-09-26%2019%3A17%3A47.000%20UTC%3CBR%20%2F%3EAzureAdPrtExpiryTime%20%3A%202019-10-10%2019%3A17%3A47.000%20UTC%3CBR%20%2F%3EAzureAdPrtAuthority%20%3A%20%3CA%20href%3D%22https%3A%2F%2Flogin.microsoftonline.com%2FMY%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Flogin.microsoftonline.com%2FMY%3C%2FA%3E%20TENANT%20ID%20WAS%20HERE%3CBR%20%2F%3EEnterprisePrt%20%3A%20NO%3CBR%20%2F%3EEnterprisePrtAuthority%20%3A%3C%2FP%3E%3CP%3E%2B----------------------------------------------------------------------%2B%3CBR%20%2F%3E%7C%20Diagnostic%20Data%20%7C%3CBR%20%2F%3E%2B----------------------------------------------------------------------%2B%3C%2FP%3E%3CP%3EAadRecoveryNeeded%20%3A%20NO%3CBR%20%2F%3EKeySignTest%20%3A%20PASSED%3C%2FP%3E%3CP%3E%2B----------------------------------------------------------------------%2B%3CBR%20%2F%3E%7C%20Ngc%20Prerequisite%20Check%20%7C%3CBR%20%2F%3E%2B----------------------------------------------------------------------%2B%3C%2FP%3E%3CP%3EIsDeviceJoined%20%3A%20YES%3CBR%20%2F%3EIsUserAzureAD%20%3A%20YES%3CBR%20%2F%3EPolicyEnabled%20%3A%20NO%3CBR%20%2F%3EPostLogonEnabled%20%3A%20YES%3CBR%20%2F%3EDeviceEligible%20%3A%20YES%3CBR%20%2F%3ESessionIsNotRemote%20%3A%20YES%3CBR%20%2F%3ECertEnrollment%20%3A%20none%3CBR%20%2F%3EPreReqResult%20%3A%20WillNotProvision%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EU%3A%5C%26gt%3B%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-904332%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20AD%20Connect%20V%201.4.1.8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-904332%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F87754%22%20target%3D%22_blank%22%3E%40Christian%20Taveras%3C%2FA%3E%26nbsp%3Bthe%20solution%20provided%20by%20MSFT%20(where%20I%20work%20and%20am%20a%20Technical%20Advisor%20in%20the%20Sync%20Space)%20should%20be%20considered%20a%20workaround%20%2F%20mitigation%20until%20the%20issue%20with%20the%20new%20sync%20rule%20is%20fixed%20in%20a%20future%20hotfix%2C%20which%20will%20be%20manually%20downloadable.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOnce%20available%20if%20you%20run%20an%20in-place%20upgrade%20the%20disabled%20default%20rule%20will%20have%20the%20%22buggy%22%20transformation%20modified.%20If%20you%20test%20it%20on%20a%20staging%20server%20(disable%20your%20new%20rule%20clone%20created%20by%20MSFT%2C%20then%20re-enable%20the%20default%20rule%20on%20your%20staging%20server)%20and%20find%20the%20hotfix%20acceptable.%20You%20have%20now%20reverted%20back%20to%20a%20default%20vs%20custom%20state%20which%20is%20always%20best%20practice.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20reason%20it%20is%20best%20practice%2C%20Microsoft%20routinely%20adds%20attributes%20which%20we%20sync%20to%20Azure%20AD%20for%20a%20given%20object%20type.%20We%20update%20the%20sync%20rule%20transformations%20to%20include%20the%20new%20rows%20(flows).%20Only%20default%20rules%20receive%20these%20new%20transformations%20so%20you%20would%20be%20missing%20out%20on%20new%20features%20if%20you%20remain%20custom%2C%20OR%20have%20to%20manually%20update%20all%20your%20custom%20rules%20if%20your%20organization%20wants%20to%20utilize%20these%20new%20features.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-904337%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20AD%20Connect%20V%201.4.1.8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-904337%22%20slang%3D%22en-US%22%3EI%20have%20zero%20issues%20revert%20back%20to%20default%20i%20just%20cannot%20have%20random%20user%20computer%20accounts%20that%20belong%20to%20active%20users%20deleted.%20When%20will%20an%20update%20be%20released%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-904351%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20AD%20Connect%20V%201.4.1.8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-904351%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F87754%22%20target%3D%22_blank%22%3E%40Christian%20Taveras%3C%2FA%3E%26nbsp%3B%20Thanks%20for%20posting%20your%20dsregcmd%20status.%20It%20appears%20your%20Win10%20is%20version%201809%20and%20properly%20hybrid-joined.%20I%20would%20like%20to%20take%20a%20closer%20look%20at%20this%20because%20of%20some%20recent%20customer%20reports.%20If%20you%20don't%20mind%2C%20please%20create%20a%20new%20MS%20ticket%20and%20message%20the%20case%23%20directly%20to%20me.%20We%20should%20try%20to%20get%20a%20root%20cause%20on%20your%20issue.%20Also%2C%20it%20would%20be%20good%20to%20get%20the%20summary%20report%20of%20the%20Gallery%20script%20referred%20to%20here%3A%26nbsp%3B%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fhybrid%2Freference-connect-device-disappearance%23how-can-i-verify-which-devices-are-deleted-with-this-update%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fhybrid%2Freference-connect-device-disappearance%23how-can-i-verify-which-devices-are-deleted-with-this-update%3C%2FA%3E%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-904364%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20AD%20Connect%20V%201.4.1.8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-904364%22%20slang%3D%22en-US%22%3EI%20will%20get%20this%20going%20in%20the%20AM.%20Thank%20you!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-916780%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20AD%20Connect%20V%201.4.1.8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-916780%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F3207%22%20target%3D%22_blank%22%3E%40Josh%20Villagomez%3C%2FA%3E%26nbsp%3B%20%26nbsp%3B%3C%2FP%3E%3CTABLE%3E%3CTBODY%3E%3CTR%3E%3CTD%3ESupport%20request%20ID%3C%2FTD%3E%3CTD%3E119101624002963%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3C%2FLINGO-BODY%3E
Frequent Contributor

Having an issue with this version removing computers from Azure AD.  Seems this new version is doing a check on the workstations for the following.

1)      time valid certificate (not expired)

2)      proper Azure AD certificate, where the certificate contains the objectGuid of the on-prem AD computer object

 

We have Conditional access policies that target all workstations that are Hybrid joined.  When they are removed the policy kicks in and the user is unable to access Outlook, Teams, ONedrive etc....

 

MS Supports says the rule in the AD sync doing this check is "In from AD - Computer Join"

Using the Synchronization Rules Editor I can see the rule

 

image.png

 

I basically want the sync to delete the computer from Azure ONLY if its deleted from Local AD, as we keep our Computer OUs very clean.  Id like to know if this is possible as I do not like the fact that its doing this check and randomly deleting users computers.  The only workaround I have right now is unjoin/rejoin domain forcing a sync.  I am not sure what is causing the deleted computers to all of a sudden not have a cert etc from Azure.  All workstations are Hybrid joined via GPO and out of 300+ users this is affect random users.  ANNOYING!!

 

https://docs.microsoft.com/en-us/azure/active-directory/hybrid/reference-connect-device-disappearanc...

11 Replies
This seems odd. I have not seen this issue yet but most customers are not on 1.4.1.8.

I’ve read through the article and it seems they (should) just delete Azure AD Devices which are actually invalid.

The devices you’ve seen getting deleted from Azure AD, are they invalid (for example, does the script https://gallery.technet.microsoft.com/scriptcenter/Export-Hybrid-Azure-AD-f8e51436 report them as invalid?)

In case you have some examples I could check on my end how it looks.

getting this error when i try to run that PS1, im no POSH expert  :)

ystem32>
PS C:\Windows\system32> C:\Users\bdpbmain\Desktop\Export-ADSyncToolsHybridAzureADjoinCertificateReport.ps1
C:\Users\bdpbmain\Desktop\Export-ADSyncToolsHybridAzureADjoinCertificateReport.ps1 : Parameter set cannot be resolved using the
specified named parameters.
+ CategoryInfo : InvalidArgument: (:) [Export-ADSyncTo...icateReport.ps1], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : AmbiguousParameterSet,Export-ADSyncToolsHybridAzureADjoinCertificateReport.ps1

Solution

MS assited in disabling the rule and creating a new one that does not check the AZAD Cert Value.

 here is what they sent me.

 

If you do not want ADConnect to delete those devices here is a workaround you could follow, which basically change the rule for Computer Join to the one which was used on previous ADConnect versions.

  1. Disable sync scheduler by running Set-ADSyncScheduler -SyncCycleEnabled $false.
  2. Go to the Synchronization Rules Editor and look for the rule named In from AD - Computer Join 
  3. Click on Edit (clicking edit allows you to clone the rule) and then Yes
  4. Once you have the rule to Edit please make sure you add a correct Precedence and keep everything the same except on Transformations (cloudFiltered, see image below)
  1. You will need to make sure to change this part as follows:

Flow Type: Expression

Target Attribute: cloudFiltered

Source: IIF(IsNullOrEmpty([userCertificate]),True,NULL)

Merge Type: Update

  1. Important to note the Default rule In from AD needs to be disabled.
  2. Go back and enabled the sync scheduler by running Set-ADSyncScheduler -SyncCycleEnabled $true
  3. You will need to run a Full sync cycle for the changes to make effect

Keep in mind starting from this version (1.4.x.0) the rule for computer join will remain the same, so it is important you take this in consideration on future ADConnect upgrades.

@Christian Taveras The latest version is now checking for a valid Azure signed certificate. In the past, AD computer objects with ANY certificate were allowed to export to AAD. We are now removing device objects that do not belong in Azure AD. They may still have their own certificates (such as custom PKI CA certs), but these will no longer export to the cloud. You may notice that these objects show as "pending" on your Azure devices list. If they are pending, they are not fully registered and would not participate in Azure AD CA. Although the given workaround will work,  it's to your best interests to use our updated default devices sync rule instead. 

@Josh Villagomez   I get your point of view, however for us least this setting was removing valid computer accounts from AAD.  Once removed the CA policies would block the user from resources due to the Hybrid Joined requirement.  

@Christian Taveras You mean to say they were properly registered in AAD? Can you share the dsregcmd/status output of one of the affected devices? Are these Win10 devices or down-level devices? Or are they Intune managed? If they don't have valid certs, they're not validly registered hybrid devices. I'm not sure how you got it going on now, but we really need to investigate what's going on. 

@Josh Villagomez  These were valid Computer accounts in Local AD 55 of them to be exact.  Example this computer was deleted from Azure due to this.  I starred out some info for safety.

 

Microsoft Windows [Version 10.0.17763.503]
(c) 2018 Microsoft Corporation. All rights reserved.

U:\>DSregcmd /status

+----------------------------------------------------------------------+
| Device State |
+----------------------------------------------------------------------+

AzureAdJoined : YES
EnterpriseJoined : NO
DomainJoined : YES
DomainName : B*B*I*

+----------------------------------------------------------------------+
| Device Details |
+----------------------------------------------------------------------+

DeviceId : c99998fd-99b9-9b99-9999-99cd999f9fef

Thumbprint : 09DE9A9B999C99C99999BD9ADCD9999C927D9B99
DeviceCertificateValidity : [ 2018-07-09 12:05:33.000 UTC -- 2028-07-09 12:35:33.000 UTC ]
KeyContainerId : 9aea9949-ea9b-99ea-a9fc-99d9e9c9999
KeyProvider : Microsoft Platform Crypto Provider
TpmProtected : YES

+----------------------------------------------------------------------+
| Tenant Details |
+----------------------------------------------------------------------+

TenantName : MY COMPANY NAME WAS HERE
TenantId : MY TENANT ID WAS HERE
Idp : login.windows.net
AuthCodeUrl : https://login.microsoftonline.com/MY TENANT ID WAS HERE/oauth2/authorize
AccessTokenUrl : https://login.microsoftonline.com/MY TENANT ID WAS HERE/oauth2/token
MdmUrl :
MdmTouUrl :
MdmComplianceUrl :
SettingsUrl :
JoinSrvVersion : 1.0
JoinSrvUrl : https://enterpriseregistration.windows.net/EnrollmentServer/device/
JoinSrvId : urn:ms-drs:enterpriseregistration.windows.net
KeySrvVersion : 1.0
KeySrvUrl : https://enterpriseregistration.windows.net/EnrollmentServer/key/
KeySrvId : urn:ms-drs:enterpriseregistration.windows.net
WebAuthNSrvVersion : 1.0
WebAuthNSrvUrl : https://enterpriseregistration.windows.net/webauthn/MY TENANT ID WAS HERE/
WebAuthNSrvId : urn:ms-drs:enterpriseregistration.windows.net
DeviceManagementSrvVer : 1.0
DeviceManagementSrvUrl : https://enterpriseregistration.windows.net/manage/MY TENANT ID WAS HERE/
DeviceManagementSrvId : urn:ms-drs:enterpriseregistration.windows.net

+----------------------------------------------------------------------+
| User State |
+----------------------------------------------------------------------+

NgcSet : NO
WorkplaceJoined : NO
WamDefaultSet : YES
WamDefaultAuthority : organizations
WamDefaultId : https://login.microsoft.com
WamDefaultGUID : {B9999999-A999-9999-9999-99D99DA99} (AzureAd)

+----------------------------------------------------------------------+
| SSO State |
+----------------------------------------------------------------------+

AzureAdPrt : YES
AzureAdPrtUpdateTime : 2019-09-26 19:17:47.000 UTC
AzureAdPrtExpiryTime : 2019-10-10 19:17:47.000 UTC
AzureAdPrtAuthority : https://login.microsoftonline.com/MY TENANT ID WAS HERE
EnterprisePrt : NO
EnterprisePrtAuthority :

+----------------------------------------------------------------------+
| Diagnostic Data |
+----------------------------------------------------------------------+

AadRecoveryNeeded : NO
KeySignTest : PASSED

+----------------------------------------------------------------------+
| Ngc Prerequisite Check |
+----------------------------------------------------------------------+

IsDeviceJoined : YES
IsUserAzureAD : YES
PolicyEnabled : NO
PostLogonEnabled : YES
DeviceEligible : YES
SessionIsNotRemote : YES
CertEnrollment : none
PreReqResult : WillNotProvision


U:\>

 

 

@Christian Taveras the solution provided by MSFT (where I work and am a Technical Advisor in the Sync Space) should be considered a workaround / mitigation until the issue with the new sync rule is fixed in a future hotfix, which will be manually downloadable.

 

Once available if you run an in-place upgrade the disabled default rule will have the "buggy" transformation modified. If you test it on a staging server (disable your new rule clone created by MSFT, then re-enable the default rule on your staging server) and find the hotfix acceptable. You have now reverted back to a default vs custom state which is always best practice.

 

The reason it is best practice, Microsoft routinely adds attributes which we sync to Azure AD for a given object type. We update the sync rule transformations to include the new rows (flows). Only default rules receive these new transformations so you would be missing out on new features if you remain custom, OR have to manually update all your custom rules if your organization wants to utilize these new features.

I have zero issues revert back to default i just cannot have random user computer accounts that belong to active users deleted. When will an update be released?

@Christian Taveras  Thanks for posting your dsregcmd status. It appears your Win10 is version 1809 and properly hybrid-joined. I would like to take a closer look at this because of some recent customer reports. If you don't mind, please create a new MS ticket and message the case# directly to me. We should try to get a root cause on your issue. Also, it would be good to get the summary report of the Gallery script referred to here: https://docs.microsoft.com/en-us/azure/active-directory/hybrid/reference-connect-device-disappearanc...

I will get this going in the AM. Thank you!
Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies