Skip to content

"Sometimes" the HTTPS protocol set by the {Set-PTA ChromeHTML https} command gets deleted by SystemSettings.exe when it opens! #28

@AmirTerani

Description

@AmirTerani

For some reason Win11's Settings app's Default Apps/Google Chrome Page doesn't like the HTTPS settings generated from the script every the time.

The association works if we use it but when we open the Settings app to confirm their assignment, more like the Schrödinger's cat, sometimes HTTPS gets deleted right away as if it doesn't like the hash that was generated for it. Don't have this issue with .htm, .html, .pdf, or http.
image

To work around it, I open the Settings app to its Chrome page earlier in the script and then run the Set-PTA command in a loop with a few seconds wait till Get-PTA confirms that the setting is stuck for good. It seems to work, but it's clunky and intrusive when System Settings pops up in the middle of a background running script. It also slows down the deployment because each loop needs about 15 seconds for everything to settle in.

As the Process Monitor shows here, I set http and it was fine but https had to go through the loop 4 times before SystemSettings.exe leaves it alone.
image

Any help fixing this is greatly appreciated.

Thank you,
@-

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