Get-MDMDeviceInventory

2/9/2009

The Get-MDMDeviceInventory cmdlet returns a collection of properties that represent the complete set of collected inventory data for the specified managed Windows Mobile device.

The command returns data values that represent the value last retrieved by the server, not the actual data on the managed device.

Syntax

Get-MDMDeviceInventory [-DeviceId] <DeviceIdParameter[]> -Category <InventoryCategory> [-Force] [<CommonParameters>]

Get-MDMDeviceInventory -Owner <OwnerIdParameter[]> -Category <InventoryCategory> [-Force] [<CommonParameters>]

Parameters

The following describes the Get-MDMDeviceInventory cmdlet parameters.

  • DeviceId <DeviceIdParameter[]>
    Identifies the managed device for which to return inventory data. This parameter can be a device common name, the distinguished name, the fully qualified domain name (FQDN), or the security ID (SID). If the value contains a space or other special characters, enclose the string in quotation marks.
  • Category <InventoryCategory>
    The name that represents one of the supported device data categories. All the MDMDeviceInventory objects of this category type for the specified managed device are returned. If the name is not a valid category name, an error results and the command fails. Valid categories are GeneralInformation, ApplicationSettings, DeviceSettings, ProxySettings, NapSettings, VpnSettings, RomPackage, Certificates, InstalledSoftware, and FileInformation.
  • Owner <OwnerIdParameter[]>
    Identifies the managed device, based on the device owner. If the cmdlet finds multiple managed devices for this owner, a prompt displays to ask whether you want information for all the devices. You can suppress this prompt with the Force parameter. This parameter can be a common name, e-mail address, distinguished name, SID, or Logon ID. If the value contains a space or other special characters, enclose the string in quotation marks.
  • Force
    Suppresses the prompt that displays when the cmdlet finds multiple managed devices.
  • 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-MDMDeviceInventory cmdlet accepts a string through the pipeline that identifies a managed device, or an object that has the property, deviceId.

Output Type

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

Examples

This Get-MDMDeviceInventory command example returns all the MDMDeviceInventory objects of the type, ApplicationSettings, for the managed device, Device1.

C:\PS>Get-MDMDeviceInventory -DeviceId Device1 -Category ApplicationSettings

Cmdlet Help

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

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

See Also

Reference

Get-MDMDevice