Use the Write-Progress cmdlet. Examples abound if you search for just that name!
Get-service from a list with progress
Anonymous
Hello all,
I am new to PowerShell and hoping for some direction.
I have this script I have been using successfully but would like to add a way to see what is happening while its running.
Before in batch I would just use @Echo on before the task and then shut it off after.
Get-service -ComputerName (Get-Content $Hostnames) Philips.PMP.ServiceHost.exe |
Select-Object MachineName, Status >> MER.Status_Report.txt
Any help is greatly appreciated.