Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 8583

Continuous loop

$
0
0

Hello again,

I have created a task schedule to check DBA is always logged on. This is at 5 minute intervals. I am thinking a contiuous loop would work better and be less intensive. 

 

for(;;)

{{ $i ; $i++

 }

I tried this loop but whenever i pass If parameters it fails.

Would love to hear some ideas?

 


Viewing all articles
Browse latest Browse all 8583

Trending Articles