Get-service from a list with progress

Anonymous
2021-10-14T19:03:15.94+00:00

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.

Windows for business | Windows Server | User experience | PowerShell
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Rich Matheisen 47,951 Reputation points
    2021-10-14T22:49:37.72+00:00

    Use the Write-Progress cmdlet. Examples abound if you search for just that name!

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.