Remove-CsKerberosAccountAssignment

Removes one or more Kerberos account assignments. This cmdlet was introduced in Lync Server 2010.

Syntax

Remove-CsKerberosAccountAssignment
      [-Identity] <XdsIdentity>
      [-Force]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

In Microsoft Office Communications Server 2007 and Microsoft Office Communications Server 2007 R2, IIS ran under a standard user account. This had the potential to cause issues: if that password expired you could lose your Web Services, an issue that was often difficult to diagnose. To help avoid the issue of expiring passwords, Skype for Business Server enables you to create a computer account (for a computer that doesn't actually exist) that can serve as the authentication principal for all the computers in a site that are running IIS. Because these accounts use the Kerberos authentication protocol, the accounts are referred to as Kerberos accounts and the new authentication process is known as Kerberos web authentication. This enables you to manage all your IIS servers by using a single account.

To run your servers under this new authentication principal, you must first create a computer account (which, again, is not tied to an actual computer) by using the New-CsKerberosAccount cmdlet; this account is then assigned to one or more sites. After the assignment has been made, the association is enabled by running the Enable-CsTopology cmdlet; among other things, this creates the required service principal name (SPN) in Active Directory Domain Services. SPNs provide a way for client applications to locate a particular service.

Each Skype for Business Server site can be associated with, at most, a single Kerberos account. (However, each account can be associated with multiple sites.) At any time you can use the Remove-CsKerberosAccountAssignment cmdlet to remove the association between a site and an account. This cmdlet does not delete the account in question; it simply severs the association between the account and the site, effectively disabling Kerberos web authentication in that site.

Note that, after running the Remove-CsKerberosAccountAssignment cmdlet you must then run the Enable-CsTopology cmdlet. This removes the account's service principal name from Active Directory and complete disables Kerberos web authentication.

Examples

-------------------------- Example 1 ------------------------

Remove-CsKerberosAccountAssignment -Identity "site:Redmond"

Enable-CsTopology

The commands shown in Example 1 remove the Kerberos account assignment from the Redmond site, then call the Enable-CsTopology cmdlet to finish disabling Kerberos web authentication.

-------------------------- Example 2 ------------------------

Get-CsKerberosAccountAssignment | Remove-CsKerberosAccountAssignment

Enable-CsTopology

In Example 2, all the Kerberos account assignments currently in use are deleted. To do this, the first command calls the Get-CsKerberosAccountAssignment cmdlet (without any parameters) in order to return a collection of all the Kerberos account assignments. This collection is then piped to the Remove-CsKerberosAccountAssignment cmdlet, which deletes each assignment in the collection. When that's done, the second command in the example calls the Enable-CsTopology cmdlet to finish disabling Kerberos web authentication.

Required Parameters

-Identity

Unique identifier of the site where the Kerberos account assignment is to be removed. (This is the Identity of the site, not of the Kerberos account.) For example: -Identity "site:Redmond".

Type:XdsIdentity
Position:2
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
Applies to:Lync Server 2010, Lync Server 2013, Skype for Business Server 2015

Optional Parameters

-Confirm

Prompts you for confirmation before executing the command.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Lync Server 2010, Lync Server 2013, Skype for Business Server 2015
-Force

When present, suppresses all error messages except for fatal errors.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Lync Server 2010, Lync Server 2013, Skype for Business Server 2015
-WhatIf

Describes what would happen if you executed the command without actually executing the command.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Lync Server 2010, Lync Server 2013, Skype for Business Server 2015

Inputs

Microsoft.Rtc.Management.WritableConfig.Settings.KerberosAccount.KerberosAccountAssignment object. The Remove-CsKerberosAccountAssignment cmdlet accepts pipelined instances of the Kerberos account assignment object.

Outputs

None. The Remove-CsKerberosAccountAssignment cmdlet does not return any objects or values. Instead, the cmdlet deletes existing instances of the Microsoft.Rtc.Management.WritableConfig.Settings.KerberosAccount.KerberosAccountAssignment object.