O'Reilly logo

Windows Server 2016 Automation with PowerShell Cookbook - Second Edition by Thomas Lee

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How it works...

In step 1, you compare the ipconfig.exe Windows console command with the (newer) Get-NetIPConfiguration cmdlet. Both output the basic IP configuration. ipconfig does not, by default, return the details of the configured DNS Server. You have to use the /all switch to view that. Get-NetIPConfiguration returns more information as you can see here:

Step 2 looks at ways you can check that a remote system is up and running. Traditionally, you would have used ping.exe. The ping.exe uses ICMP echo request and echo request to implement ping. However, some routers, gateway devices, and hosts turn off ICMP, making ping less than useful. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required