I want to know how to validate the installation of a package/application ( ON WINDOWS machine ) through inspec. I tried using package command to test but it didn't work.
Control :
describe package ('java') do it { should be_installed } end
Error :
System Package java
× System Package java should be installed
expected that System Package java
is installed
What's wrong here or are there any other ways to achieve this?