[Autogenerated] Welcome to this module on automating DH CP with PowerShell.
In this module,
we're going to dive into getting started with DH CP server management.
We're going to configure some scopes,
manage leases and reservations and work with DH CP options.
So let's get going.
Now, why would you want to invest your time and energy into this?
Allow me to lay it out for you to kick things off.
Let's talk about reducing administrative overhead.
Imagine a typical day of manually configuring DH CP scopes and options.
Now picture cutting that time in half or even more with PowerShell.
No more, clicking through endless dialogue boxes,
you can define your entire DH CP configuration in a simple script.
Now let's tackle the idea of automating repetitive tasks.
Say you have to set up scopes for different V lanes in
your organization with various subnets.
Instead of spending hours going through each scope individually,
you can use a PowerShell script to loop through an array of
subnets and set them all up in one go.
It's not just a time saver.
I mean that's a game changer.
Now, let's talk about streamlining multis server management.
You're probably familiar with the scenario where you have DC P servers
at different locations or maybe even in the cloud PowerShell allows you
to manage them all from a single point.
You can run a script and simultaneously update configurations on
servers that are miles or even continents apart.
Then we have idempotent configuration scripts.
Now,
this might sound fancy but it's simple say you have a strict
server configuration policy with identity scripts,
you can configure the same powers, show commands again and again.
And the outcome will be identical every time this is
compliance and consistency rolled into one.
And lastly, it's all about increased efficiency with automation.
You're not just doing tasks quicker, you're doing them more reliably.
And that's the kind of skill set that makes you an
invaluable member of any it team.
Let's kick off the demos here by doing a side by side
comparison to show you just how much time you can save by
managing your DC P scopes with PowerShell.
First up,
we'll walk you through the steps of creating a DH CP scope
using the Gooey on a Windows server.
This is the way most of us started right,
clicking around in the DH CP management console,
then we'll switch gears and show you how to perform the same task.
But this time using power show commands quick and efficient.
That's the goal.
And to make things interesting, we're going to time both methods.
By the end of this demo,
you'll see firsthand the time you could be saving
which in the it world time is money.
And then finally, we'll wrap up by analyzing the pros and cons of each method.
Spoiler.
Alert PowerShell is likely going to come out on top,
but it's good to know your options.
So here we are on my DC P server with a PowerShell core window
open and the DC P management console open.
I just wanna make sure that I'm not going to be doing any talking since
this is actually just going to be a head to head combo.
So I don't want to slow myself down talking and to give each of the options,
the, the upper hand, i'll go ahead and start the timer.
I'm going to create the scope in PowerShell and then create it
in the gooey and then we're going to compare.
All right.
So let's get started time.
So I created the scope just a very basic scope with the gooey.
So now let's figure out how long that actually took.
So the gooey start time.
Let's see what that value was.
It was 443 and 40 seconds and we stopped at 444 and six seconds.
So it took about 26 seconds and roughly 30 seconds or so to
create a standard DH CP scope with the gooey.
Now that we've done this with a gooey,
let's see how long this actually takes with Paha,
which is essentially just going to be,
let's see how fast Adam can type and we are done check and get date.
All right.
Now we check the difference and let's see, what is the difference there?
4 49 29 and 4 48 58.
So that's like, I don't know, 31 seconds.
It's a, it's about the same.
That's because the blood of my fat _________ in my, my typing.
But the,
the point of comparing these side by side wasn't
generally just the one off thing.
It's, it's the ability to copy and paste.
So let's say that I want to create another one of these scopes,
I could simply up arrow a few times then change the start range and the
in range or the subnet mask where they need to do.
And it would take me five seconds.
I mean,
literally just three seconds even just to change a few numbers
and hit the inner button versus with the gooey,
I would have to come up here right-click new scope,
blah, blah, blah, blah yada, ya yada and do the same thing again.
So using PowerShell and to automate this process,
which you'll see throughout this module is going to
save you tons of time in the long run.