Remove-MDMInventoryItem

2/9/2009

The Remove-MDMInventoryItem cmdlet removes the specified device inventory collection task from the task list on the server.

If you created the task with the New-MDMInventoryItem cmdlet, the Remove-MDMInventoryItem cmdlet removes the task from the server uniform resource identifier (URI) table. After the command removes this task, the Restore-MDMInventoryDefaults cmdlet does not restore the task.

Syntax

Remove-MDMInventoryItem [-Identity] <string> [-confirm] [-whatif] [<CommonParameters>]

Parameters

The following describes the Remove-MDMInventoryItem cmdlet parameters.

  • Identity <String>
    The name of an existing device inventory collection element.
  • WhatIf
    Informs you of what changes would be made if the action were to be performed (the cmdlet is not executed).
  • Confirm
    Prompts you for confirmation before the cmdlet executes.
  • 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 Remove-MDMInventoryItem cmdlet accepts through the pipeline the name of the device inventory collection task to remove.

Output Type

None

Examples

This Remove-MDMInventoryItem command example removes the device data inventory task that has the name, processor.

C:\PS>Remove-MDMInventoryItem -Identity "processor"

Cmdlet Help

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

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

See Also

Reference

New-MDMInventoryItem
Get-MDMInventoryItem
Set-MDMInventoryItem