Trying below command to get the stopped service list without delayed and triggered..
I excluded the delayed service but triggered comes in output if it is in stopped state
Invoke-Command -ScriptBlock { Get-WmiObject -Class Win32_Service -Filter {State != 'Running' and StartMode = 'Auto'} |
ForEach-Object {Get-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\$($_.Name)" |
Where-Object {$_.Start -eq 2 -and $_.DelayedAutoStart -ne 1}} |
Select-Object -Property @{label='ServiceName';expression={$_.PSChildName}} | Get-Service | select Displayname } -ErrorAction SilentlyContinue -ComputerName $server
Any suggestion