Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add group policy to disable auto start #37313

Open
cinnamon-msft opened this issue Feb 5, 2025 · 6 comments
Open

Add group policy to disable auto start #37313

cinnamon-msft opened this issue Feb 5, 2025 · 6 comments
Assignees
Labels
Area-Enterprise Issues relevant to large enterprises, SCCM, run as admin restrictions, ... Area-Runner The PowerToys main executable Idea-Enhancement New feature or request on an existing product Resolution-Fix Committed Fix is checked in, but it might be 3-4 weeks until a release.

Comments

@cinnamon-msft
Copy link
Collaborator

Description of the new feature / enhancement

We don't have the ability to allow GPO to disable auto start of PowerToys after login. We should add that :)

Scenario when this would be used?

Enterprises wanting more flexibility to manage PowerToys

Supporting information

No response

@cinnamon-msft cinnamon-msft added the Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams label Feb 5, 2025
@cinnamon-msft cinnamon-msft added Idea-Enhancement New feature or request on an existing product Area-Runner The PowerToys main executable and removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Feb 5, 2025
@jaimecbernardo jaimecbernardo self-assigned this Feb 5, 2025
@htcfreek htcfreek added the Area-Enterprise Issues relevant to large enterprises, SCCM, run as admin restrictions, ... label Feb 6, 2025
@htcfreek
Copy link
Collaborator

htcfreek commented Feb 6, 2025

@jaimecbernardo , @cinnamon-msft
Please be aware of #32714 which requests (force) enabled policy state for auto run feature.

@jaimecbernardo
Copy link
Collaborator

@htcfreek , thanks for the call out! I'll analyze it, but I'm thinking that might be hard to force (as you've commented). Perhaps we'll go with best case scenario.
The way I'm thinking about this would be about disabling the creation of the scheduled task or removing it if it's created.
Not sure if there's a way to detect if an application was auto-started.

@htcfreek
Copy link
Collaborator

htcfreek commented Feb 6, 2025

The way I'm thinking about this would be about disabling the creation of the scheduled task or removing it if it's created.

I had the same thoughts. Disabling the setting and removing the task.

Not sure if there's a way to detect if an application was auto-started.

This sounds a bit out of scoop to me. 🤔 The use case is disabling auto start and preventing the user from enabling again in PT settings I think. We aren't able to control all possible custom ways of auto start.

But we can write a not that disabling only disables feature in PT and not blocks other ways if custom auto start config.

@jaimecbernardo
Copy link
Collaborator

But we can write a not that disabling only disables feature in PT and not blocks other ways if custom auto start config.

Assuming the best place is in the GPO description in the adml file 🤔

@crutkas crutkas added Product-ZoomIt Refers to the ZoomIt tool and removed Product-ZoomIt Refers to the ZoomIt tool labels Feb 7, 2025
@crutkas crutkas added this to the PowerToys 0.89 milestone Feb 9, 2025
@htcfreek
Copy link
Collaborator

@jaimecbernardo
Might be worth looking at microsoft/terminal#18530 .

@jaimecbernardo
Copy link
Collaborator

@jaimecbernardo Might be worth looking at microsoft/terminal#18530 .

Thanks for the callout @htcfreek , 🤔
From what I see, looks like we're doing auto start different than Terminal, we don't use APIs from the OS for the autostart, we actually create a scheduled task manually. They're using https://learn.microsoft.com/en-us/uwp/api/windows.applicationmodel.startuptask?view=winrt-26100 in Terminal, from what I see.

@htcfreek htcfreek added the Status-In progress This issue or work-item is under development label Feb 11, 2025
@jaimecbernardo jaimecbernardo added Resolution-Fix Committed Fix is checked in, but it might be 3-4 weeks until a release. and removed Status-In progress This issue or work-item is under development labels Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Enterprise Issues relevant to large enterprises, SCCM, run as admin restrictions, ... Area-Runner The PowerToys main executable Idea-Enhancement New feature or request on an existing product Resolution-Fix Committed Fix is checked in, but it might be 3-4 weeks until a release.
Projects
None yet
Development

No branches or pull requests

4 participants