PowerShell Commands to import DNS server module

IT Guy
IT Guy used Ask the Experts™
on
What are the PowerShell Commands to import the PowerShell DNS server administration module within Server 2016?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Rated Freelancer on MS Technologies
Awarded 2018
Distinguished Expert 2018
Commented:
To search in all available menu:
Get-Module -ListAvailable | where{ $_.name -match "dns"}

Open in new window


To Import the DNS Module:
Import-module <name>
Import-module  DnsClient

Open in new window


To find out the Cmdlets within a module
Get-Command -Module <module>

Open in new window

Most Valuable Expert 2018
Distinguished Expert 2018
Commented:
If you need to search, do it with style.
This will display all automatically available modules; you can filter properly, and you can select one or more, and they'll be imported right away. The -PassThru at the end is just eye candy, so that you can see what happened ...
Get-Module -ListAvailable | Out-GridView -OutputMode Multiple | Import-Module -PassThru

Open in new window

Seth SimmonsSr. Systems Administrator
Commented:
shouldn't have to do anything special; should be available automatically
read this article

How to Manage Windows Server 2016 DNS Server Using PowerShell
https://www.msptechs.com/how-to-manage-windows-server-2016-dns-server-using-powershell/

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial