-
Notifications
You must be signed in to change notification settings - Fork 683
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
Strange registry_key
behavior (Unable to get .NET Version)
#1131
Comments
@jeremiahsnapp can you upgrade to at least inspec 0.30.0? we’ve updated the registry key resource by then |
Is this executed remotely or locally? |
It is executed remotely via Test Kitchen. Here are the versions from ChefDK:
|
After updating to version |
I am experiencing similar behavior on 64-bit Windows. It seems inspec is not able to access certain keys under HKLM\SOFTWARE in 64-bit Windows. My testing has shown that inspec can detect if any non-Microsoft key { should exist } in HKLM\SOFTWARE, but not any properties or values within those keys. It seems that it is able to access HKLM\SOFTWARE\Microsoft keys, properties, and values. I haven't found anything definitive, but so far things seem to be pointing towards Microsoft's redirected registry. Example 1: Works on 2008x86 (WMF 3.0), 2008r2 (WMF 3.0)
Example 2: Works on 2008x86 (WMF 3.0), 2008r2 (WMF 3.0)
Example 3: Works on 2008x86 (WMF 3.0), 2008r2 (WMF 3.0)
Example 4: Works on 2008x86 (WMF 3.0), NOT on 2008r2 (WMF 3.0)
Example 5: Works on 2008x86 (WMF 3.0), NOT on 2008r2 (WMF 3.0)
|
I had the same issue on 2012r2 and upgrading to WMF 5.0 fixed the issue. See also #939. |
Seeing this same issue.
chef -v: chef gem list inspec: Guest server OS is 2012r2 with powershell 4 |
@JackChance Can you do me a favor and update to the latest ChefDK to ensure we have that issue in the latest versions? ChefDK is available here: https://downloads.chef.io/chefdk/1.2.22 |
@chris-rock upgraded my chefdk and I'm still seeing the same behavior.
Host machine is windows 10 btw. |
I am having the same issue as you. My work-around for now is to use the child folder Please try and see if this works for you too.
|
…handled Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
…handled Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
Description
Intended Goal
I am attempting to get the following test to pass:
Problem
I can only get the value of
nil
forRelease
More Info
Using
/
or placing an extra\
somewhere in the path allows the tests below to pass...however it does not allow me to get the value ofRelease
.Also, it appears cannot get the value of any key under
v4
but can underv4.0
. See:Picture of Registry
![screen shot 2016-09-22 at 3 13 53 pm](https://cloud.githubusercontent.com/assets/13783510/18763041/957e2eda-80d9-11e6-9369-dbbe11017734.png)
### InSpec and Platform VersionInSpec Version:
0.29.0
Platform: Windows 2012R2
The text was updated successfully, but these errors were encountered: