Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.

Tip of the Day
Language: NT
Expertise: Beginner
Dec 16, 1998



Application Security Testing: An Integral Part of DevOps

How to create NT user home drive

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?

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

   MkDir "\\lj_server\c$\users\"
   MkDir "\\lj_server\c$\users\abc"

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.
DevX Pro
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Thanks for your registration, follow us on our social networks to keep up-to-date