Table of contents
TLS
TOC
Collapse the table of content
Expand the table of content

Remove-NfsNetgroup

Last Updated: 3/8/2017

SYNOPSIS

Removes a netgroup.

SYNTAX

Remove-NfsNetgroup [-NetGroupName] <String> [[-LdapServer] <String>] [[-LdapNamingContext] <String>] [-WhatIf]
 [-Confirm] [<CommonParameters>]

DESCRIPTION

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.

EXAMPLES

Example 1: Remove an NFS netgroup

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

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

Example 2: Remove an NFS netgroup from a configured store

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

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.

PARAMETERS

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-LdapNamingContext

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

Type: String
Parameter Sets: (All)
Aliases: dn

Required: False
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-LdapServer

Specifies an LDAP server name of a netgroup store.

Type: String
Parameter Sets: (All)
Aliases: ldap

Required: False
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-NetGroupName

Specifies the name of a netgroup to remove.

Type: String
Parameter Sets: (All)
Aliases: name, ngname

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

Nothing

NOTES

Get-NfsNetgroup

New-NfsNetgroup

Set-NfsNetgroup

© 2017 Microsoft