How to customize ping with Windows PowerShell?

Windows is one of the largest companies in the world, this is mainly due to the fact that every time it updates its operating system, impressive and very functional functions are added (not counting those that already came from before), with that In remember that today you will learn how to perform a custom ping with Windows PowerShell.

And, although for many it is not necessary to use the system that allows you to enter commands in the Windows, the reality is that there are many functions that can be activated within it that will make life easier for anyone (such as being able to see the programs installed on a local or remote computer with Windows Powershell). That's why you have to venture out to get more knowledge about it.



    Custom ping with Windows PowerShell

    To start custom ping with Windows PowerShell, you obviously need to log into your Windows first and then enter the above program.

    Here you must enter the following script: Clear$IP = Read-Host -Prompt 'Introduce IP'While ($TRUE){if((Test-Connection -computer $IP -Delay 1 -quiet)) {$Fecha = Get-DateWrite -Host -ForegroundColor Green "$(Get-Date -format "dd-MM-yyyy HH:mm:ss"): $IP Ok!"}Else {$Fecha = Get-DateWrite-Host -ForegroundColor Red "$(Get -Data -formato "gg-MM-aaaa HH:mm:ss"): $IP Ko!"}}

    This is what will help you customize the ping, as as you can read what it will do is activate some commands that change the color of the connections once they are pinged.

    If the connection is good and working properly, it will appear in green once its IP has been entered in Powershell, but if it fails or is not active it will appear in red.


    This obviously differs from the normal ping which is always empty, and it's much better, because you won't have to read anything to know which connections are working as they should, so you can save time.


    Read How to set a different vibration for each contact on Android?

    Save the executable file in a folder

    In addition to the above, you can also save the file where you placed the script as an executable, so that you don't have to go through the whole process again.

    To achieve this you just have to click on the option " Fillet "located in the top bar and then select" Save with name". In the window that will appear, you have to choose the folder where you want to save, once done click on " Save " to confirm.

    When you want to use the executable you just have to go to the folder of your choice and right click on the file. This will open a drop-down menu where you need to select "Run with PowerShell", there you will be able to place the IP and see the results in color.

    What is a ping?

    With the above you have read, you should already be clear on how to perform custom ping with Windows PowerShell. So as a little extra today you will also learn what a ping is.

    Basically a ping is a diagnostic utility that checks it status of a communication on a computer, between the host and one or more remote computers that belong to a network and perform an IP.



    It is used to measure the time taken by two points to communicate. As for the term ping, it refers to the latency or delay between connections of a network game.

    There is also another type of ping used in ATM networks. What it does is check if the ATM links are defined correctly. The main functions of ping are to verify connections such as: Internet, DNS, TCP / IP protocols, local network, among others.


    Read How to Clear or Delete VLC Watch or Play History

    So knowing its correct use is of the utmost importance for anyone with an electronic device or a PC, as exact diagnoses can be made with it (you can literally ping an IP address or web page too, just to see if it works) .


    Now that you know how to perform custom ping with Windows PowerShell you should immediately test it using the method you learned today. Remember that this program also allows you to do things like https://miracomosehace.com/hacer-listar-eventos-encendido-apagado-windows-powershell/ make event lists on and off your PC, or download a file from the internet, so you should know more.

    add a comment of How to customize ping with Windows PowerShell?
    Comment sent successfully! We will review it in the next few hours.