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.
Syntax
Get-MDMDeviceInventory [-DeviceId] <DeviceIdParameter[]> -Category <InventoryCategory> [-Force] [<CommonParameters>] Get-MDMDeviceInventory -Owner <OwnerIdParameter[]> -Category <InventoryCategory> [-Force] [<CommonParameters>] |
Parameters
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). 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 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. 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-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.
Examples
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 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