Block-CMDevice
Block-CMDevice
Blocks Configuration Manager client devices.
Syntax
Parameter Set: SearchByNameMandatory
Block-CMDevice -DeviceName <String[]> [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: SearchByIdMandatory
Block-CMDevice -DeviceId <String[]> [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: SearchByValueMandatory
Block-CMDevice -InputObject <IResultObject> [-Confirm] [-WhatIf] [ <CommonParameters>]
Detailed Description
The Block-CMDevice cmdlet blocks one or more client devices. You must block a device from the client's assigned site. You cannot block the device from sites higher in the hierarchy. Blocked devices are ignored by the Microsoft System Center 2012 SP1 Configuration Manager hierarchy.
Block a device that you no longer trust, to prevent it from receiving client policy and to prevent Configuration Manager site systems from communicating with it.
If you later change your mind, you can unblock a device that has been blocked. If you unblock an Intel Active Management Technology (AMT)-based computer that you provisioned for AMT when it was blocked, you must take additional steps before you can manage that computer again out-of-band.
For more information about unblocking a client device in System Center 2012 Configuration Manager, see Determine Whether to Block Clients in Configuration Manager (https://go.microsoft.com/fwlink/?LinkId=271116) on TechNet.
Parameters
-DeviceId<String[]>
Specifies an array of device IDs.
Aliases |
ResourceId |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-DeviceName<String[]>
Specifies an array of device names.
Aliases |
Name |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-InputObject<IResultObject>
Specifies a CMDevice object. To get a CMDevice object, use the Get-CMDevice cmdlet.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-Confirm
Prompts you for confirmation before running the cmdlet.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
Examples
Example 1: Block a device client
This command blocks the Configuration Manager device client named CMCEN-DIST02.
PS C:\> Block-CMDevice -DeviceName "CMCEN-DIST02"