Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Remove-NfsNetgroup

Remove-NfsNetgroup

microsoft.fileservices.powershell.nfs.dll

Synopsis

Removes a netgroup.

Syntax

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

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

Parameters

-LdapNamingContext <String>

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

Aliases

dn

Required?

false

Position

3

Default value

None

Accept pipeline input?

True (ByPropertyName)

Accept wildcard characters?

false

-LdapServer <String>

Specifies an LDAP server name of a netgroup store.

Aliases

ldap

Required?

false

Position

2

Default value

None

Accept pipeline input?

True (ByPropertyName)

Accept wildcard characters?

false

-NetGroupName <String>

Specifies the name of a netgroup to remove.

Aliases

name,ngname

Required?

true

Position

1

Default value

None

Accept pipeline input?

True (ByPropertyName)

Accept wildcard characters?

false

-Confirm <SwitchParameter>

Prompts you for confirmation before running the cmdlet.

Aliases

None

Required?

false

Position

named

Default value

false

Accept pipeline input?

false

Accept wildcard characters?

false

-WhatIf <SwitchParameter>

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

Aliases

None

Required?

false

Position

named

Default value

false

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type


Return Type

Nothing

Notes

None

Examples

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"

Online Version
Get-NfsNetgroup
Set-NfsNetgroup
New-NfsNetgroup