Skip to content

Suggestion : remove excution policy bypass #47

@fwininger

Description

@fwininger

Hi @mwrock, some EDR detect mallicious activities with the command

powershell.exe -executionpolicy bypass -NoProfile -File .\test.ps1

I understand that just remove -executionpolicy bypass throw a error with the windows default configuration, but I propose this change :

powershell.exe -noprofile -noninteractive -Command { Get-Content .\test.ps1 | iex }

Do you think that this approch seems correct ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions