HOMEPATH not available in runas shell

  • Thread starter Thread starter Johan Nilsson
  • Start date Start date
J

Johan Nilsson

Hi,

[Sorry if this is off-topic, I had a hard time finding the correct
newsgroup, but I figured that most people here would be familiar using
runas.]

When starting up a new command prompt, using the runas command, the HOMEPATH
and HOMEDRIVE environment variables aren't available for the newly logged on
user. Example:

runas /user: said:
echo %HOMEPATH% %HOMEPATH%
echo %HOMEDRIVE%
%HOMEDRIVE%

Is this a known problem? I tried searching the KB, but found nothing.

// Johan
 
Well that's because that user is really not logged in, you just opened a
shell as that user.

--

Star Fleet Admiral Q @ your Service!

http://www.google.com
Google is your "Friend"

Johan Nilsson said:
Hi,

[Sorry if this is off-topic, I had a hard time finding the correct
newsgroup, but I figured that most people here would be familiar using
runas.]

When starting up a new command prompt, using the runas command, the
HOMEPATH and HOMEDRIVE environment variables aren't available for the
newly logged on user. Example:

runas /user: said:
echo %HOMEPATH% %HOMEPATH%
echo %HOMEDRIVE%
%HOMEDRIVE%

Is this a known problem? I tried searching the KB, but found nothing.

// Johan
 
Star Fleet Admiral Q said:
Well that's because that user is really not logged in, you just opened a
shell as that user.

- User-specific environment variables that I've defined explicitly
(System/Properties/Advanced/Environment Variables/User variables for <user>)
are there.

- At least some automatically defined user-specific environment variables
are set, such as USERPROFILE.

What would the difference be?

// Johan
 
Back
Top