Set-MDMInventoryItem

2/9/2009

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

Syntax

Set-MDMInventoryItem [-Identity] <string> -CollectionFrequency <CollectionFrequency> [-confirm] [-whatif] [<CommonParameters>]

Set-MDMInventoryItem [-Item] <MDMInventoryItem> -CollectionFrequency <CollectionFrequency> [-confirm] [-whatif] [<CommonParameters>]

Parameters

The following describes the Set-MDMInventoryItem cmdlet parameters.

  • Identity <String>
    The name of an existing device inventory collection element. If the value contains a space or other special characters, enclose the string in quotation marks.
  • Item <MDMInventoryItem>
    Accepts an MDMInventoryItem object 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.
  • WhatIf
    Informs you of what changes would be made if the action were to be performed (the cmdlet is not executed).
  • Confirm
    Prompts you for confirmation before the cmdlet executes.
  • CommonParameters
    This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, and -OutVariable. For more information, at the MDM Shell prompt, type get-help about_commonparameters.

Input Type

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

Output Type

None

Examples

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

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

Reference

New-MDMInventoryItem
Get-MDMInventoryItem
Remove-MDMInventoryItem