pal1000 / Realtek-UAD-generic

An unofficial package of generic Realtek Universal Audio Driver made from parts of various OEM specific Reatek Universal Audio drivers intended to work on legacy systems lacking OEM UAD support.
1.13k stars 42 forks source link

Windows asking permission to run Realtek service every boot #68

Open Thelothian opened 3 years ago

Thelothian commented 3 years ago

As described in title, Windows pops a "Open File - Security warning" before running the Realtek service, every startup. There's no way to avoid this through usual actions... and I cannot unblock the exe file because it's in the ultra-protected DriverStore folder. Any solutions?

pal1000 commented 3 years ago

I never seen anything like this. DriverStore folder should be readable by all users, something clearly went wrong at your end. Can you browse to C:\Windows\System32\DriverStore in Explorer?

Thelothian commented 3 years ago

Maybe there's a misunderstanding. The installation was completed without issues; i've Realtek Audio Console working perfectly. The only issue I've is during startup; Windows popups an Open File - Security Warning window, asking me to run RtkAudUService64.exe. Clicking on "always allow..." is useless because it keeps popping up at every startup. I've read that this can be avoided unblocking the exe files, through properties windows but the system gives me "access denied" every time I try to unblock it. The file is in C:\Windows\System32\DriverStore\FileRepository\realtekservice.inf_amd64_0e8db3195354f73d, I can read this folder. I cannot make any modifications like deleting, renaming , or changing file attributes. I've read that's normal because that folder is owned by SYSTEM. And I can't modify the owner (and I prefer to avoid this dangerous operation). Is there any way to "legitimate" RtkAudUService64.exe definitively? Sorry for my "bad english". I hope it's more clear now. :-)

pal1000 commented 3 years ago

Well, you don't have execute permission in there for some reason. That's the oddity. I haven't seen this before either.

demberto commented 3 years ago

+1 ~Any solution?~ Solution below!

EDIT: So it appears that the file is "blocked" image

Trying to Unblock it causes errors like:

EDIT 2: Solution -

  1. Change owner of RtkAudUService64.exe to Everyone (its set to SYSTEM before), press OK.
  2. Give all permissions to Everyone (by default only Read & Execute and Read permission is there).
  3. That Unblock thing should have disappeared, but if it is still there check Unblock and press OK.
  4. Remove all extra permissions given to Everyone (step 2).
  5. Change back the owner to SYSTEM.
  6. Restart your device, you shouldn't get that prompt

I think, most probably it is due to the original RtkAudUService64.exe in your driver package not being unblocked, or something in the script isn't working properly

botflakes commented 3 years ago

+1 ~Any solution?~ Solution below!

EDIT: So it appears that the file is "blocked" image

Trying to Unblock it causes errors like:

  • Too many requests from a semaphore, or
  • Assertion failed, and finally
  • Access is denied

EDIT 2: Solution -

  1. Change owner of RtkAudUService64.exe to Everyone (its set to SYSTEM before), press OK.
  2. Give all permissions to Everyone (by default only Read & Execute and Read permission is there).
  3. That Unblock thing should have disappeared, but if it is still there check Unblock and press OK.
  4. Remove all extra permissions given to Everyone (step 2).
  5. Change back the owner to SYSTEM.
  6. Restart your device, you shouldn't get that prompt

I think, most probably it is due to the original RtkAudUService64.exe in your driver package not being unblocked, or something in the script isn't working properly

That worked like a charm. Thanks!

demberto commented 3 years ago

Hey @pal1000 your thoughts?

pal1000 commented 3 years ago

It could be easier if you unblock before installing or updating.

mozilla343 commented 2 years ago

@Thelothian check this: Driver files in driver store file repository are not unlocked #110.

As described in title, Windows pops a "Open File - Security warning" before running the Realtek service, every startup. There's no way to avoid this through usual actions... and I cannot unblock the exe file because it's in the ultra-protected DriverStore folder. Any solutions?