Custom Rule Creation:
Determine whether to block the creation of the files to enforce Constrained Language Mode, or to Approve the creation and allow Full Language Mode.
- Log in to the Console and navigate to Rules > Software Rules > Custom > Add Custom Rule.
- Use the following details:
- Rule Name: Block PS Script Policy Test (or something memorable)
- Platform: Windows
- Rule Type: File Creation Control
- Write Action:
- Choose Block to enforce Constrained Language Mode
- Choose Approve to allow Full Language Mode
- Notifier or Approval Event:
- If Blocking: Uncheck Notifier and select <none>
- If Approving: Uncheck Send Approval Event
- Path or File:
- *\__psscriptpolicytest*.ps1
- *\????????.???.ps1
- Process: Any process
- User: Any user
- Save
Custom ABExclusion:
Create an ABExclusion to suppress Event & File Information from being sent to Server for processing:
- Navigate to https://ServerAddress/shepherd_config.php
- Select the Property, "ABExclusionRules" and adjust the Value accordingly:
- If a Value exists, copy & paste this to the end:
|;????????.???.ps1,*-????-????-????-*.ps1,__psscriptpolicytest_*.???.ps1;;;;;;;;;3
- If a Value doesn't exist, copy & paste this:
;????????.???.ps1,*-????-????-????-*.ps1,__psscriptpolicytest_*.???.ps1;;;;;;;;;3
- Click Change to apply the new ABExclusion.