Skip to content

The static cache for group policy settings should be cleared when GP settings change #5804

Description

Open the issue per the ask from #5791 (comment):

We use a static concurrent dictionary s_cachedPoliciesFromRegistry as a cache for group policy settings retrieved from the registry (in Utils.cs).
We should register for GP change notification using RegisterGPNotification, so that we can clear the cache when GP changes.

Activity

  1. thezim commented on Jan 6, 2018

    @thezim
    Contributor

    If I recall registering RegisterGPNotification requires administrative rights in the past. You could register but you wont get any events without admin rights.

  2. iSazonov commented on Jan 6, 2018

    @iSazonov
    Collaborator

    Docs don't mention about admin rights but suggest also use WM_SETTINGCHANGE message.

  3. thezim commented on Jan 6, 2018

    @thezim
    Contributor

    Ilya (@iSazonov) I had script while ago that I needed to listen GP events and I could never get it to receive those events in PowerShell 4. WM_SETTINGCHANGE required a window based app (GUI) to listen for that message.

  4. iSazonov commented on Jan 6, 2018

    @iSazonov
    Collaborator
  5. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  6. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  7. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  8. microsoft-github-policy-service commented on Nov 23, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has been marked as "No Activity" as there has been no activity for 6 months. It has been closed for housekeeping purposes.

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-BugIssue has been identified as a bug in the productResolution-No ActivityIssue has had no activity for 6 months or moreWG-Enginecore PowerShell engine, interpreter, and runtime

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions