Map a network Drive and delete an old static mapping from a login script:

 

Use the first line to delete any static mappings which may be on the current workstation for that drive letter.

    net use f: /delete > nul: 
    net use f: \\%servername%\home
 
 
** Notes **
(replace %servername% with the actual server's UNC name)
(home is used when the client is NT, 2000, or XP only and the variable is set in the users profile for Home Directory)

If your client is 9x see this page (You cannot use the "HOME" setting for 9x clients in a login script)

f: represents any drive letter that you want to use.

 

Did this info help you? If so, email me and let me know about it or ask a question.