- Test-DeviceRegConnectivity.ps1
- Test-MicrosoftEndpointNetworks
- Run port checking via ns authority/system - PsExec
After a network connection is in
place, each Windows device will contact the Windows Autopilot Deployment
Service. With Windows 10 version 1903 and above, the following URLs are used:
Copy 3 files in USB
- PsExec.exe
- Test-DeviceRegConnectivity.ps1
- Test-MicrosoftEndpointNetworks.ps1
Test-DeviceRegConnectivity.ps1
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
The steps are:
- Get the script from this link - TestDeviceRegConnectivity/Test-DeviceRegConnectivity.ps1 at main · Azure-Samples/TestDeviceRegConnectivity · GitHub
- Press Shift + F10 to launch command prompt.
- Type powershell to switch to PowerShell.
- Run c:\Test-DeviceRegConnectivity.ps1 and monitor the result.
Success result as per below:
*If failed, please check and verify with your network team.
Test-MicrosoftEndpointNetworks.ps1
This script to test connectivity of port required.
- Port 443
- Port 80
The steps are:
1.
Run c:\Test-MicrosoftEndpointNetworks
2.
Get the result.
*If failed, please check and verify with your network team.
PsExec.exe from Sysinternalsuite
Windows Autopilot depends on a variety of internet-based
services. Access to these services must be provided for Autopilot to function
properly. In the simplest case, enabling proper functionality can be achieved
by ensuring the following conditions:
i.
Ensure Domain Name Services (DNS) name
resolution for internet DNS names.
ii.
Allow access to all hosts via port 80 (HTTP),
443 (HTTPS), and 123 (UDP/NTP).
Check and test connection via nt authority/system by follow
below steps:
1.
Launch powershell with PsExec by run command
c:\PsExec -s -I powershell
Verify that the command is run as nt authority\system
2.
Run test-networkconnection for 80, 443 and 123.
a.
Tnc -Port 443 -ComputerName login.microsoftonline.com
b.
Tnc -Port 443
c.
Tnc -Port 443