6

I'm working on a Server 2012R2 server. I want to use the comdlets like get-dnsserverresourcerecord in the dns server module for PowerShell.

It is not available in the ISE or in the list of modules.

I have powershell version 4.0. I am operating on server 2012r2. Where can I find this module? Is it possible to download or enable this module? I've looked at a lot of docs and posts, and they are all written in such a way that indicates the module should just be installed.

My plan is to use this server to execute DNS commands against another 2012r2 server running a DNS server. This server itself does not have a DNS server intalled.

Thank you.

Mr.Budris
  • 215
  • 1
  • 3
  • 10

1 Answers1

9

Budris

On your management server install the Remote Server Administration Tools > Role Administration tools > DNS Server tools by using Server Manager and then selecting Add Roles and Features from the Manage menu (you will find the tools on the feature list). The DNS Server tools include the DNS PowerShell module.

MIke,

Michael Brown
  • 3,254
  • 2
  • 11
  • 11
  • boom -- that's it. For the anyone else, here's a good link: http://windowsitpro.com/windows-server-2012/q-im-missing-some-windows-server-2012-administration-tools-how-do-i-add-them I'd upvote for the speed, but I don't have the rep to do so yet :) – Mr.Budris May 18 '17 at 15:28
  • Glad I could help, could you mark the question as answered please? – Michael Brown May 18 '17 at 15:30
  • yep, I'm able to in about 30 seconds – Mr.Budris May 18 '17 at 15:31
  • How do you install this via PowerShell? – Kappacake Jun 03 '19 at 13:30
  • 1
    For more recent Windows versions (e.g. Windows 10 October 2018 Update or later) you can install via the command line: `Add-WindowsCapability -Online -Name Rsat.Dns.Tools~~~~0.0.1.0` reference: https://stackoverflow.com/a/73347338/1703887 – csrowell Feb 10 '23 at 17:35