Get-Service -Name "Microsoft*"
Return a list of Services that begin with Microsoft and do not contain WS:
Get-Service -Name "Microsoft*" -Exclude "*WS*" | Format-Table -Property Name, Status, StartType, DisplayName
Get-Service -Name "Microsoft*" | Where-Object {$_.Status -eq "Stopped"} | Format-Table -Property Name, Status, StartType, DisplayName
Set-Service -Name MicrosoftDynamicsNavWS -Status Running
Get-Service -Name "MicrosoftDynamicsNav*" | Where-Object {$_.Status -eq "Stopped"} | Set-Service -Status Running
The stopped services with a name beginning with MicrosoftDynamicsNav start on the machine, unless there is something preventing the service from starting.
Note: The code and information discussed in this article is for informational and demonstration purposes only.

