Clear-DnsServerCache
DNS Cmdlet: Clear-DnsServerCache
Syntax:
Clear-DnsServerCache[-ComputerName <String>][-Force][-CacheScope <String>] [-CimSession <CimSession[]>][-ThrottleLimit <Int32>][-AsJob][-WhatIf][-Confirm] [<CommonParameters>]
Parameters and Description:
| Parameters | Description |
|---|---|
| ComputerName (Type: String) | Enter the IP address, NETBIOS name, FQDN or host name of the DNS server. |
| Force (Type: SwitchParameter) | Forces the command to execute without asking for user confirmation. |
| CacheScope (Type: String) | Denotes the name of the cache scope to be cleared. |
| CimSession (Type: CimSession [] ) | Runs the cmdlet on a remote computer or session. For example: the output of Get-CimSession or New-CimSession cmdlet. By default, the cmdlet is run on the local computer in the current session. |
| WhatIf (Type: SwitchParameter) | Shows the result of running this cmdlet. |
| ThrottleLimit (Type: Int32) | Specifies the maximum number of concurrent operations that can be allowed to run this cmdlet. If its value is 0 or not specified, PowerShell will calculate the right throttle limit automatically. |
To know further on Add-DnsServerCache cmdlet, please refer to this article.
Purpose of this cmdlet:
The Clear-DnsServerCache cmdlet lets you clear the resource records from a DNS server cache.
Example:
Clear-DnsServerCache -ComputerName "Win12S-05.DNSServer-01.abc.com" -Force
The above command clears the DNS server cache on the specified DNS server. Since Force is used, the command is executed without user's confirmation.
With purely GUI-driven actions, and purpose-built features, ADManager Plus enables you to:
- Bulk create, modify, enable/disable, and delete computers, contacts, groups and so on
- Cleanup AD by identifying and deleting the inactive accounts and removing them
- Automated identification and cleanup of stale AD accounts, and more.
Download the 30-day free trial of ADManager Plus to explore how it can improve the way you manage your AD environment.
Active Directory Management and Reporting Solution
ADManager Plus is a web-based tool which offers the capability to manage Active Directory attributes in bulk easily using CSV files or templates. Get built-in reports on users and export them in CSV, PDF, HTML and XLSX formats.
Unravel end-to-end Active Directory management with ADManager Plus
-
- ADManager Plus Active Directory Management & Reporting
- ADAudit Plus Hybrid AD, cloud, and file auditing and security
- EventLog Analyzer Real-time Log Analysis & Reporting
- ADSelfService Plus Self-Service Password Management
- AD360 Integrated Identity & Access Management
- Log360 Comprehensive SIEM and UEBA
- AD Free Tools Active Directory FREE Tools
