Jira (FACT-3185) facter os.windows.product_name incorrect value for Windows 11

12 views
Skip to first unread message

Patrick Grant (Jira)

unread,
Feb 13, 2023, 9:57:02 AM2/13/23
to puppe...@googlegroups.com
Patrick Grant created an issue
 
Facter / Bug FACT-3185
facter os.windows.product_name incorrect value for Windows 11
Issue Type: Bug Bug
Assignee: Unassigned
Created: 2023/02/13 6:56 AM
Priority: Normal Normal
Reporter: Patrick Grant

Windows 11 currently displays the following from a facter 4 output:

C:\ProgramData\PuppetLabs>facter -p os.windows.product_name
Windows 10 Enterprise Evaluation
 
C:\ProgramData\PuppetLabs>facter -v
4.2.8

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)
Atlassian logo

Charmaine Pritchett (Jira)

unread,
Feb 13, 2023, 9:59:02 AM2/13/23
to puppe...@googlegroups.com

Charmaine Pritchett (Jira)

unread,
Feb 13, 2023, 9:59:03 AM2/13/23
to puppe...@googlegroups.com
Charmaine Pritchett updated an issue
Change By: Charmaine Pritchett
Zendesk Ticket Count: 1
Zendesk Ticket IDs: 51023

Patrick Grant (Jira)

unread,
Feb 13, 2023, 1:11:03 PM2/13/23
to puppe...@googlegroups.com
Patrick Grant commented on Bug FACT-3185
 
Re: facter os.windows.product_name incorrect value for Windows 11

Potentially fixed by https://tickets.puppetlabs.com/browse/FACT-3090 Will need a test on latest version of PE to confirm

Patrick Grant (Jira)

unread,
Feb 13, 2023, 1:43:03 PM2/13/23
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Feb 14, 2023, 12:37:03 AM2/14/23
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Feb 14, 2023, 4:20:01 PM2/14/23
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Feb 14, 2023, 5:53:03 PM2/14/23
to puppe...@googlegroups.com
Josh Cooper commented on Bug FACT-3185
 
Re: facter os.windows.product_name incorrect value for Windows 11

Facter 4's current behavior for Windows 10 is:

"os": {
  "architecture": "x64",
  "family": "windows",
  "hardware": "x86_64",
  "name": "windows",
  "release": {
    "full": "10",
    "major": "10"
  },
  "windows": {
    "edition_id": "Enterprise",
    "installation_type": "Client",
    "product_name": "Windows 10 Enterprise",
    "release_id": "2004",
    "system32": "C:\\Windows\\system32"
  }
},

and Windows 11

"os": {
  "architecture": "x64",
  "family": "windows",
  "hardware": "x86_64",
  "name": "windows",
  "release": {
    "full": "11",
    "major": "11"
  },
  "windows": {
    "display_version": "21H2",
    "edition_id": "EnterpriseEval",
    "installation_type": "Client",
    "product_name": "Windows 10 Enterprise Evaluation",
    "release_id": "21H2",
    "system32": "C:\\Windows\\system32"
  }
}

The "product_name" being set to Windows 10 is a well known Microsoft issue. But from facter's perspective we are accurately reporting what is in the registry, so we're going to close this.

However, the original request was to be able to differentiate between 10 and 11, and it is currently possible to use "os.release.full" or "os.release.major" for that purpose. And for Windows 11, the "release_id" can be used to distinguish between 21H2 and 22H2.

Reply all
Reply to author
Forward
0 new messages