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

Fix Task Manager AlwaysOnTop for Win11 #3197

Open
3 tasks done
zoicware opened this issue Feb 9, 2025 · 1 comment
Open
3 tasks done

Fix Task Manager AlwaysOnTop for Win11 #3197

zoicware opened this issue Feb 9, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@zoicware
Copy link

zoicware commented Feb 9, 2025

Is your feature request related to a problem? Please describe

Currently the code only applies alwaysontop for taskmanager on windows 10 systems

Describe the solution you'd like

Recently found taskmanager saves its settings to : C:\Users\Username\AppData\Local\Microsoft\Windows\TaskManager\settings.json
By simply adding the alwaysontop property we can automate this setting
PowerShell Snippet:

$settingsFile = "$env:LOCALAPPDATA\Microsoft\Windows\TaskManager\settings.json"

#kill taskmanager if its open
Stop-Process -Name Taskmgr -Force -ErrorAction SilentlyContinue

$jsonContent = Get-Content -Path $settingsFile -Raw | ConvertFrom-Json
#add always ontop property
$jsonContent | Add-Member -NotePropertyName 'AlwaysOnTop' -NotePropertyValue $true -Force

$jsonContent | ConvertTo-Json -Depth 10 | Set-Content -Path $settingsFile

Describe alternatives you've considered

Additional context

Issue validation

  • I checked for duplicate issues.
  • I checked for already existing discussions.
  • I checked for an already existing pull request addressing the issue.
@zoicware zoicware added the enhancement New feature or request label Feb 9, 2025
@jrabkid
Copy link

jrabkid commented Feb 11, 2025

This is a small but very nice to have feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants