Forum Discussion

Tachik0ma's avatar
Tachik0ma
Copper Contributor
Mar 14, 2024

Re: Intune Default Compliance Policy

SebastiaanSmits 

 

I've had a look into this but I don't think I can use this for what I need. When I use Get-DeviceManagement_DeviceCompliancePolicies I don't get a policy ID for the in-built compliance policy

1 Reply

  • SebastiaanSmits's avatar
    SebastiaanSmits
    Iron Contributor
    You do not really need the Compliancy cmdlet, I think, maybe I am misunderstanding you. If you use this for example:

    (Get-MgDeviceManagementManagedDevice).LastSyncDateTime

    You get al the last-check in dates and you can base the notification actions around that...

Resources