Environment Variables Disappear!

G

Guest

Hello! here is a description of my problem... I've never seen this and didnt
find ony solution for this!
I have one user in my office that uses a laptop and sometimes when using
EXCEL she gets the message that Autorecover can not save because the path
\\server\AllUsers\%username%\OfficeRecovery isnt available.
So, this Autorecover path is assigned by Group Policy by the domain and
works fine for all other users.
After a little research I noticed that the user's Environment Variable
USERNAME is simply missing! When I run the SET command it doesn't appear. And
the command Echo %username% just returns %username% again!
The weird thing is that if I restart the computer the problem is solved! But
sometimes I can't restart the system because the user is very busy.
So, if someone could help, I apreciate.
Thanks
 
P

Pegasus \(MVP\)

BM said:
Hello! here is a description of my problem... I've never seen this and
didnt
find ony solution for this!
I have one user in my office that uses a laptop and sometimes when using
EXCEL she gets the message that Autorecover can not save because the path
\\server\AllUsers\%username%\OfficeRecovery isnt available.
So, this Autorecover path is assigned by Group Policy by the domain and
works fine for all other users.
After a little research I noticed that the user's Environment Variable
USERNAME is simply missing! When I run the SET command it doesn't appear.
And
the command Echo %username% just returns %username% again!
The weird thing is that if I restart the computer the problem is solved!
But
sometimes I can't restart the system because the user is very busy.
So, if someone could help, I apreciate.
Thanks

I suggest you start by creating a log file so that you can
find out when exactly this variable disappears. Use the
Task Scheduler to run the following batch file once
every five minutes:
echo %date% %time% %UserName% >> c:\Log.txt

The result should be interesting.
 
G

Guest

OK... I'll do it...but it will only tell me when it happened... The user
probably will not know what he was doing at that time (as usual!!! :) )
What I would like is why it vanishes?!?! it's something that shouldn't
disappear! right? :)
And, is it possible to bring it back without restarting the system?
I've tried the SET command but it doesn't work.
Thanks in advance
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top