Page 1 of 1

[SOLVED] Broken "VoiceAccess" workaround

Posted: Wed Jan 21, 2026 7:59 am
by Randy Walker
[EDIT] 02/17/26 I found a solution and documented step-by-step instructions to correct the problem(s) on the elevenforum if anybody wants the proper woring soluytion. find it there. Just sesarh for voice access entry by RandxyWFL.

No idea how but my voiceAccess just stopped opening up no matter how I tied to launch it. So I wrote and compiled the commented code you see below with admin enabled and it worked. I passed it by ChatGPT and you see the results below:

Code: Select all

; The following 2 lines worked after I used "everything to locare a working exe path.
; Exec$ = "C:\Windows\WinSxS\amd64_microsoft-windows-voiceaccessstub_31bf3856ad364e35_10.0.26100.1_none_73d29118c12ea21b\VoiceAccess.exe"
; RunProgram(exec$,"","")
; The following is a revision of my code above provided by ChatGPT that is allegedly "cumulative update" proof which mine is not:
EnableExplicit

Define winSxS$ = "C:\Windows\WinSxS\"
Define pattern$ = "amd64_microsoft-windows-voiceaccessstub_*"
Define bestDir$
Define bestExe$
Define dir$

; Enumerate matching directories
If ExamineDirectory(0, winSxS$, pattern$)

  While NextDirectoryEntry(0)
    If DirectoryEntryType(0) = #PB_DirectoryEntry_Directory
      dir$ = DirectoryEntryName(0)

      ; Pick the highest version lexicographically
      If dir$ > bestDir$
        bestDir$ = dir$
      EndIf
    EndIf
  Wend

  FinishDirectory(0)
EndIf

If bestDir$ = ""
  MessageRequester("Error", "Voice Access stub not found.")
  End
EndIf

bestExe$ = winSxS$ + bestDir$ + "\VoiceAccess.exe"

If FileSize(bestExe$) <= 0
  MessageRequester("Error", "VoiceAccess.exe not found in stub.")
  End
EndIf

; Launch Voice Access
RunProgram(bestExe$, "", "")

MUST BE compiled with admin option enabled!!!

Re: Broken "VoiceAccess" workaround

Posted: Thu Jan 22, 2026 12:57 pm
by HeX0R
Isn't there always a copy of the latest VoiceAccess.exe in C:\Windows\System32?
A simple

Code: Select all

RunProgram("C:\Windows\System32\VoiceAccess.exe", "", "")
does not work for you?

Re: Broken "VoiceAccess" workaround

Posted: Thu Jan 22, 2026 5:32 pm
by Randy Walker
HeX0R wrote: Thu Jan 22, 2026 12:57 pm Isn't there always a copy of the latest VoiceAccess.exe in C:\Windows\System32?
A simple

Code: Select all

RunProgram("C:\Windows\System32\VoiceAccess.exe", "", "")
does not work for you?
No does not open it. It does run it in the background somewhere I cannot see it except in the task manager where I have to go to kill it.