Jump to content

Environment Variables Disappear!


Recommended Posts

Posted

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

 

--

BM

  • Replies 2
  • Created
  • Last Reply
Guest Pegasus \(MVP\)
Posted

Re: Environment Variables Disappear!

 

 

"BM" <BM@discussions.microsoft.com> wrote in message

news:C345F797-8B54-484A-A22C-13AB3B098ECB@microsoft.com...

> 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

>

> --

> BM

 

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.

Posted

Re: Environment Variables Disappear!

 

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

 

--

BM

 

 

"Pegasus (MVP)" wrote:

>

> "BM" <BM@discussions.microsoft.com> wrote in message

> news:C345F797-8B54-484A-A22C-13AB3B098ECB@microsoft.com...

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

> >

> > --

> > BM

>

> 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.

>

>

>


×
×
  • Create New...