HOMEPATH not available in runas shell

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
 
S

Star Fleet Admiral Q

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
 
J

Johan Nilsson

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
 

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