Solved

Environment vars lost after reconnecting via RDP to my Windows 7 WS

Posted on 2011-03-20
8
2,159 Views
Last Modified: 2012-06-27
My Windows 7 workstation looses environment variables some time after logon  or when reconnecting via RDP. The best way to reproduce the problem for me is: connect to the workstation via RDP, start cmd, issue "set" command - all variables are there. Disconnect (no logoff) and immediatly reconnect, start cmd, issue another "set" command: variables lost! The following variables are deleted: Path, PROCESSOR_ARCHITECTURE, PROCESSOR_IDENTIFIER, PROCESSOR_LEVEL, PROCESSOR_REVISION, PSModulePath, windir. The PATHEXT variable is changed from PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC to PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.JS;.WS;.MSC.

The last thing I installed was a telco app from Ericsson/Damovo called Solidus eCare Suite that is not running after startup!
0
Comment
Question by:PeterSausD
  • 4
  • 3
8 Comments
 
LVL 68

Expert Comment

by:Qlemo
ID: 35175197
Hallo Peter S. aus D   (D = Dortmund oder Deutschland?),

If there are changes after you login
(1) you have an application do that
(2) you have a group policy changing your environment.
The latter is more likely. Are you in a domain?

Is your environment reset to your intended setup again after some action?
0
 

Author Comment

by:PeterSausD
ID: 35176569
Qlemo,

it is in a domain, but group policy as a reason is unlikely as this PC is in our "Admin" OU and all policies are denied for this OU. No policy was changed BTW.

The environment is reset if I log off (using RDP or directly on the console) and then on again.

If I now disconnect RDP (no logoff) and immediatly reconnect, the environment is already lost.

The only app I installed since I first noticed this happening is the Damovo/Ericsson Solidus eCare suite, however I can not see this process running, I start this manually.

Peter S. aus D. (good guess, D= Dahl/Hagen but was also living in Dortmund two years ago:-)
0
 
LVL 68

Expert Comment

by:Qlemo
ID: 35176611
I'm at a loss there. I reckon you need forensic tools to get the culprit. Process Monitor from www.sysinternals.com is a good one - but you need to set up the filters appropriate. I would filter on registry access, where the path contains "Environment", and highlight "write". That should reduce visual traffic enough to see what is happening when you log off/disconnect/reconnect.
0
 

Accepted Solution

by:
PeterSausD earned 0 total points
ID: 35193409
I was able to solve this myself: the problem was that my environment variable path was too long (it grew through the last install). Once I trimmed the path by removing some entries the problem was gone. The lenght of path was over 2100 Bytes.
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 68

Expert Comment

by:Qlemo
ID: 35194204
Never heard of that effect, but I try to keep my PATH sorted ... 2100 Bytes, phew.
Great you found out.
0
 

Author Closing Comment

by:PeterSausD
ID: 35225444
The problem was solved by my own solution. The othe answers did not lead to a resolution.
0
 
LVL 1

Expert Comment

by:kearnsat
ID: 37692093
I just wanted to follow up on this thread. I found your solution helpful when we started having a lot of people at our office experience the same problem. However, I wanted to add that I think the exact limit is 2048, not 2100. When the path is 2047 or less, the Path does not get wiped out on RDP. When it's 2048 or greater, it gets reset to Path=(null).
0
 

Author Comment

by:PeterSausD
ID: 37692707
@kearnsat: thanks for letting me know!
0

Featured Post

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

By now, it is common knowledge that Windows 7 has been successfully been able to live up to the hype of being touted as Microsoft’s most anticipated O.S. ever. This latest 2010 Windows release builds up on its predecessor’s positives, adding new…
New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
This Micro Tutorial will teach you how to change your appearance and customize your Windows 7 interface to your unique preference. This will be demonstrated using Windows 7 operating system.
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now