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

Chef client not removed #110

Open
rjhornsby opened this issue May 3, 2018 · 0 comments
Open

Chef client not removed #110

rjhornsby opened this issue May 3, 2018 · 0 comments

Comments

@rjhornsby
Copy link

I think maybe for newer chef clients, there's no .msi file left behind to run that will allow you to uninstall the chef client in scripts/cleanup.ps1. I added the following bit below the existing uninstall attempt and it seems to have resolved the issue:

# Modern chef clients should be uninstalled through 'Add/Remove Programs'
$chef = Get-WmiObject -Class Win32_Product | Where-Object { $_.Name -match "Chef" }
if ($chef) {
  $chef.uninstall()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant