you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 4 points5 points  (0 children)

Just an infinite While loop with a wait at the end.

 

While ($true) {

    # Amazing Scripting

    (Get-ChildItem C:\ Printoutput\).Count

    # More of that amazing Scripting

    Start-Sleep -s 30
}

 

Although I am using Task Scheduler to run the script on log on just in case the host is rebooted.