external help file | Module Name | ms.date | online version | schema | title |
---|---|---|---|---|---|
Microsoft.IdentityServer.Management.dll-Help.xml |
ADFS |
10/30/2017 |
2.0.0 |
Set-AdfsDeviceRegistration |
Configures the administrative policies for the Device Registration Service.
Set-AdfsDeviceRegistration -MaximumInactiveDays <UInt32> [-Credential <PSCredential>] [-WhatIf] [-Confirm]
[<CommonParameters>]
Set-AdfsDeviceRegistration -DevicesPerUser <UInt32> [-Credential <PSCredential>] [-WhatIf] [-Confirm]
[<CommonParameters>]
Set-AdfsDeviceRegistration -ServiceAccountIdentifier <String> [-Credential <PSCredential>] [-WhatIf] [-Confirm]
[<CommonParameters>]
Set-AdfsDeviceRegistration [-IssuanceCertificate] [-Credential <PSCredential>] [-WhatIf] [-Confirm]
[<CommonParameters>]
The Set-AdfsDeviceRegistration cmdlet configures the administrative policies for the Device Registration Service. Use this cmdlet to change the default policies of the Device Registration Service in Active Directory Federation Services (AD FS), such as the maximum number of devices that a user can register.
PS C:\> Set-AdfsDeviceRegistration -DevicesPerUser 10
This command sets the number of devices that a user can register to 10.
PS C:\> Set-AdfsDeviceRegistration -MaximumInactiveDays 90
This command configures the number of days before the Device Registration Service removes an inactive device object.
PS C:\> $Cred = Get-Credential
PS C:\> Set-AdfsDeviceRegistration -ServiceAccountIdentifier "CONTOSO\Svc_adfs" -Credential $Cred
The first command uses the Get-Credential cmdlet to create a credential object for the Active Directory account under which the AD FS service runs. The command stores the credential object in the $Cred variable.
The second command sets the service account that has the ID Svc_adfs. The command specifies the credentials stored in $Cred for the Active Directory account under which the AD FS service runs.
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Specifies a PSCredential object based on a user name and password.
This account must be a member of the Enterprise Admins group.
To obtain a PSCredential object, use the Get-Credential cmdlet.
For more information, type Get-Help Get-Credential
.
Type: PSCredential
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the maximum number of devices that a user can register.
Type: UInt32
Parameter Sets: NumberOfDevicesPerUser
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Indicates that the cmdlet generates and uses a new signing certificate for the Device Registration Service.
Type: SwitchParameter
Parameter Sets: IssuanceCertificate
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Specifies the number of days before a device object is removed because of inactivity.
Type: UInt32
Parameter Sets: NumberOfInactiveDays
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Specifies the ID of the service account. The cmdlet grants this account read and write access to the Device Registration Service configuration and containers in Active Directory® Domain Services.
Type: String
Parameter Sets: ServiceAccountIdentifier
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).