11/11/2008

The Get-MDMInventoryItemcmdlet returns a collection of MDMInventoryItemobjects that represent the elements that are configured for device inventory collection.

You can return a single collection element by specifying the element name with the parameter, identity.

Syntax

Get-MDMInventoryItem [[-Identity] <String>]
[<CommonParameters>]

Parameters

The following describes the Get-MDMInventoryItemcmdlet parameters.

Identity <String>

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

CommonParameters

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 Get-MDMInventoryItemcmdlet accepts through the pipeline the name of the device inventory collection element to return.

Output Type

The Get-MDMInventoryItemcmdlet returns a collection of MDMInventoryItemobjects. To see all the properties for this object, at the MDM Shell prompt, type Get-MDMInventoryItem | Get-Member.

Examples

This Get-MDMInventoryItemcommand example returns all the current MDMInventoryItemobjects.

Copy Code
C:\PS>Get-MDMInventoryItem

This Get-MDMInventoryItemcommand example returns the device inventory collection element that has the name, RomPackage.

Copy Code
C:\PS>Get-MDMInventoryItem -identity "RomPackage"

Cmdlet Help

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

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

See Also