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

0 views
Skip to first unread message

Maheswaran Shanmugam (JIRA)

unread,
Oct 31, 2019, 3:54:03 AM10/31/19
to 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)

unread,
Oct 31, 2019, 4:01:02 AM10/31/19
to puppe...@googlegroups.com

Jesse Reynolds (JIRA)

unread,
Oct 31, 2019, 9:31:03 AM10/31/19
to puppe...@googlegroups.com

Mihai Buzgau (JIRA)

unread,
Nov 5, 2019, 8:32:03 AM11/5/19
to puppe...@googlegroups.com

Mihai Buzgau (JIRA)

unread,
Nov 5, 2019, 8:32:04 AM11/5/19
to puppe...@googlegroups.com

Mihai Buzgau (JIRA)

unread,
Nov 14, 2019, 5:41:03 AM11/14/19
to puppe...@googlegroups.com

Mihai Buzgau (JIRA)

unread,
Nov 14, 2019, 5:41:03 AM11/14/19
to puppe...@googlegroups.com

George Mrejea (JIRA)

unread,
Nov 18, 2019, 8:25:05 AM11/18/19
to puppe...@googlegroups.com

Jarret Lavallee (JIRA)

unread,
Nov 21, 2019, 6:00:04 PM11/21/19
to puppe...@googlegroups.com

Mihai Buzgau (JIRA)

unread,
Nov 27, 2019, 4:51:09 AM11/27/19
to puppe...@googlegroups.com

Mihai Buzgau (JIRA)

unread,
Dec 11, 2019, 4:34:06 AM12/11/19
to 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)

unread,
Dec 16, 2019, 3:30:04 AM12/16/19
to 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)

unread,
Jan 7, 2020, 12:35:04 AM1/7/20
to 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)

unread,
Jan 8, 2020, 2:54:04 AM1/8/20
to puppe...@googlegroups.com

Dorin Pleava (JIRA)

unread,
Jan 8, 2020, 9:48:04 AM1/8/20
to puppe...@googlegroups.com

Gheorghe Popescu (JIRA)

unread,
Jan 15, 2020, 5:44:04 AM1/15/20
to puppe...@googlegroups.com

Jean Bond (JIRA)

unread,
Jan 15, 2020, 2:00:04 PM1/15/20
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages