Jason Conger Blog RSS

All Blogs  »  Jason Conger Blog  »  News SBC Tips and Tools  »  Blog article: Profile and Environment Variable changes in Vista/Longhorn

Profile and Environment Variable changes in Vista/Longhorn

Aaron Parker points out that Microsoft’s Vista/Longhorn OS is changing the way roaming profiles work. One of those changes is where profiles will be stored on the disk. The well know “Documents and Settings” path is being replaced with “Users”. “All Users” is being replaced with “Public”.

Also, environment variables are changing as well. Check out the following:

Pre Vista/Longhorn:

ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\aaron\Application Data
HOMEPATH=\Documents and Settings\aaron
TEMP=C:\DOCUME~1\aaron\LOCALS~1\Temp
TMP=C:\DOCUME~1\aaron\LOCALS~1\Temp
USERPROFILE=C:\Documents and Settings\aaron

Vista/Longhorn:

ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\aaronp\AppData\Roaming
HOMEPATH=\Users\aaronp
LOCALAPPDATA=C:\Users\aaronp\AppData\Local
ProgramData=C:\ProgramData
PUBLIC=C:\Users\Public
TEMP=C:\Users\aaronp\AppData\Local\Temp
TMP=C:\Users\aaronp\AppData\Local\Temp
USERPROFILE=C:\Users\aaronp

These changes can cause some issues with login scripts (especially those that may use hard-coded paths).

Read more at trustedaccess.info.


Technorati : , ,
Del.icio.us : , ,

One Response to “Profile and Environment Variable changes in Vista/Longhorn”

  1. Malcolm Symon Says:

    February 28th, 2008 at 5:06 am

    What about %USERNAME% which I want to concatenate into a string to pass as a parameter when calling an executable with a command line from my own application?

Leave a Reply

This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)

You must read and type the 6 chars within 0..9 and A..F, and submit the form.

  

If CAPTCHA image is missing or you cannot read the characters above, please generate a




Receive all the latest articles by email!

Receive Real-Time & Monthly VirtualizationAdmin.com article updates in your mailbox. Enter your email below!

Become a VirtualizationAdmin.com member!

Discuss all your Virtualization issues with thousands of other experts. Click here to join!

Solution Center