Next, I selected the space between ping and the server name, and copied this to the clipboard. Next, I selected the contents of all these cells, copied to my clipboard, opened Notepad, and pasted the data in. On each row, I added a ping before the server name and Parameters afterwards. Next, I added in some fields that would aid me in converting this into a text editor to make it scriptable. I had a list of servers in XLS format that I exported from System Center Configuration Manager 2012, it looked something like this, except they were different names and I had over a thousand of them: Hopefully other sysadmins out there find this useful. What if you needed to ping a long list of hundreds or thousands of servers? What if you also wanted that results to be put into a text file or csv file? I was put in this situation this week and instead of manually pinging thousands of servers (because we all know that would be SO much fun!), I made a custom script that will do it for me. ![]() Just fire up a command prompt or PowerShell and type, “ping MYSERVER01” and press enter. ![]() As a System Administrator, I use this utility on a daily basis. Have you ever been in a situation where you needed to ping a server? Most everyone that has used a computer has done this at some point.
0 Comments
Leave a Reply. |