Tom's Hardware > Forum > Windows XP > Windows XP General Discussion > HOMEDRIVE / HOMEPATH not available under runas shell

HOMEDRIVE / HOMEPATH not available under runas shell

Forum Windows XP : Windows XP General Discussion - HOMEDRIVE / HOMEPATH not available under runas shell

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Archived from groups: microsoft.public.windowsxp.help_and_support (More info?)

 

[repost from m.p.windowsxp.security_admin, with some additional information]

Hi,

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:<myuser> cmd
-- logging in --
>echo %HOMEPATH%
%HOMEPATH%
>echo %HOMEDRIVE%
%HOMEDRIVE%

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

Some additional information:

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

// Johan

Sponsored Links
Register or log in to remove.
Tom's Hardware > Forum > Windows XP > Windows XP General Discussion > HOMEDRIVE / HOMEPATH not available under runas shell
Go to:

There are 872 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them