Basic code help needed

Hi All

Need a little help if possible.
I have a working Powershell script that goes away and connects to a Physical computer performs an action then moves on to the next computer in the list.

I need to modify this code so it will repeat this function 20 times once the original script has completed (approx 10 mins)
Will try and get a snippet posted

Any thoughts …

Hi Paul999,

Im not sure if i understand… why dont you want the same script run 20 times?
Dont know what your script is doing but the outcome will be 20 times the same.

Paul,
Welcome to the forum. :wave:t3:

There’s barely a chance for us to advice something meaningful or helpful for you without seeing your actual code.

Use a loop! :man_shrugging:t3: :+1:t3: