Great news for all the scripting people out there. New Release: PowerCLI 11.4.0 #PowerCLI #Scripting #WhatsNew
August is always a great month when it comes to new releases, and this year is no different. Even before VMworld, there have already been announcements for vSphere 6.7 Update 3, NSX-T 2.4.2, and a new version of HCX. The PowerCLI team has one more exciting release for you in the form of PowerCLI 11.4.0! […] The post New Release: PowerCLI 11.4.0 appeared first on VMware PowerCLI Blog.
VMware Social Media Advocacy
import-CSV "" |
$result = Test-Connection -ComputerName
$_.Name -Count 1 -Quiet $_.name, $result -join ',' | out-file "c:\scripts\PingSweep\computer_results.txt" -Append
COMMAND /BATCH SCRIPT
Create list of computers to ping Comupters.txt
Create batch file pingsweep.bat
for /f %%s in (computer.txt) do (ping -n 1 %%s) open cmd pingsweep.bat >> PINGSWEEPQUOTES.TXT
Please test all scripts in a lab environment. We have no liability for any issues caused.
If you would prefer a more advanced script in PowerShell, check out this example of a ping script in PowerShell written by Jamie Crookes "Ping utility function/module for PowerShell" can be found here http://www.powerscript.net/handy-ping-utility-function/