Discussion Locked

User Environment-Connect, via "net user"

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
How can one set the "Connect" parameter (the drive letter) in "User Environment Profile" via the NET USER command? Or any other means via a batch file.

5 replies

by haissam

use the following format

net user %username% /homedir:\\%computername%\%sharename%

to connect drive Z to \\%computername%\%sharename% for user %username%

of course you have to replace all the variables with the relevant names

Regards,Haissam

by tom.sandidge

Thanks Haissam. The Z: drive mapping is automatic. I would like to use H:. Any other suggestions?

This discussion is closed to new replies.