?
Solved

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

Posted on 2011-03-20
8
Medium Priority
?
2,266 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
8 Comments
 
LVL 70

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 70

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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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
 
LVL 70

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

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Lee
Windows 7 Ultimate and Enterprise (and 2008 R2) introduced a new feature you may not be aware of - Boot from VHD.   Boot from VHD (or what Microsoft refers to asNative Boot allows you to install Windows to a VHD (Virtual Hard Disk) file that is t…
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
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 basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.
Suggested Courses
Course of the Month12 days, 1 hour left to enroll

752 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