Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NonRunning Services lists services which start and stop normally #9

Open
Gilgamoth opened this issue Nov 30, 2016 · 0 comments
Open

Comments

@Gilgamoth
Copy link

Certain services (i.e. .NET) start and stop at will, and some only start when a user logs in (i.e Hardware Detection). These show up in the non-running services report, but they can be excluded by amending the WMI query to include AND Exitcode !=0.
Amended WMI query is
Query = "Select __Server,Name,DisplayName,State,StartMode,ExitCode,Status FROM Win32_Service WHERE StartMode='Auto' AND State!='Running' AND Exitcode !=0"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant