If you are on this page which means you do not wish to go through Intune GUI and select devices manually and run Sync from Bulk device Actions. Below is a PowerShell Script which will Sync all your Devices for you. Its a 4 liner. Code is for Windows Devices but you can change (operatingsystem,