The Set-MDMInventoryItemcmdlet sets the collection frequency for a device inventory collection item.


Set-MDMInventoryItem [-Identity] <String>
-CollectionFrequency <CollectionFrequency> [-WhatIf]
[-Confirm] [<CommonParameters>]

Set-MDMInventoryItem [-Instance] <MDMInventoryItem>
-CollectionFrequency <CollectionFrequency> [-WhatIf]
[-Confirm] [<CommonParameters>]


The following describes the Set-MDMInventoryItemcmdlet parameters.

Identity <String>

The name of an existing device inventory collection element. This is the name that you specified when you created the element by using the New-MDMInventoryItemcmdlet.

Instance <MDMInventoryItem>

Accepts an MDMInventoryItemobject as input.

CollectionFrequency <CollectionFrequency>

The name of one of the supported collection frequencies. Valid frequencies are NotCollected, EveryConnect, Daily, EveryOtherDay, Weekly, EveryOtherWeek, Monthly, EveryOtherMonth, Quarterly, Semiannually, Annually, and InitialDiscovery.


Informs you of what changes would be made if the action were to be performed (the cmdlet is not executed).


Prompts you for confirmation before the cmdlet executes.


This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, and -OutVariable. For more information, at the Mobile Device Manager (MDM) Shell prompt, type get-help about_commonparameters.

Input Type

The Set-MDMInventoryItemcmdlet accepts through the pipeline an MDMInventoryItemobject. To see all the properties for this object, at the MDM Shell prompt, type Get-MDMInventoryItem | Get-Member.

Output Type



This Set-MDMInventoryItemcommand example sets the collection frequency of the device inventory collection item, TotalRam, to the frequency, EveryConnect.

Copy Code
C:\PS>Set-MDMInventoryItem -identity “TotalRam”
-collectionfrequency “EveryConnect”

Cmdlet Help

To view this information online, at the MDM Shell prompt, type:

get-help Set-MDMInventoryItem -detailed, or get-help Set-MDMInventoryItem -full

See Also