Gerenios / AADInternals

AADInternals PowerShell module for administering Azure AD and Office 365
http://aadinternals.com/aadinternals
MIT License
1.24k stars 214 forks source link

dsregcmd shows machine is not Azure AD joined #28

Closed nirmitdesai closed 2 years ago

nirmitdesai commented 2 years ago

Hello,

Following the steps mentioned in https://o365blog.com/post/bprt/ , I joined a VM to Azure AD. I can see the machine under "Devices" page on the Azure portal. However, when I run dsregcmd /status inside the VM, it says AzureAdJoined : NO.

Any idea why that is happening? There were no errors in executing the powershell commands and most importantly, the VM shows up on Azure AD devices page, so I am confused.

Thanks!

nirmitdesai commented 2 years ago

My bad. I didn't realize that we had to import the pfx certificate to the store. After doing that, dsregcmd /status shows that the VM is Azure AD joined.