Back to Lab Listing

Lab Objective:

Learn how to use some Microsoft CLI commands.

Lab Purpose:

You will revert to the command-line tools for troubleshooting, so you need to know the most common ones.

Lab Tool:

Windows 10

Lab Topology:

Use a single PC. Note that if you use a virtual machine, you may not always see the same options.

microsoft command line interface 2

Lab Walkthrough:

Task 1:

Use the search bar and search for ‘cmd’. You should see ‘Command Prompt’ as an option that you can select. This will take you to the Microsoft Command-Line Tool.

microsoft command line interface 22

Task 2:

Type ipconfig /? and note all your options. Here is a partial result capture.

microsoft command line interface 23

Task 3:

Type ipconfig and press Enter, and note the information provided. Next, type ipconfig /all and make a note of the extra information provided.

microsoft command line interface 24

Task 4:

Make a note of your IP address from the previous step. You may need to request a change of IP address from your DHCP server for troubleshooting reasons. To do this, issue the ipconfig /release and then the ipconfig /renew commands.

Note that you might be allocated the same IP address again, depending on how DHCP is configured on your network.

microsoft command line interface 25

Task 5:

In order to check the DNS cache, issue the ipconfig /display dns command. The DNS maps IP addresses to hostnames.

microsoft command line interface 26

Now ping the website 101labs.net. Then reissue the ipconfig /displaydns command.

microsoft command line interface 27

Task 6:

You may need to flush your DNS cache as a troubleshooting step. Issue the ipconfig /flushdns command and then check that the cache is empty.

microsoft command line interface 28

Notes:

Please try out some of the other switches available with the command.

Newsletter Subscribe

Stay Informed, Stay Inspired: Subscribe for Cutting-Edge IT-Certification Insights

101 Labs Newsletter