Discussion Locked

Setting a user system variable

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Good day all. Here is the situation I find myself trying to solve. I need to be able to set the %HOME% variable on an NT 4.0 system prior to the user of that system logging on. For example:

The current value of the %HOME% variable, which is a system environment variable, is set to "c:". I need for the user to have it set to "c"\home\username" when he logs on. I cannot, however use a logon script or enter it in an autoexec.bat file to set it. Is there a way to set this value from the command line or otherwise, when doing an NT install? Thanks.

7 replies

by cryingdragon

Through a dos prompt, use the following:

set home="\home\%username%

Then change to the drive that contains that directory, eg d:
At the prompt, do the following

d:\> cd %home%

That will take you where you need to be.

Also, in User Manager, you can set home directories for each person. This could take some of the time out of creating login scripts for your stuff.

Mike

This discussion is closed to new replies.