Approve-CMDevice

Approve-CMDevice

Approves Configuration Manager device clients.

Syntax

Parameter Set: SearchByNameMandatory
Approve-CMDevice -DeviceName <String[]> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByIdMandatory
Approve-CMDevice -DeviceId <String[]> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByValueMandatory
Approve-CMDevice -InputObject <IResultObject> [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The Approve-CMDevice cmdlet approves one or more Microsoft System Center 2012 SP1 Configuration Manager device clients to join a site. You cannot approve a Configuration Manager client until you have installed the device and assigned it to a site.

When the client device communicates with site systems by using HTTP and a self-signed certificate, you must approve these clients to identify them as trusted computers. By default, the site configuration automatically approves client devices from the same Active Directory forest and trusted forests, so you do not have to manually approve each client device. You must manually approve workgroup computers that you trust and any other computers that you trust but are not approved.

You do not have to approve clients that always communicate to site systems by using HTTPS rather than HTTP, or clients that use a PKI certificate when they communicate to site systems by using HTTP. These clients establish trust with Configuration Manager by using the public key infrastructure (PKI) certificates.

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: Approve a device client

This command approves the Configuration Manager device client named CMCEN-DIST02.

PS C:\> Approve-CMDevice -DeviceName "CMCEN-DIST02"

Block-CMDevice

Get-CMDevice

Remove-CMDevice

Unblock-CMDevice