Set-NfsMappingStore

Set-NfsMappingStore

Modifies configuration settings for an identity mapping store.

Sintaxis

Parameter Set: InputObject (cdxml)
Set-NfsMappingStore [-ADDomainName <String> ] [-AsJob] [-CimSession <CimSession[]> ] [-EnableADLookup <Boolean> ] [-EnableLdapLookup <Boolean> ] [-EnableUNMLookup <Boolean> ] [-InputObject <CimInstance[]> ] [-LdapNamingContext <String> ] [-LdapServer <String> ] [-PassThru] [-ThrottleLimit <Int32> ] [-UNMServer <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Descripción detallada

The Set-NfsMappingStore cmdlet modifies configuration settings for an identity mapping store that a Network File System (NFS) server uses.

You can enable only one mapping store. Valid values are: Active Directory domain, Lightweight Directory Access Protocol (LDAP) server, and User Name Mapping (UNM) server. The specified mapping store must be accessible from an NFS server.

Note that you cannot modify password lookup by using the Set-NfsMappingStore cmdlet. Password lookup is automatically enabled when passwd file is located in a folder in the <system volume>:\system32\drivers\ path. You can also enable password mapping to Active Directory, LDAP, or UNM.

Parámetros

-ADDomainName<String>

Specifies the Active Directory domain name that an NFS server uses as an identity mapping store.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-AsJob

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-CimSession<CimSession[]>

Ejecuta el cmdlet en una sesión remota o en un equipo remoto. Escriba un nombre de equipo o un objeto de sesión, como la salida de un cmdlet New-CimSession o Get-CimSession. El valor predeterminado es la sesión actual en el equipo local.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-EnableADLookup<Boolean>

Sets Active Directory Domain Services (AD DS) as the mapping store on an NFS server. If EnableADLookup is enabled and ADDomainName is not explicitly configured, then the default domain (that is, the domain to which the NFS server is joined) is used as a mapping store.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-EnableLdapLookup<Boolean>

Sets an LDAP server or an Active Directory Lightweight Directory Services (AD LDS) server as the mapping store on an NFS server.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-EnableUNMLookup<Boolean>

Sets a User Name Mapping (UNM) server as the mapping store on an NFS server.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

0

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-InputObject<CimInstance[]>

Especifica la entrada para este cmdlet. Puede usar este parámetro o puede canalizar la entrada a este cmdlet.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByValue)

¿Aceptar caracteres comodín?

false

-LdapNamingContext<String>

Specifies an LDAP naming context that an NFS server uses when it performs LDAP queries.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-LdapServer<String>

Specifies an LDAP server name or AD LDS server name that stores identity mapping. This information is used to get identity mapping information when LDAP lookup is enabled by using the LdapLookup parameter.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-PassThru

Returns an object that represents the item with which you are working. By default, this cmdlet does not generate any output.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-ThrottleLimit<Int32>

Especifica el número máximo de operaciones simultáneas que se pueden establecer para ejecutar el cmdlet. Si se omite este parámetro o es especifica un valor de 0, Windows PowerShell ® calcula un límite óptimo para el cmdlet en función del número de cmdlets de CIM que se estén ejecutando en el equipo. El límite solo se aplica al cmdlet actual, no a la sesión ni al equipo.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-UNMServer<String>

Specifies a UNM server. When UNM lookup is enabled by using the EnableUNMLookup parameter, this information is used to get identity mapping information.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿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.

  • Microsoft.Management.Infrastructure.CimInstance#root/Microsoft/Windows/NFS/MSFT_NfsMappingStore

Ejemplos

Example 1: Enable an AD DS store

This command enables an AD DS store on a local NFS server and sets the AD DS store mapping store to Contoso.com.

PS C:\> Set-NfsMappingStore -EnableADLookup $true -ADDomainName "Contoso.com"

Example 2: Enable the default Active Directory Domain

This command enables the default AD DS store on a local NFS server and sets the default domain as the mapping store. The default domain refers to the domain to which this NFS server belongs.

PS C:\> Set-NfsMappingStore -EnableADLookup $true

Example 3: Enable LDAP Lookup

This command enables an LDAP mapping lookup on a local NFS server, and sets the LDAP mapping store to Contoso-LDAP.

PS C:\> Set-NfsMappingStore -EnableLDAPLookup $true –LdapServer "Contoso-LDAP"

Temas relacionados

Get-NfsMappingStore

Install-NfsMappingStore

Test-NfsMappingStore

Get-NfsMappedIdentity