In this demonstration,
we'll work with hybrid cloud network troubleshooting in Windows Servers.
Sound like a plan?
Speaking of which, I'm on a Windows Server 2022 member server right now.
Let me bring up an elevated PowerShell prompt,
and we're just going to be using just native built‑in
Windows Server Windows client PowerShell.
I would strongly recommend that you run an update‑help
so that you have local help files.
Why do I say that?
Well, when I teach people PowerShell basics,
we talk about the big three commands those are Get‑Command,
Get‑Help, and Get‑Member.
That Get‑Help, in particular, is so useful.
So what you can do is get‑help, pass it the name of a command,
like how about that Resolve‑DnsName command that I mentioned,
and just throw on Examples.
Now PowerShell doesn't ship with online help by default,
that's why it's important to run‑update help periodically.
And it'll give us here, hopefully, several examples.
And the way that the content developers at Microsoft work is
they start with the most basic common use case,
and then they gradually get more complicated.
So it looks like at base, you're resolving a DnsName,
passing in an FQDN, and it'll give you back an IP.
So I can do a Resolve‑DnsName dc 1, that's my local domain controller,
and I'll easily fetch the IP address.
So we could use Resolve‑DnsName as a very quick and easy way
to get the IP address of a remote host.
Resolve‑DnsName, how about syr.edu, Syracuse University.
I like to use that when I teach.
I'm from Syracuse, New York, full disclosure.
And I taught at SU for a while too,
so I like to pick on it and use it in examples and so on.
Note that you can do things like look for particular record types.
We definitely are looking at a variant of nslookup here.
That's really what we're talking about, all right?
So that's that, and that actually can go through a number of different commands.
Let's see, what are some other very common network troubleshooting?
Why don't we do a get‑help for Test‑NetConnection, and again, we'll do Examples.
Wow, that is really unfortunate.
I don't see any examples here.
I hate when that happens.
Let me actually make a note of that.
Something else you could try when you're
troubleshooting this stuff is do a ‑online.
The online version cannot be, I'll be darned.
Wow, that's really weird.
Okay. All right.