Link to home
Start Free TrialLog in
Avatar of Andrew Halford
Andrew Halford

asked on

Modifying Network Share Display Name from Logon Script

Hi,

I have a network share on a NAS drive that I want to store all my Technicians time sheets in.  I have created the network share and a folder under that share for each username for every tech.

I have setup the logon script to:

net use w: \\NAS01\Timesheets\%USERNAME%

and this works well to share the correct folder with each Technician.

My issue is that each share has a Display name of the USERNAME but what I wanted is for the share to be called TimeSheets for every user - even though they are all mapped to their own shared folder on the NAS.

Can anybody help with a way to modify the login script so that this can be achieved?

Many Thanks
Avatar of masnrock
masnrock
Flag of United States of America image

You would need an additional line for the script after mapping the drive
label W:TimeSheets

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Jacob Durham
Jacob Durham
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Andrew Halford
Andrew Halford

ASKER

Thanks for the quick response masnrock.

I see that this changes the Drive label, but in Windows Explorer the Display Name of the network share still shows the actual folder name.

e.g. Administrator (\\NAS01\TimeSheets) W:

I really want it to say: TimeSheets W:

I can do it with a Right Click Rename but I was hoping to build it into the Logon Script.

Thanks
Andrew
Thanks Jacob,

The VB Script worked great.

Fantastic response.  Thank you all!
@Jacob's "you can't use label on a mapped drive" - true, but you could as well use GPP mapped drives, see the following image:
User generated image