Remove-NfsNetgroup

Remove-NfsNetgroup

Removes a netgroup.

Sintaxis

Parameter Set: Default
Remove-NfsNetgroup [-NetGroupName] <String> [[-LdapServer] <String> ] [[-LdapNamingContext] <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Descripción detallada

The Remove-NfsNetgroup cmdlet removes a netgroup.

You can remove netgroups that are stored in Active Directory Domain Services (AD DS) or Active Directory Lightweight Directory Services (AD LDS) only. To remove a netgroup that is stored in Network Information Service (NIS), use the corresponding NIS administration tool. For more information about how to manage an NIS server, see Server for NIS Administration.

If you do not specify a netgroup store, the Remove-NfsNetgroup cmdlet removes the netgroup from a netgroup store that is configured on the local computer.

Parámetros

-LdapNamingContext<String>

Specifies the Lightweight Directory Access Protocol (LDAP) naming context of a netgroup store.

Alias

dn

¿Requerido?

false

¿Posición?

3

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

-LdapServer<String>

Specifies an LDAP server name of a netgroup store.

Alias

ldap

¿Requerido?

false

¿Posición?

2

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

-NetGroupName<String>

Specifies the name of a netgroup to remove.

Alias

name,ngname

¿Requerido?

true

¿Posición?

1

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 an NFS netgroup

This command removes an NFS netgroup that is named AppServers from a netgroup store in Contoso.com.

PS C:\> Remove-NfsNetgroup -NetGroupName "AppServers" -LdapInstanceName "Contoso.com"

Example 2: Remove an NFS netgroup from aconfigured store

This command removes an NFS netgroup that is named AppServers. Because the netgroup store is not specified, the cmdlet removes the netgroup from the netgroup store that is configured on the local NFS server.

PS C:\> Remove-NfsNetgroup -NetGroupName "AppServers"

Temas relacionados

Get-NfsNetgroup

Set-NfsNetgroup

New-NfsNetgroup