Bearbeiten

Freigeben über


Remove-AdfsDeviceRegistrationUpnSuffix

Removes a custom UPN suffix.

Syntax

Remove-AdfsDeviceRegistrationUpnSuffix
      [-UpnSuffix] <String>
      [-Force]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

The Remove-AdfsDeviceRegistrationUpnSuffix cmdlet removes a custom user principal name (UPN) suffix. The cmdlet removes the UPN suffix and the SSL binding that corresponds to the UPN suffix. After you remove a custom UPN suffix, accounts that have a UPN that corresponds to the specified UPN suffix can no longer register devices. Use the Add-AdfsDeviceRegistrationUpnSuffix cmdlet to add a custom UPN suffix.

Examples

Example 1: Remove a custom UPN suffix

PS C:\> Remove-AdfsDeviceRegistrationUpnSuffix -UpnSuffix "Child.Contoso.com" -Force

This command removes the UPN suffix Child.Contoso.com from the list of acceptable UPN suffixes for users to workplace join their devices.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Force

Forces the command to run without asking for user confirmation.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-UpnSuffix

Specifies a UPN suffix. The cmdlet removes the UPN suffix that you specify as a valid registration UPN suffix.

Type:String
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

String

String objects are received by the UpnSuffix parameter.