Monday, September 1, 2025

Windows services listing

 list all non Microsoft services:


Get-WmiObject win32_service | Where-Object {

    $_.Caption -notmatch "Windows" -and

    $_.PathName -notmatch "Windows" -and

    $_.PathName -notmatch "Microsoft" -and

    $_.PathName -notmatch "policyhost.exe" -and

    $_.Name -ne "LSM" -and

    $_.PathName -notmatch "OSE.EXE" -and

    $_.PathName -notmatch "OSPPSVC.EXE" -and

    $_.PathName -notmatch "Microsoft Security Client"

} | Select-Object Name, DisplayName, PathName, StartName



Display user names for services:
Get-WmiObject -Class Win32_Service | Select-Object Name, StartName