PowerShell Logo Small

Remove-DnsClientNrptRule



This is the built-in help made by Microsoft for the command 'Remove-DnsClientNrptRule', in PowerShell version 4 - as retrieved from Windows version 'Microsoft Windows 8.1 Enterprise' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Removes the specified DNS client Name Resolution Policy Table (NRPT) rule.

SYNTAX


Remove-DnsClientNrptRule [-Name] <String> [-AsJob] [-CimSession <CimSession[]>] [-Force] [-GpoName <String>] [-PassThru] [-Server <String>] [-ThrottleLimit <Int32>] [
-Confirm] [-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Remove-DnsClientNrptRule cmdlet removes the specified DNS client Name Resolution Policy Table (NRPT) rule.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?linkid=287330
Add-DnsClientNrptRule
Get-DnsClientNrptGlobal
Get-DnsClientNrptPolicy
Get-DnsClientNrptRule
Set-DnsClientNrptGlobal
Set-DnsClientNrptRule

REMARKS

<

Examples


EXAMPLE 1

PS C:\>Remove-DnsClientNrptRule -GpoName TestGPO -Name "{1326d9d0-4fb5-4fed-9f67-f53637b85010}" -PassThru -Server host1.com -Force



This example removes the NRPT rule named {1326d9d0-4fb5-4fed-9f67-f53637b85010} on the server named host1.com.




EXAMPLE 2

PS C:\>Remove-DnsClientNrptRule -Name "DA-{274D94E4-E38B-4997-BA9F-84700712C09E}" -PassThru
Confirm
Removing NRPT rule for the namespace nls.corp.contoso.com with
DAEnable: Enable,
DnsSecValidationRequired: Disabled,
NameEncoding: Disable
NameServers: No
Do you want to continue?
[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): Y

Name : DA-{274D94E4-E38B-4997-BA9F-84700712C09E}
Version : 1
Namespace : {nls.corp.contoso.com}
IPsecCARestriction :
DirectAccessDnsServers :
DirectAccessEnabled : True
DirectAccessProxyType : UseDefault
DirectAccessProxyName :
DirectAccessQueryIPsecEncryption :
DirectAccessQueryIPsecRequired : False
NameServers :
DnsSecEnabled : False
DnsSecQueryIPsecEncryption :
DnsSecQueryIPsecRequired :
DnsSecValidationRequired :
NameEncoding : Disable
DisplayName :
Comment :

This version of the cmdlet performs the task without user confirmation.
PS C:\>Remove-DnsClientNrptRule -Name "DA-{274D94E4-E38B-4997-BA9F-84700712C09E}" –PassThru -Force
Name : DA-{274D94E4-E38B-4997-BA9F-84700712C09E}
Version : 1
Namespace : {nls.corp.contoso.com}
IPsecCARestriction :
DirectAccessDnsServers :
DirectAccessEnabled : True
DirectAccessProxyType : UseDefault
DirectAccessProxyName :
DirectAccessQueryIPsecEncryption :
DirectAccessQueryIPsecRequired : False
NameServers :
DnsSecEnabled : False
DnsSecQueryIPsecEncryption :
DnsSecQueryIPsecRequired :
DnsSecValidationRequired :
NameEncoding : Disable
DisplayName :
Comment :



This example removes the NRPT rule named {1326d9d0-4fb5-4fed-9f67-f53637b85010}.