Remoting into Windows 7 computer wipes out PATH

1

When I remote into my Windows 7 computer (local admin user), weird things are happening.

I had RDC (mstsc) and Windows Explorer icon on my Task Bar, clicked on them then "cannot find item" error, Visual Studio 2010-2013 wouldn't open with an "Exception has been thrown by the target of an invocation" dialog. all went haywire. Wasn't able to run my Python scripts from the command line unless I go to the python directory. Ah, a clue...

Fired up cmd, typed path... (null). What?!

Remotely rebooted my computer, waited for it to come back up before logging in again, all is fine.

Happens all the time. Any ideas?

One idea is that my user profile is corrupted and I should just wipe it out. Want to be sure that is the case before I engage in this effort.

Robert Koch

Posted 2014-02-20T21:29:00.230

Reputation: 113

I do not use user profiles, but to test couldnt you setup yet another user , run the same or similar operations for some time , and see if it fails similar, prior to wiping out a profile that may not be the problem? Speaking of time, is there a pattern to the time? Specific to computer activity? or even lack of activity (something sleeping)? – Psycogeek – 2014-02-21T05:33:23.597

Used another profile, works fine. That's why I suspect it's a bad or corrupted user profile. sigh I'll just wipe it out, start again, and report back if it still persists. Thanks for the response @Psycogeek – Robert Koch – 2014-02-21T17:56:48.283

Answers

2

Your path is probably longer than 2048. That is a published limit, and reducing your path below that will probably solve your problem. I'm not sure why RDP triggers it. My path is over 2048 when I first boot up, and it doesn't seem to matter... until I access the my workstation remotely using RDP.

Mike.B

Posted 2014-02-20T21:29:00.230

Reputation: 36

That would make sense, my path is usually crazy long. – Robert Koch – 2015-05-18T15:01:26.043