Skip to content

Instantly share code, notes, and snippets.

@amit-g
Created February 1, 2023 17:29
Show Gist options
  • Save amit-g/f9d69ba947d78da7a761bff43219d423 to your computer and use it in GitHub Desktop.
Save amit-g/f9d69ba947d78da7a761bff43219d423 to your computer and use it in GitHub Desktop.
Automation Account Hybrid Worker Cleanup

Run uninstall twice (it might fail first time)

  • C:\Packages\Plugins\Microsoft.Azure.Automation.HybridWorker.HybridWorkerForWindows\0.1.0.12\bin\uninstall.ps1

Further cleanup

  • Delete Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Azure\HybridWorker
  • Delete Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\HybridRunbookWorkerV2
  • Uninstall service - sc.exe delete HybridWorkerService
  • Delete C:\Packages\Plugins\Microsoft.Azure.Automation.HybridWorker.HybridWorkerForWindows\1.1.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment