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

Regfiles/Disable_Show_More_Options_Context_Menu.reg does not work #123

Closed
Loizzus opened this issue Sep 2, 2024 · 4 comments
Closed

Regfiles/Disable_Show_More_Options_Context_Menu.reg does not work #123

Loizzus opened this issue Sep 2, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@Loizzus
Copy link

Loizzus commented Sep 2, 2024

The current reg script does not cause windows to make the change.

I think the full script is supposed to be:

[HKEY_CURRENT_USER\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}]
@=""

[HKEY_CURRENT_USER\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32]
@=""

Currently it just has the first part.

@Raphire Raphire added the bug Something isn't working label Sep 3, 2024
@Raphire
Copy link
Owner

Raphire commented Sep 3, 2024

Heya,

The registry file does work on my testsystem and VM, running 23H2 and 24H2 respectively. Have you manually run the reg file or has it been applied via the script? It does require restarting the explorer process, so that may be the issue if it was run manually.

The key HKEY_CURRENT_USER\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2} is automatically created with

[HKEY_CURRENT_USER\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32]
@=""

Have you been able to confirm if including this fixes your issue?

@Raphire Raphire self-assigned this Sep 3, 2024
@Loizzus
Copy link
Author

Loizzus commented Sep 3, 2024

Hey,

I have been testing this this morning and you are right, when I dig into it more the issue is something else. When I try and run the reg file manually it doesn't add the values to the registry including when it has the 2 lines I suggested.

However when I run this in admin command line the value does get added:
reg add “HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32″ /f /ve

So I tried opening an admin command prompt and running the reg file manually through there and that does make the change.
image

I wonder if the issue isn't with running the reg files on users who are not admins? I run this script as part as setting up new computers for users in my company. But most of them do not have local admin privileges. When I launch PowerShell to run your script I do run it as admin and authenticate with my domain admin account. But perhaps that is still not running the reg files as admin.

@Raphire
Copy link
Owner

Raphire commented Sep 3, 2024

Ah, in that case I think this is the issue described in #72. When running powershell as admin on a non-admin account the user context changes to whatever admin account was used to spawn the powershell admin process, thus the changes are applied to the admin account instead of the intended non-admin user. The header of the script should show in what user context the script is being executed.

I am working on a solution for this.

@Loizzus
Copy link
Author

Loizzus commented Sep 3, 2024

Ah yeah, looks like the same issue. I'll close this then.

@Loizzus Loizzus closed this as not planned Won't fix, can't repro, duplicate, stale Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants