Forum Discussion
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 let me fire off a DOS command and get on with my day.
I'm familiar with the https://timmyit.com/2019/06/04/intune-invoke-sync-to-all-devices-in-intune-with-the-intune-powershell-sdk/, but honestly, clicking a "Sync" button should never be as complicated as that.
I'm also familiar with Michael Neihaus' method...
Get-ScheduledTask | ? {$_.TaskName -eq 'PushLaunch'} | Start-ScheduledTask
That has never worked, but don't tell anyone because there are a lot of admins out there who think it does, and I'd hate to spoil their day.
Am I just too dim to figure this out or is there really no way to sync from a CLI?
Thanks,
19 Replies
- BH_PTRCopper Contributori guess you could restart the intune service from command line instead? its the same as doing a "device sync status" sync, under work or school settings
- azurebrian24Copper Contributor
I would agree. Restarting the IME service is the quickest way to force a sync on a device. Otherwise, Sync-MgDeviceManagementManagedDevice works too. Sync-MgDeviceManagementManagedDevice works better automated, but it's more complex.