I have a script that I am running that looks like the following. It takes all of the hosts from hostlist.txt and then pulls info from a program on the hosts and sends that data to a text file. Is there a way to add a delay after each host is completed so they are not all being done at once?
cat "C:\Hostlist.txt" | aha /e 'cd "C:\nicCorp" | cmd /c "xfx"' | out-file c:\results.txt
There are about 50 hosts in hostlist.txt.