DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Listing Services Running As A User Account

  • submit to reddit
        Lists all services that are running as a user account (not running as LocalSystem, LocalService, or NetworkService)

wmic service where (StartName!=“LocalSystem” and StartName!=“NT AUTHORITY\\LocalService” and StartName!=“NT AUTHORITY\\NetworkService”) get Caption,StartName