REG_EXPAND_SZ is required if you wish to have environment variables expanded when a program or script reads the Data for that Value. Also, if your looking to configure the default profile, HKCU\.Default is not the key you need to modify. To modify the Default User, you need to load the ntuser.dat hive (typically, c:\documents and settings\default user\) and modify that. HKCU\.Default is the default profile used on the console when no one is logged in. Joe _____ From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of Joe Grainger Sent: Thursday, March 23, 2006 4:42 AM To: thin@xxxxxxxxxxxxx Subject: [THIN] Explorer shell folders in hkey_users\.default\ (reg_sz keys &environment variables) Hi all, I've researched this one briefly, using google, tweaking keywords, and limiting search results by domain. (e.g. using site:microsoft.com) Viewing the contents of the registry, the default key value is always REG_SZ, and can't be changed. On Windows 2003 Server, because the default value is REG_SZ, can you modify a default value to include an environment variable? E.g Replacing c:\documents and settings\administrator\recent with %userprofile%\recent I have found Microsoft Knowledge Base articles which do state that to use environment variables, you have to use the REG_EXPAND_SZ value type. However I can't find a definitive answer to my question before I run any tests. Thanks! Joe Hazlewoods LLP - Chartered Accountants and Business Advisers Offices in Cheltenham Tel 01242 237661, Gloucester Tel 01452 634800 and Staverton Tel 01242 680000. Members: Harvey Grove FCA FCCA Andrew Brookes FCA CF Jon Cartwright FCCA ATII TEP Nick Dee ACA Tony Flambard FCCA David Granger FCA FCCA Jonathan Harvie FCA David Main FCCA Christopher Mourton FCCA David Pierce FCA FCCA Adrian Randle FCA FCCA TEP Graham Rew FCA Philip Swan FCA ATII Norman Webber FCCA CF David Williams FCA Website www.hazlewoods.co.uk. Registered by the Institute of Chartered Accountants in England and Wales to carry out company audit work. Authorised and Regulated by the Financial Services Authority. Registered in England. Partnership No: OC311817 ************************************************************************ DISCLAIMER: The contents of this Email and attachments are confidential to the ordinary user(s) of the Email address(es) to which it was sent and may be legally privileged. Hazlewoods LLP accepts no responsibility for the content of this Email, or the actions taken on the basis of the information provided, unless that information is subsequently agreed in writing. ************************************************************************