System Center Mobile Device Manager TechCenter >
Mobility Forums
>
System Center Mobile Device Manager
>
Cmdlet Get-DeviceManagementConfig
Cmdlet Get-DeviceManagementConfig
- Hi,
I can't seem to find an answer to this question so I'll post to the group. I have been looking at the MDM Powershell cmdlet called Get-DeviceManagementConfig. In particular I'm looking at parameters:
PurgeInterval and EnablePurge.
By default Microsoft have set these to:
PurgeInterval = 373 days and EnablePurge = True.
Now looking at the technet info, this has me confused - as follows:
EnablePurge
Specifies whether PurgeInterval is enabled. If set to $true, then a device is removed from the Device Registration database after a period of time defined by the PurgeInterval value. If set to $false, then devices are not automatically removed from the Device Registration database. The default value is $true.
PurgeInterval
Specifies the length of time after which devices that are no longer enrolled are completely removed from the Device Registration database. The value may range from one day to 3660 days. The default value is 373 days. If the value contains a space or other special characters, enclose the string in quotation marks.
My question is, does this only apply to blocked / wiped devices or all working devices aswell? Does this mean a device will be removed from the registration database (or expire) after 373 days, even if there is nothing wrong with it?
Sorry if I've missed the obvious or if I'm being a bit thick!
Neil.
All Replies
- Hi Neil, Good question. I have not looked at these specific parameters before.
Looking at the other options in the Set-DeviceManagementConfig listed at http://technet.microsoft.com/en-us/library/dd261788.aspx, I'm leaning towards that their description of the "Device Registration database" is the table where the Device enrollments are stored, not that actual Device Inventory. So this is the same table/database that the MDM Device Enrollment Cleanup Tool can be used on as mentioned in the EnableExpiration parameter description. So after the expiration of the Enrollment you can define the purge parameters for those records, instead of using the MDM Device Enrollment Cleanup Tool.
At least that is my current thoughts on how these parameters work. :-)
Cheers,
|\\arco.. MDM Device Enrollment Cleanup Tool is not a great title for the script. It doesn't more than clean up Enrollment Requests. It performs the backend equivalent of a device wipe.
Cheers Wayne
Airloom

