Remove-NfsMappedIdentity

Remove-NfsMappedIdentity

Removes a mapping between a UNIX account and a Windows account.

Sintaxis

Parameter Set: User
Remove-NfsMappedIdentity -UserName <String> [-GroupIdentifier <Int32> ] [-LdapNamingContext <String> ] [-MappingStore <MappingStoreType> ] [-Server <String> ] [-UserIdentifier <Int32> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: Default
Remove-NfsMappedIdentity [-GroupIdentifier <Int32> ] [-LdapNamingContext <String> ] [-MappingStore <MappingStoreType> ] [-Server <String> ] [-UserIdentifier <Int32> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: Group
Remove-NfsMappedIdentity -GroupName <String> [-GroupIdentifier <Int32> ] [-LdapNamingContext <String> ] [-MappingStore <MappingStoreType> ] [-Server <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Descripción detallada

The Remove-NfsMappedIdentity cmdlet removes a mapped identity from a Network File System (NFS) server mapping store.

A mapped identity associates a Windows user account or group account to a UNIX user account or group account. A user ID (UID) or group ID (GID) identifies a UNIX account namespace. These elements are associated with the corresponding elements of a Windows account namespace: a user name or a group name. By using a mapped identity, a user who is logged on to a UNIX domain can access shared resources in a Windows domain without having to log on to the Windows domain.

For more information about NFS, see Network File System. For more information about NFS account mapping, see NFS Account Mapping Guide and Identity Management for UNIX.

Parámetros

-GroupIdentifier<Int32>

Specifies the group identifier of a mapped identity.

Alias

GroupId,gid

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

-GroupName<String>

Specifies the SAMAccountName of the group account.

Alias

group

¿Requerido?

true

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

-LdapNamingContext<String>

Specifies the Lightweight Directory Access Protocol (LDAP) naming context of an NFS identity mapping store. You can use this parameter to search for mapped identities in the specified naming context.

Alias

dn

¿Requerido?

false

¿Posición?

named

Valor predeterminado

DefaultNamingContext

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

-MappingStore<MappingStoreType>

Specifies the type of identity mapping store from which the Remove-NfsMappedIdentity cmdlet removes a mapped identity. When this parameter is not specified, the Remove-NfsMappedIdentity cmdlet gets the store configuration settings from the NFS server. Valid values are AD and LDAP.

Alias

store

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

-Server<String>

Specifies the LDAP server instance of a store that NFS server uses. This can be a domain name, Active Directory Lightweight Directory Services (AD LDS) server name, or LDAP server name. When this parameter is not specified, the Remove-NfsMappedIdentity cmdlet tries to connect to either the LDAP store on the local computer at port 389 when MappingStore is LDAP, or the Active Directory Domain Services (AD DS) domain of the computer when MappingStore is Active Directory.

Alias

LdapServer,ADDomainName

¿Requerido?

false

¿Posición?

named

Valor predeterminado

localhost:389

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

-UserIdentifier<Int32>

Specifies the user identifier of a user account.

Alias

UserId,uid

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

-UserName<String>

Specifies the SAMAccountName of a user account.

Alias

user

¿Requerido?

true

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

-Confirm

Solicita confirmación antes de ejecutar el cmdlet.

¿Requerido?

false

¿Posición?

named

Valor predeterminado

falso

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-WhatIf

Muestra lo que sucedería si se ejecutara el cmdlet. El cmdlet no se ejecuta.

¿Requerido?

false

¿Posición?

named

Valor predeterminado

falso

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

<CommonParameters>

Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.

Salidas

El tipo de resultado es el tipo de objetos que emite el cmdlet.

  • Nothing

Ejemplos

Example 1: Remove identity mapping for a user

This command removes a mapped identity that is stored in the configured AD LDS instance, on a server where this command is run, for the user account LSPolly.

PS C:\> Remove-NfsMappedIdentity -MappingStore "LDAP" -UserName "LSPolly"

Example 2: Remove an identity mapping for a group

This command removes a mapped identity that is stored in a configured AD DS map store and that corresponds to the group account that has the group identifier 22.

PS C:\> Remove-NfsMappedIdentity -MappingStore "AD" -GroupIdentifier 22

Temas relacionados

Get-NfsMappedIdentity

New-NfsMappedIdentity

Resolve-NfsMappedIdentity

Set-NfsMappedIdentity

Test-NfsMappedIdentity

Get-NfsMappingStore

Install-NfsMappingStore

Set-NfsMappingStore

Test-NfsMappingStore