Get-BlockedDevice

2/9/2009

The Get-BlockedDevice cmdlet returns a collection of BlockedDevice objects that represent the currently blocked managed Windows Mobile devices.

You can return the information for specific blocked managed devices by specifying a managed device name or owner. If you do not specify a device, the cmdlet returns all blocked managed devices.

Syntax

Get-BlockedDevice [[-DeviceId] <DeviceIdParameter[]>] [<CommonParameters>]

Get-BlockedDevice [-Owner <OwnerIdParameter[]>] [<CommonParameters>]

Parameters

The following describes the Get-BlockedDevice cmdlet parameters.

  • DeviceId <DeviceIdParameter[]>
    Specifies the identity of the managed device. 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 all managed devices for the specified owner and returns those that are currently blocked. 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.
  • 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-BlockedDevice cmdlet accepts a string through the pipeline that identifies a managed device, or an object that has the deviceId property.

Output Type

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

Examples

This Get-BlockedDevice command example displays information for all currently blocked managed devices.

C:\PS>Get-BlockedDevice

This Get-BlockedDevice command example displays information for the blocked managed device, device1.

C:\PS>Get-BlockedDevice -DeviceId device1

This Get-BlockedDevice command example displays information for all the blocked managed devices owned by Mikael Sandberg.

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

Cmdlet Help

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

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

See Also

Reference

Add-BlockedDevice
Remove-BlockedDevice