FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Allow disabling the usage of PSScriptPolicyTest · Issue #24217 · PowerShell/PowerShell · GitHub

Repository navigation

Allow disabling the usage of PSScriptPolicyTest #24217

Open

Description

Summary of the new feature / enhancement

Currently, powershell will attempt a script policy test by writing a powershell file named __PSScriptPolicyTest_(randomjunk).ps1 and fill it with a fixed string + timestamp. The stated purpose is to test for the presence of Windows AppLocker, but it's unwittingly running afoul of other third party app-locker-like solutions with similar but different behavior. The behavior difference here is some solutions like to inform the users a script was blocked, sometimes with a prompt to escalate to IT.

Normally the answer is to whitelist trusted files by hash, but the changing content of the file prevents this. And whitelisting by name is insecure.

This is essentially nuisance behavior that could be solved if a group policy was present to disable the use of the PSScriptPolicyTest test or even a group policy to make the contents of the generated file fully static such that the file hash can be trusted in third party security solutions.

Proposed technical implementation details (optional)

No response

Activity

  1. added
    Issue-Enhancementthe issue is more of a feature request than a bug
    Needs-TriageThe issue is new and needs to be triaged by a work group.
    on Aug 27, 2024
  2. Rithari commented on May 15, 2025

    Running into the same annoyance myself. +1

  3. rdebath commented on Feb 12, 2026

    This is also an unnecessary difference to Powershell V5, it does not increase security and as seen above triggers admins to introduce a security issue.
    The default installed powershell uses a fixed hash file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Enhancementthe issue is more of a feature request than a bugNeeds-TriageThe issue is new and needs to be triaged by a work group.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL