devxlogo

How to create NT user home drive

Question:
I set the usri3_home_dir and home_dir_drive when I create an NT account using VB code. I also need to create the home directory on a specified NT server. Any ideas?

Answer:
Assuming you have rights to do so on the server in question, you can simply:

   MkDir "\lj_serverc$users"   MkDir "\lj_serverc$usersabc"
This will create a directory "abc" under the C:users directory on the server. After successfully creating the directory, then you can set the usri3_home_dir to this directory you just created.

Charlie has over a decade of experience in website administration and technology management. As the site admin, he oversees all technical aspects of running a high-traffic online platform, ensuring optimal performance, security, and user experience.

See also  How Seasoned Architects Evaluate New Tech

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.