[GH-ISSUE #9] [windows] Unable to patch because not all required services is stopped #8

Closed
opened 2026-03-02 03:57:35 +03:00 by kerem · 9 comments
Owner

Originally created by @r4sas on GitHub (Feb 10, 2022).
Original GitHub issue: https://github.com/DrDonk/unlocker/issues/9

> unlocker.exe uninstall
Unlocker 4.1.1 for VMware Workstation/Player
============================================
© 2014-2022 David Parsons

VMware is installed at:  C:\Program Files (x86)\VMware\VMware Workstation\
VMware version:  17198959

Stopping VMware services and tasks...
Stopping service  VMAuthdService
panic: Control(VMAuthdService) failed: A stop control has been sent to a service that other running services are dependent on.

goroutine 1 [running]:
github.com/drdonk/golocker/vmwpatch.svcStop({0x1027280, 0xe})
        /Users/dave/Projects/lang-go/golocker/vmwpatch/vmw_windows.go:223 +0x1f9
github.com/drdonk/golocker/vmwpatch.VMWStop(0xc0000de000)
        /Users/dave/Projects/lang-go/golocker/vmwpatch/vmw_windows.go:71 +0xc5
main.main()
        /Users/dave/Projects/lang-go/golocker/command/unlocker.go:73 +0x2c5

OS: Windows 10 21H1

Originally created by @r4sas on GitHub (Feb 10, 2022). Original GitHub issue: https://github.com/DrDonk/unlocker/issues/9 ``` > unlocker.exe uninstall Unlocker 4.1.1 for VMware Workstation/Player ============================================ © 2014-2022 David Parsons VMware is installed at: C:\Program Files (x86)\VMware\VMware Workstation\ VMware version: 17198959 Stopping VMware services and tasks... Stopping service VMAuthdService panic: Control(VMAuthdService) failed: A stop control has been sent to a service that other running services are dependent on. goroutine 1 [running]: github.com/drdonk/golocker/vmwpatch.svcStop({0x1027280, 0xe}) /Users/dave/Projects/lang-go/golocker/vmwpatch/vmw_windows.go:223 +0x1f9 github.com/drdonk/golocker/vmwpatch.VMWStop(0xc0000de000) /Users/dave/Projects/lang-go/golocker/vmwpatch/vmw_windows.go:71 +0xc5 main.main() /Users/dave/Projects/lang-go/golocker/command/unlocker.go:73 +0x2c5 ``` OS: Windows 10 21H1
kerem closed this issue 2026-03-02 03:57:35 +03:00
Author
Owner

@one80two commented on GitHub (Feb 11, 2022):

hei. fixed it by first disabling all VMWare services in services.msc (not sure it was required actually) and then going into my VMs directories (mainly the suspended ones) and removing all directories/files that have the .lck extension. note that you need to set the services back to Automatic after running the unlocker. hope it helps :D

<!-- gh-comment-id:1036044448 --> @one80two commented on GitHub (Feb 11, 2022): hei. fixed it by first disabling all VMWare services in `services.msc` (not sure it was required actually) and then going into my VMs directories (mainly the suspended ones) and removing all directories/files that have the `.lck` extension. note that you need to set the services back to Automatic after running the unlocker. hope it helps :D
Author
Owner

@r4sas commented on GitHub (Feb 11, 2022):

That's not way how it must be done.

<!-- gh-comment-id:1036538787 --> @r4sas commented on GitHub (Feb 11, 2022): That's not way how it must be done.
Author
Owner

@DrDonk commented on GitHub (Feb 14, 2022):

Unfortunately not enough info here to diagnose what happened. I suspect that VMware was still running or VMs running in the background. I will close this unless there is more information available.

<!-- gh-comment-id:1039229733 --> @DrDonk commented on GitHub (Feb 14, 2022): Unfortunately not enough info here to diagnose what happened. I suspect that VMware was still running or VMs running in the background. I will close this unless there is more information available.
Author
Owner

@r4sas commented on GitHub (Feb 14, 2022):

Isn't application must close everything automatically (like how it has been done with previous version of tool with cmd batch)? How I can gather more information?

<!-- gh-comment-id:1039360269 --> @r4sas commented on GitHub (Feb 14, 2022): Isn't application must close everything automatically (like how it has been done with previous version of tool with cmd batch)? How I can gather more information?
Author
Owner

@DrDonk commented on GitHub (Feb 15, 2022):

Can you open a Windows PowerShell prompt and run this command please?

Get-Service -Name VMAuthdService -DependentServices

The output should show what is preventing VMAuthdService from stopping.

<!-- gh-comment-id:1040198571 --> @DrDonk commented on GitHub (Feb 15, 2022): Can you open a Windows PowerShell prompt and run this command please? `Get-Service -Name VMAuthdService -DependentServices` The output should show what is preventing VMAuthdService from stopping.
Author
Owner

@r4sas commented on GitHub (Feb 15, 2022):

> Get-Service -Name VMAuthdService -DependentServices

Status   Name               DisplayName
------   ----               -----------
Running  VMwareHostd        VMware Workstation Server

No VMs running at patching time.

So I think order here must be changed:
github.com/DrDonk/golocker@dd119cb6fb/vmwpatch/vmw_windows.go (L71-L72)

<!-- gh-comment-id:1040431022 --> @r4sas commented on GitHub (Feb 15, 2022): ``` > Get-Service -Name VMAuthdService -DependentServices Status Name DisplayName ------ ---- ----------- Running VMwareHostd VMware Workstation Server ``` No VMs running at patching time. So I think order here must be changed: https://github.com/DrDonk/golocker/blob/dd119cb6fb5e82d91757874c63b84b839f08280a/vmwpatch/vmw_windows.go#L71-L72
Author
Owner

@DrDonk commented on GitHub (Feb 15, 2022):

Yep that's my mistake. I forgot the ordering when I wrote it, and tested against 16.2 which drops the Workstation Server code.

I will setup a test system and fix the code.

<!-- gh-comment-id:1040455042 --> @DrDonk commented on GitHub (Feb 15, 2022): Yep that's my mistake. I forgot the ordering when I wrote it, and tested against 16.2 which drops the Workstation Server code. I will setup a test system and fix the code.
Author
Owner

@DrDonk commented on GitHub (Feb 15, 2022):

Please try v4.1.2 https://github.com/DrDonk/golocker/releases/tag/v4.1.2

<!-- gh-comment-id:1040565868 --> @DrDonk commented on GitHub (Feb 15, 2022): Please try v4.1.2 https://github.com/DrDonk/golocker/releases/tag/v4.1.2
Author
Owner

@r4sas commented on GitHub (Feb 15, 2022):

Everything works correctly now. Thanks.

<!-- gh-comment-id:1040594628 --> @r4sas commented on GitHub (Feb 15, 2022): Everything works correctly now. Thanks.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/unlocker#8
No description provided.