Get-MDMInventoryItem

2/9/2009

The Get-MDMInventoryItem cmdlet returns a collection of MDMInventoryItem objects 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-MDMInventoryItem cmdlet parameters.

  • Identity <String>
    The name of an existing device inventory collection element.
  • 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 Get-MDMInventoryItem cmdlet accepts through the pipeline the name of the device inventory collection element to return.

Output Type

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

Examples

This Get-MDMInventoryItem command example returns all the current MDMInventoryItem objects.

C:\PS>Get-MDMInventoryItem

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

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

Reference

New-MDMInventoryItem
Set-MDMInventoryItem
Remove-MDMInventoryItem