Skip to content

Privilege Escalation Windows > Scheduled Tasks > findstr #4

@ThibaudLopez

Description

@ThibaudLopez

Hi @xapax,

In chapter Privilege Escalation Windows > Scheduled Tasks you say:

I have not been able to figure out how to just output the relevant strings with findstr. So if you know a better way please notify me.

The solution is to rediect stderr to stdout, then findstr will work:

schtasks /query /fo LIST /v 2>&1 | findstr /c:"Task To Run"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions