Mapping network drive with 'net use'

Is there a way to have a script map a network drive based on the current user logged in?
This would be similar to setting up a drive in an AD profile using the %username% wildcard.

I cannot use GPO to map this as it is designed for when they are off network.
jjwolvenAsked:
Who is Participating?
 
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
Yes, as long as you can code the relationship, you can build a batch file. You can use the username, for example:
net use h: \\server\users\%username%

Open in new window

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.