Using environment variable within profile path.

M

Mark G

Hello all,

I'd appreciate some help with the following profile problem...

I have two sites with AD and within these two sites I have 2 DCs each, all
W2K. I would like to use a variable in each of the users profile to 'point'
to a profile path on a local server so that in the event of a the server
failing that holds the profiles I do not have to modify each users
individual profile path.

I have tried setting the users path to %PROFSRV%\Share\%USERNAME% and
setting the variable in the site logon script, but the profile gets written
locally to the hard drive in %WINNDIR%\SYSTEM32\%PROFSRV%\Share\<ACTUAL
USERNAME>.

What appears to be happening is that the profile is referred to before the
variable has been set in the site logon script. Is this the case? Is there
anyway to get around this?

This little problem is causing me to lose my hair - Any help appreciated.

Cheers,

Mark.
 
P

Pegasus \(MVP\)

Mark G said:
Hello all,

I'd appreciate some help with the following profile problem...

I have two sites with AD and within these two sites I have 2 DCs each, all
W2K. I would like to use a variable in each of the users profile to 'point'
to a profile path on a local server so that in the event of a the server
failing that holds the profiles I do not have to modify each users
individual profile path.

I have tried setting the users path to %PROFSRV%\Share\%USERNAME% and
setting the variable in the site logon script, but the profile gets written
locally to the hard drive in %WINNDIR%\SYSTEM32\%PROFSRV%\Share\<ACTUAL
USERNAME>.

What appears to be happening is that the profile is referred to before the
variable has been set in the site logon script. Is this the case? Is there
anyway to get around this?

This little problem is causing me to lose my hair - Any help appreciated.

Cheers,

Mark.

The logon script is unsuitable for setting environmental variables.
When the script terminates, these variables disappear.

One way to resolve your problem would be with setx.exe. It
sets environmental such that they are available to all processes
that are launched subsequently. The tool is included with the
Win2000 Resource Kit.
 

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