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 exception catch for Unauthorized Access #3114

Merged
merged 1 commit into from
Dec 28, 2024

Conversation

DeveloperDurp
Copy link
Contributor

@DeveloperDurp DeveloperDurp commented Dec 18, 2024

Type of Change

  • New feature
  • Bug fix
  • Documentation update
  • Refactoring
  • Hotfix
  • Security patch
  • UI/UX improvement

Description

I noticed WPFToggleTaskbarWidgets was giving a very generic issue

Enabling Taskbar Widgets
Set-ItemProperty:
Line |
3764 | Set-ItemProperty -Path $Path -Name TaskbarDa -Value $value
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Attempted to perform an unauthorized operation.

Now it will give
Set HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\TaskbarDa to 0
WARNING: Attempted to perform an unauthorized operation.

Testing

image

image

I have not done a tone of troubleshooting on my end on why I am unable to update that value in the registry (even manually)

Checklist

  • My code adheres to the coding and style guidelines of the project.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • My changes generate no errors/warnings/merge conflicts.

@ChrisTitusTech
Copy link
Owner

Thanks @DeveloperDurp Good to see you again!

@ChrisTitusTech ChrisTitusTech merged commit 28bea51 into ChrisTitusTech:main Dec 28, 2024
1 check passed
@DeveloperDurp DeveloperDurp deleted the hotfix/widgets branch December 29, 2024 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants