Deploy Flush DNS by GPO

Tech Kin 1 Reputation point
2021-11-14T17:24:51.997+00:00

Dear Teams,

I want to create bat script ipconfig /flushdns push by active directory GPO.
If possible to share with me ipconfig /flushdns bat script file deployment process of documentation for AD GPO.

Thanks

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
8,258 questions
No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Dave Patrick 330.7K Reputation points
    2021-11-14T19:48:33.457+00:00

    You could do it remotely here.
    https://techgenix.com/clear-dns-cache-remote-computers/

    also check this one.
    https://learn.microsoft.com/en-us/windows-server/networking/dns/troubleshoot/disable-dns-client-side-caching

    --please don't forget to upvote and Accept as answer if the reply is helpful--


  2. Tech Kin 1 Reputation point
    2021-11-15T15:18:40.963+00:00

    Dear DSPatrick,
    Thanks for your advice.

    I want to deploy dns cache clear command (ipconfig /flushdns) push by active directory GPO. your reference link cannot be push GPO.
    if possible to share the docs throw GPO script for ipconfig flush dns.

    No comments

  3. Dave Patrick 330.7K Reputation points
    2021-11-15T15:25:24.36+00:00

    Windows provides a set of policy-driven user logon, user logoff, computer startup, and computer shutdown scripts that you can manage by using the Group Policy snap-in.

    Scripts (Startup/Shutdown) Use this extension to specify the scripts that run when you start and shut down the computer. To configure the computer startup and shutdown scripts, start the Group Policy snap-in, expand Computer Configuration\Windows Settings, click Scripts (Startup/Shutdown), and then in the right pane, double-click the script that you want to configure. These scripts run with the Local System account.

    Scripts (Logon/Logoff) Use this extension to specify the scripts that run when a user logs on or logs off the computer. To configure the user logon and logoff scripts, start the Group Policy snap-in, expand User Configuration\Windows Settings, click Scripts (Logon/Logoff), and then in the right pane double-click the script that you want to configure. These scripts run with the User account and not on the Administrator account.

    --please don't forget to upvote and Accept as answer if the reply is helpful--


  4. Limitless Technology 37,351 Reputation points
    2021-12-16T19:44:03.89+00:00

    You can create .bat file with below command and push via start up script or login script using gpo.

    Below is Microsoft reference guide to push script via GPO.
    https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/dn789196(v=ws.11)

    -----

    --If the reply is helpful, please Upvote and Accept as answer--

    No comments