Remove-BlockedDevice

2/9/2009

The Remove-BlockedDevice cmdlet removes a managed Windows Mobile device from the blocked device list.

Syntax

Remove-BlockedDevice [-DeviceId] <DeviceIdParameter> [-confirm] [-whatif] [<CommonParameters>]

Remove-BlockedDevice -Owner <OwnerIdParameter> [-confirm] [-whatif] [<CommonParameters>]

Parameters

The following describes the Remove-BlockedDevice cmdlet parameters.

  • DeviceId <DeviceIdParameter>
    Specifies the identity of the managed device to be unblocked. 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.
  • Owner <OwnerIdParameter>
    Identifies the managed device to be unblocked based on the device owner. If the cmdlet finds more than one managed device for this owner, an error message is returned. 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.
  • 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-BlockedDevice cmdlet accepts a string through the pipeline that identifies a managed device, or an object that has the deviceId property.

Output Type

None

Examples

This Remove-BlockedDevice command example unblocks the managed device, device1.

C:\PS>Remove-BlockedDevice -DeviceId device1

This Remove-BlockedDevice command example unblocks all the managed devices owned by Mikael Sandberg.

C:\PS>Remove-BlockedDevice -Owner "Mikael Sandberg"

Cmdlet Help

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

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

See Also

Reference

Add-BlockedDevice
Get-BlockedDevice