How to Change Drive Label (Win2003)


Status
Not open for further replies.
V

vince123123

Guest
Hi everyone, an IT question.

Right now I can set in Active Directory, a home folder. I then use the command net use h: /home to hap that home folder to H Drive for each logged in user.

Trouble is that the default label is something like "<user> on <servername>\share folder" or some long long complex sounding names.

To not confuse my users, I hope to set this as simply "Home".

Is there a way to do this via logon script or something? I tried the "label" command but that didn't seem to work either.

Thanks!
 

Well, you could try a bit of VBscript, add it after you map the drives:

Set oShell = CreateObject("Shell.Application")
oShell.NameSpace("H:\").Self.Name = "your_label"
 

Hmm, you're talking to a non-programmer here haha :p I only know I'm supposed to copy those into a text file and name it *.vbs. After that I don't know liao...can assist?


Well, you could try a bit of VBscript, add it after you map the drives:

Set oShell = CreateObject("Shell.Application")
oShell.NameSpace("H:\").Self.Name = "your_label"
 

just change the your_label to something and try it. :)
 

Ah okay, I just tried making a vbs file and then using wscript to call it in my batch file. And it works.
Thanks!
 

Status
Not open for further replies.