Level 1
0 / 100 XP

PowerShell for DNS Part 2

  • For this lecture I’ll will be working with the DNS manager on the **IPDC01 **server.
    • From your Windows 2016 server, login as Domain Administrator.
    • **Open Server Manager, tools, then open DNS Manager. **
    • If my DNS looks different than what you’ve seen in the course, that’s because this is our new server that’s been setup for our brand new PowerShell course.
    • Keep in mind, you will be able to apply what I show you on any Windows 2016 server.

**Let’s take a look at our zone information. **

Identifying the Zones will help you when we start typing our PowerShell one liners.

I’ll show you what I mean by one liner’s in a minute.

  • Click the server, in this case it’s IPDC01

  • You should have a forward and reverse lookup zone configured.

  • If you don’t, go ahead and stop the video and complete those two steps.

**Now let’s take a look at our zones. **

  • open the forward lookup zone. Notice the forward lookup zone called **instructorpaul.com **
  • **Notice the type of records that are in this Zone. We have our SOA, our Name Server record and we have several host records. **
  • Now go ahead and click the Reverse lookup zone Notice the name for our zone is **2.0.10.in-addr.arpa **

**Again, we have our Start of Authority our Name Server record and we several PTR records. **

  • **Now go ahead and minimize the DNS manager and the Server Manager. **

**Now let’s take a look at PowerShell First thing you’re going to want to do is setup Windows PowerShell ISE to run as administrator. **

**You won’t be able to run the commands running PowerShell in user mode. Let me show you what I mean. **

  • Click the search bar, type PowerShell. Now if I just go ahead and click Windows PowerShell it will come up in user mode, but that’s not what we want.** **
  • right click on Windows PowerShell ISE, then click pin to taskbar.** **
  • From the taskbar, right click on the Po…