The Get-MDMDeviceInventorycmdlet 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.


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


The following describes the Get-MDMDeviceInventorycmdlet 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).

Category <InventoryCategory>

The name that represents one of the supported device data categories. All the MDMDeviceInventoryobjects 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 Forceparameter. This parameter can be a common name, e-mail address, distinguished name, SID, or Logon ID.


Suppresses the prompt that displays when the cmdlet finds multiple managed devices.


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-MDMDeviceInventorycmdlet accepts a string through the pipeline that identifies a managed device, or an object that has the property, deviceId.

Output Type

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


This Get-MDMDeviceInventorycommand example returns all the MDMDeviceInventoryobjects of the type, ApplicationSettings, for the managed device, Device1.

Copy Code
C:\PS>Get-MDMDeviceInventory -deviceid "Device1" -category

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