
224 Cloud ComPuting networking
12. After the PowerShell ISE is opened, click File | New. en, copy and paste
the code in Step 10 as shown in Figure 6.23.
13. Press F5 to test the script. e result should be similar to the one in Figure 6.24.
If one needs to ping a large number of servers at the same time, the vari-
able ServerIPs can also take the list of IPs or server names from an external
text le.
14.
Save the script in the C drive with the name myping.ps1. en, exit the
PowerShell ISE.
15.
To run the script, open PowerShell. Change to the C drive and run the script
with the following two commands.
Set-ExecutionPolicy Unrestricted