11/11/2008

The Get-BlockedDevicecmdlet returns a collection of BlockedDeviceobjects 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-BlockedDevicecmdlet 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).

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.

CommonParameters

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

Output Type

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

Examples

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

Copy Code
C:\PS>Get-BlockedDevice

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

Copy Code
C:\PS>Get-BlockedDevice -deviceid device1

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

Copy Code
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