When bootstrapping windows server 2012, one of the cookbooks which gets pushed
is the Perftap cookbook which uses w32::service gem to check to PerfTap service
existing. This is called in the not_if block of powershell_script and is
failing to query the service.
The error on the run is:
The specified resource type cannot be found in the image file. -
QueryServiceConfig2: The specified resource type cannot be found in the image
The cookbook is trying to do the following:
::Win32::Service.services.detect do |service
service.service_name == 'PerfTap’
This has been reported in Puppet but I cannot see anything in Chef for this
ruby gem. Link to puppet issue is here:
Any help much appreciated.