We need to know the env variables used to construct home path.
Three variables are used: HOMEPATH, HOMEDRIVE and HOMESHARE. Here's the relation of these variables: HOMEPATH = HOMEDRIVE / HOMESHARE