Changing User Directory path

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

anonymous_at_discussions.microsoft.com
Date: 08/25/04


Date: Wed, 25 Aug 2004 06:52:12 -0700

Check KB320043.

Here's an exerpt:

Assign a Home Directory to a User from the Command Line
You can use the net user command to assign a home
directory to a user from the command line. For example, at
the command line, type net user
tester /homedir:\\server\tester$ , and then press ENTER to
assign the tester$ hidden shared folder on the server that
is named "server" to the user Tester.

Hope that helps.

>-----Original Message-----
>Hi,
>
>I have 1200 users that have their user directory set to
>\\server1\username.
>
>I need to change this to point to \\server2\username.
>
>This also applies to the profile location.
>Is this easily scriptable?
>
>Cheers
>
>.
>



Relevant Pages

  • Re: variables
    ... CMDEXTVERSION System returns the version number of the current Command Processor Extensions. ... HOMEDRIVE System returns which local workstation drive letter is connected to the user's home directory. ... NUMBER_OF_PROCESSORS System specifies the number of processors installed on the computer. ... TEMP or TMP System and User return the default temporary directories for applications that are available to users who are currently logged on. ...
    (microsoft.public.windows.server.sbs)
  • Re: The one pronoun problem
    ... generally change it with a command line parameter. ... Every Windows application shortcut has a property for what directory it starts in. ... However, most Windows programs when displaying a file chooser dialog, will start with the user's home directory, the C:\ directory or My Computer. ...
    (comp.lang.java.programmer)
  • Re: passing variable to objShell.Run command
    ... When debugging problems like this, manually, in a command line ... create a command string that works for any of your user names. ... DSGET command on those users. ... adjustments in queries looking for users with the home directory and ...
    (microsoft.public.scripting.wsh)
  • Re: passing variable to objShell.Run command
    ... checking user objects for a home directory and clearing it if they ... When debugging problems like this, manually, in a command line window, ... create a command string that works for any of your user names. ... DSGET command on those users. ...
    (microsoft.public.scripting.wsh)
  • Re: [Full-disclosure] Small Design Bug in Postfix - REMOTE
    ... A user can have a .forward file in her home directory. ... or use aliasing to execute commands when mail is received. ... Mail is piped into command. ... Here is an example exploitation session, the user 'rootkey' ...
    (Full-Disclosure)