Enable-AdfsDeviceRegistration

Enable-AdfsDeviceRegistration

Configures a server in an AD FS farm to host the Device Registration Service.

Syntax

Parameter Set: __AllParameterSets
Enable-AdfsDeviceRegistration [-Credential <PSCredential> ] [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The Enable-AdfsDeviceRegistration cmdlet configures a server in an Active Directory Federation Services (AD FS) farm to host the Device Registration Service. To completely enable the Device Registration Service, you must run this command on each AD FS server in your AD FS farm. You must run the Initialize-ADDeviceRegistration cmdlet before you run this cmdlet.

Parameters

-Credential<PSCredential>

Specifies a PSCredential object based on a user name and password for the Active Directory account under which the AD FS service runs. To obtain a PSCredential object, use the Get-Credential cmdlet. For more information, type Get-Help Get-Credential.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Force

Forces the command to run without asking for user confirmation.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

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: Enable the device registration service

This command enables the Device Registration Service on the AD FS server. Note that you must perform this action on every AD FS server in the farm.

PS C:\> Enable-AdfsDeviceRegistration

Get-AdfsDeviceRegistration

Disable-AdfsDeviceRegistration

Set-AdfsDeviceRegistration

Get-Credential

Initialize-ADDeviceRegistration