Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2562

Repeat command "exponentially" AND in parallel

$
0
0

Hi, my problem seems simple (the concept) and I can't figure out a way to implement it...

In a script I would like to run a command 1 time, for example 'Test-Connection 192.168.0.1'

5 seconds later, I would like the script to execute simultaneously these commands:

'Test-Connection 192.168.0.1'

'Test-Connection 192.168.0.2'

And 5 seconds later, I would like the script to execute simultaneously these commands:

'Test-Connection 192.168.0.1'

'Test-Connection 192.168.0.2'

'Test-Connection 192.168.0.3'

etc.

Have you an idea on how to do it?


Viewing all articles
Browse latest Browse all 2562

Latest Images

Trending Articles



Latest Images