Jira (FACT-2096) Windows system32 environment variable issue after installation of "RDS-RD-Server"

0 vistas
Ir al primer mensaje no leído

Maheswaran Shanmugam (JIRA)

no leída,
31 oct 2019, 3:54:03 a.m.31/10/2019
para puppe...@googlegroups.com
Maheswaran Shanmugam created an issue
 
Facter / Bug FACT-2096
Windows system32 environment variable issue after installation of "RDS-RD-Server"
Issue Type: Bug Bug
Assignee: Unassigned
Components: Windows
Created: 2019/10/31 12:53 AM
Environment:

PE 2019.1.0

Agent OS: Server 2016

 

Priority: Major Major
Reporter: Maheswaran Shanmugam

On Windows servers after installation of Remote Desktop Services (Add-WindowsFeature RDS-RD-Server) the Puppet agent populates the system32 fact incorrectly with "C:\Users\username\WINDOWS\system32". Uninstalling RDS-RD-Server and rebooting the server returns the OS fact to "c:\windows\system32".

With or without RDS-RD-Server installed the result of running the command: 
wmic os get systemdirectory 
is always "C:\Windows\system32"

Example of the "facter os" command output: (`admwintert` - Domain user)
PS C:\Windows\system32> facter os 

architecture => "x64", 
family => "windows", 
hardware => "x86_64", 
name => "windows", 
release =>

{  full => "2016",  major => "2016"  }, 
windows => {  system32 => "C:\Users\admwintert\WINDOWS\system32"  } 
}

 

Customer ran another test and was able to reproduce the behavior with a vanilla AWS AMI: 
Windows_Server-2016-English-Full-Base-2019.10.09 (ami-0daaf340f2253cd6c)

Customer launched, renamed and domain-joined it and then installed puppet. Then installed the Remote Desktop Session Host and rebooted. 'dawintert' is also a domain account.

PS C:\Windows\system32> facter os 

architecture => "x64", 
family => "windows", 
hardware => "x86_64", 
name => "windows", 
release => {  full => "2016",  major => "2016"  }


windows =>

{  system32 => "C:\Users\dawintert\WINDOWS\system32"  }

 
}

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Maheswaran Shanmugam (JIRA)

no leída,
31 oct 2019, 4:01:02 a.m.31/10/2019
para puppe...@googlegroups.com

Jesse Reynolds (JIRA)

no leída,
31 oct 2019, 9:31:03 a.m.31/10/2019
para puppe...@googlegroups.com

Mihai Buzgau (JIRA)

no leída,
5 nov 2019, 8:32:03 a.m.5/11/2019
para puppe...@googlegroups.com

Mihai Buzgau (JIRA)

no leída,
5 nov 2019, 8:32:04 a.m.5/11/2019
para puppe...@googlegroups.com

Mihai Buzgau (JIRA)

no leída,
14 nov 2019, 5:41:03 a.m.14/11/2019
para puppe...@googlegroups.com

Mihai Buzgau (JIRA)

no leída,
14 nov 2019, 5:41:03 a.m.14/11/2019
para puppe...@googlegroups.com

George Mrejea (JIRA)

no leída,
18 nov 2019, 8:25:05 a.m.18/11/2019
para puppe...@googlegroups.com

Jarret Lavallee (JIRA)

no leída,
21 nov 2019, 6:00:04 p.m.21/11/2019
para puppe...@googlegroups.com

Mihai Buzgau (JIRA)

no leída,
27 nov 2019, 4:51:09 a.m.27/11/2019
para puppe...@googlegroups.com

Mihai Buzgau (JIRA)

no leída,
11 dic 2019, 4:34:06 a.m.11/12/2019
para puppe...@googlegroups.com
Mihai Buzgau updated an issue
Change By: Mihai Buzgau
Sprint: 2019-11-27, 2019-12-11 , 2019-12-24

George Mrejea (JIRA)

no leída,
16 dic 2019, 3:30:04 a.m.16/12/2019
para puppe...@googlegroups.com
George Mrejea updated an issue

For os-es older than 2015, Microsoft deprecated api used to read %windir%, so in newer os-es did not function properly anymore in context of mixed 32 and 64 bit application environment (Remote desktop provides such environment).
Bug was resolved by reading needed information from environment variable %systemroot% which Microsoft documentation states it is consistent and read-only. Tested on all supported platform 32 and 64 bits, works and expected.

Change By: George Mrejea
Release Notes Summary: %windir% read value consistent on all windows platform
Release Notes: Bug Fix

Steven Towill (JIRA)

no leída,
7 ene 2020, 12:35:04 a.m.7/1/2020
para puppe...@googlegroups.com
Steven Towill commented on Bug FACT-2096
 
Re: Windows system32 environment variable issue after installation of "RDS-RD-Server"

I have been testing a fix for an unrelated issue using the puppet nightly build (6.12.0 - 2019-12-30 18:15:25) which includes facter 3.14.7.

From my quick and limited testing this has now resolved the issue. 

Dorin Pleava (JIRA)

no leída,
8 ene 2020, 2:54:04 a.m.8/1/2020
para puppe...@googlegroups.com

Dorin Pleava (JIRA)

no leída,
8 ene 2020, 9:48:04 a.m.8/1/2020
para puppe...@googlegroups.com

Gheorghe Popescu (JIRA)

no leída,
15 ene 2020, 5:44:04 a.m.15/1/2020
para puppe...@googlegroups.com

Jean Bond (JIRA)

no leída,
15 ene 2020, 2:00:04 p.m.15/1/2020
para puppe...@googlegroups.com
Responder a todos
Responder al autor
Reenviar
0 mensajes nuevos