I work in IT and continuously use the Internet to help solve my problems. I thought I would "give back" by re-posting the fixes that have worked for me.
Goole Ads
Tuesday, August 18, 2015
Iterating over text file to run psexec - batch file and Power Shell
$file = Get-Content .\computers.txt
foreach ($item in $file) {.\PsExec.exe \\$item ping google.com}
No comments:
Post a Comment