• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1352
  • Last Modified:

Need help adding delay to powershell script

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.  
1 Solution
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now