--- title: "Block specific PowerShell parameters" slug: "block-specific-powershell-parameters" tags: ["Product Usage", "ENS 10.7.x", "Endpoint Security"] updated: 2026-09-14T20:39:07Z published: 2026-09-14T20:39:07Z canonical: "docs.trellix.com/block-specific-powershell-parameters" stale: true --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Block specific PowerShell parameters This example rule prevents PowerShell from executing with specific command-line parameters, except for the encoded command, which is "dir c:\program files". > [!NOTE] > Note > > Exploit Prevention is not supported in the ARM architecture. ``` Rule { Process { Include OBJECT_NAME      { -v "*PowerShell*" } Include PROCESS_CMD_LINE { -v "*-NoLogo*" } Include PROCESS_CMD_LINE { -v "*-File*" } Include PROCESS_CMD_LINE { -v "*-EncodedCommand*" } Include PROCESS_CMD_LINE { -v "*-Command*" } Exclude PROCESS_CMD_LINE { -v "*-EncodedCommand ZABpAHIAIAAnAGMAOgBcAHAAcgBvAGcAcgBhAG0AIABmAGkAbABlAHMAJwAgAA==" } } Target { Match SECTION { Include -access "CREATE" } } } ``` For more Expert Rules examples, visit the [Trellix Github repository](https://github.com/trellix-enterprise/ExpertRules).