Remove-AdfsDeviceRegistrationUpnSuffix
Remove-AdfsDeviceRegistrationUpnSuffix
Removes a custom UPN suffix.
Syntax
Parameter Set: Default
Remove-AdfsDeviceRegistrationUpnSuffix [-UpnSuffix] <String> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]
Detailed 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.
Parameters
-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 |
-UpnSuffix<String>
Specifies a UPN suffix. The cmdlet removes the UPN suffix that you specify as a valid registration UPN suffix.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
True (ByValue) |
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.
- string
Outputs
The output type is the type of the objects that the cmdlet emits.
Examples
Example 1: Remove a custom UPN suffix
This command removes the UPN suffix Child.Contoso.com from the list of acceptable UPN suffixes for users to workplace join their devices.
PS C:\> Remove-AdfsDeviceRegistrationUpnSuffix -UpnSuffix "Child.Contoso.com" -Force
Related topics
Get-AdfsDeviceRegistrationUpnSuffix