Test Device Registration Connectivity

The Hybrid device is being registered to Azure AD under the system context, the first step is to make sure that the device is able to communicate with Azure AD device registration endpoints under the system account. Here we need to use Test Device Registration Connectivity script.

Test-DeviceRegConnectivity PowerShell script helps to test the Internet connectivity to the following Microsoft resources under the system context to validate the connection status between the device that needs to be connected to Azure AD as hybrid Azure AD joined device and Microsoft resources that are used during device registration process. It also, checks for SSL/TLS handshake and report as failure if any.

  • https://login.microsoftonline.com
  • https://device.login.microsoftonline.com
  • https://enterpriseregistration.windows.net

Why is this script helpful?

  • You don’t need to rely on PS Exec tool to test the Internet connectivity under the system context, you need just to run it as administrator.
  • You don’t need to collect network trace during device registration and analyze it to verify the Internet connectivity.
  • You don’t need to check the Internet gateway (web proxy or firewall) to verify the Internet connectivity.

Using this script, Internet connectivity troubleshooting time will be reduced, and you need just to run it as administrator.

You can always download the updated version directly from the link: https://github.com/mzmaili/TestDeviceRegConnectivity

User experience:
   – When the test passes successfully:

– When the test fails: