r/ScriptSwap • • Jun 30 '16
Server Ping Script for r/2007scape
I'm trying to make a script that will ping old school runescape servers and output the results to a text file in the temp folder. I'd really like some help with finding a way to display the results via domain name (or server name) instead of IP. This is my first powershell script, so feel free to shred my script!
https://github.com/FireSpark142/RunescapePing/blob/master/RunescapePingTest.ps1
5
Upvotes
View all comments
Show parent comment
1
u/brian4120 Jun 30 '16
Realized you were already using the hostname of the server, so no Resolve-DNSName is needed.
Slow morning so I rewrote your script to take in a list of Servers then report Online/Offline status.
Server.txt format is simple, one server per line
Check out /r/powershell if you are interested in doing more powershell scripting!