Rename mapped Drive from command line

drum

Diamond Member
Feb 1, 2003
6,810
4
81
Is there a way to rename a mapped network drive using CLI?

I'm using
NET USE S: \\%CLIENTNAME%\C$\DOCUME~1\%USERNAME%\MYDOCU~1
in a script to map drives for Citrix users.
What the end user sees as far as the mapping (share on xx (s:)) is not pretty. I want it to look like what I have in parenthesis.

The label command doesn't work for network drives as far as I know. Is there anything I can do?
 
Aug 23, 2000
15,509
1
81
Can't you rename them with a registry change?
\hkcu\software\microsoft\windows\currentversion\explorer\mountpoints2\
 

dphantom

Diamond Member
Jan 14, 2005
4,763
327
126
Why map that particular location? Why not use folder redirection and have your Citrix users access thise folders from a home folder drive perhaps.