Forum Discussion
Dr_Snooze
May 10, 2023Brass Contributor
Is it really impossible to force an Intune sync from the command line?
Is it really not possible to force an Intune sync on a client computer from the command line? It seems like such a simple thing to do. Rather than make me dig 3 subpages deep to click a button, just ...
Ibrahim_1_Naidoo
May 25, 2026Copper Contributor
Use this powershell command to perform a SYNC on all intune enrolled devices.
$devices = Get-MgDeviceManagementManagedDevice -Filter "contains(operatingSystem, 'Windows')" -All
foreach ($device in $devices) {Sync-MgDeviceManagementManagedDevice -ManagedDeviceId $device.Id}
Ibrahim Naidoo - Scarybyte - MSSP