

– run: Get-WmiObject -Namespace ROOT\CIMV2 -Class Win32_Service -Computer RemoteComputerName | Select-Object DisplayName, Started, StartMode, PSComputerName | Export-CSV “c:\file. If you need to display only running services, use this command: Get-Service | Where-Object To get two or more service states, you need to specify their names divided by commas: get-service bits, wuauserv To save the services list to a text file for future investigation, use the Out-File cmdlet: Get-Service | Out-File "C:\PS\Current_Services.txt" Take a look at the actions taken in this case: Getting 'Windows PowerShell has stopped working' error message popping up constantly. And you can also complete the reapiur steps (sfc, dism) described here: powershell has stopped working - pop up.


Display Name - full service name (more descriptive and human readable). Windows PowerShell has stopped working Here the reason was a bad driver.Name - displays the short name of the service (used most often).Status - shows if the server is Running or Stopped.
